LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-04-2009, 09:54 AM   #1
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Rep: Reputation: 15
setting up a LAN DNS and mail server


My current scenario is this, I have a Windows 2003 Small Business Server and Linux fedora 10 proxy server that is used for internet. On Windows 2003 SBS as a mail exchange. Now need to move away from windows completely to Linux fedora 10. I need to configure a DNS so that i can use the fedora to download email from my ISP to their respectively clients computers.I do not want to host email but still want my ISP to handle the mails and my website. In other words i want to have the same function that is being done by windows to be done by Linux. I have read a some of how tos:http://www.linuxhomenetworking.com/w...onfiguring_DNS, but still confuse

How do i configure the DNS and the mail server on my server without disturbing the ISP settings. On my linux server is connected direct to the router that point to the ISP with eth1 192.168.0.1 and eth2 10.0.0.5 for LAN.
[root@perfecpol7 ~]# host www.perfectpol7.com
www.perfectpol7.com is an alias for perfectpol7.com
perfectpol7.com has address 4a.20a.1a8.1x
perfectpol7.com mail is handled by 5 fw2a.perfectpol7.com.
perfectpol7.com mail is handled by 5 fw1a.perfectpol7.com.

my file is this:
/etc/named.conf//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";

zone "5.0.0.10.in-addr.arpa" {
type master;
file "/var/named/10.0.0.5.rev";
};

my vi /etc/resolv.conf
# Generated by NetworkManager
nameserver 196.25.1.11
nameserver 196.43.1.11

please assist in setting up a DNS server so that can set up a mail server for the LAN. Not sure the information I have provided will be of help or did I make myself clear about my situation.
 
Old 05-04-2009, 02:54 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
I'm honestly not exactly sure what you're trying to accomplish. Try to break down your requirements to a list of specific items.
 
Old 05-05-2009, 01:48 AM   #3
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
I want to configure a DNS server and then later a mail server
 
Old 05-05-2009, 03:02 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
From the sounds of it, this is a serious setup ie for business, in which case, use Centos not Fedora, as there is a rapid turnover in Fedora versions and its a bleeding edge distro.
Centos is the free version of Redhat, which is the 'stable' version of Fedora.
 
Old 05-05-2009, 07:07 AM   #5
perfectpol7
Member
 
Registered: Feb 2009
Posts: 84

Original Poster
Rep: Reputation: 15
I need fedora then when acquire the knowledge and skill then I will move to your recommendation, thanks
 
Old 05-05-2009, 10:59 AM   #6
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by perfectpol7 View Post
I need fedora then when acquire the knowledge and skill then I will move to your recommendation, thanks
Running Fedora on a server is a "Bad Idea"(tm).
 
Old 05-05-2009, 09:01 PM   #7
mpiekarski
LQ Newbie
 
Registered: May 2009
Location: Newark, DE
Distribution: Gentoo,ubuntu,rhel
Posts: 25

Rep: Reputation: 16
You are only allowing "Allow Query" from localhost. Also, make sure you have iptables rules allowing lookups:

If your internal network, for example, is 10.10.10.0/24, run this on the fedora box as root:

iptables -I INPUT -p udp -s 10.10.10.0/24 --dport 53 -j ACCEPT
iptables -I OUTPUT -p udp -d 10.10.10.0/24 --sport 53 -j ACCEPT
/etc/init.d/iptables save

You will have to do the same for tcp if you plan on allowing Zone transfers. Oh yea, DNS is one of them magical tcp/udp services.

Anywho, Set your allow-query to either your internal subnet as well as localhost, or just rely on your iptables rules and set it to any.

The following article looks pretty in depth: http://www.linuxhomenetworking.com/w...onfiguring_DNS. You might want to try looking that one up.

------------------------------------
Michael Piekarski
Network Engineer
mpiekarski@hostmysite.com
www.hostmysite.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help setting up LAN DNS server digity Linux - Networking 4 07-01-2006 06:49 AM
Help in setting up a DNS LAN server Ronin_tekorei Linux - Networking 15 05-30-2006 06:44 AM
setting up lan DNS with virtual IP? in2u29 Fedora 1 05-26-2006 09:51 PM
Advice on setting up VPN/LAN DNS rwalkerphl Linux - Networking 2 10-03-2004 12:32 PM
Setting up a DNS and Mail server rajivsalwan Linux - Networking 0 07-07-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration