setting up DNS for web & mail servers.

Hi,

here is my prob :

I've a server named "serval"
domain : "d2i.fr"
ip addr : "195.28.198.254"
this server act as a web server and a mail server.
(OS: RedHat 6.0, sendmail 8.9.3 (pop3),
BIND 8)

this server is also his own primary dns server, and another machine in another domain is the secondary dns server.

the dns server is declared to the NIC as www.d2i.fr  ; 195.28.198.254

the server will act as a web server for numerous domains, and as a mail server for these same domains.
Each mail server should have, as name, mail.domain.com  (i.e.   mail.d2i.fr)
and web-site should be reached in my server by www.domain.com

for exemple : lvl-medical.fr will be hosted by serval.d2i.fr and mail server should be mail.lvl-medical.fr

What I need is a step by step method to configure dns files


Thanks,   Jacoby.
LVL 1
jacobyAsked:
Who is Participating?
 
ezleeConnect With a Mentor Commented:
Hi, Jacoby

You could just run "linuxconf" to config your dns server, mail server, and Apache server. "linuxconf" will automatically change the necessary files like "/etc/hostname, /named/conf, /var/named.ca etc.".

First you should run "setup" to activate the "named" daemon. Then, run "linuxconf", in "basic host infomation", give the host name of "serval.d2i.fr" and the IP address of 195.28.198.254. In "Name Server specifications", give the default domain "d2i.fr", and the IP address of nameserver1(195.28.198.254)and nameserver2.

If your server is not connected directly to the internet, just provide the default gateway address. Then give the correct "Host name search path".    

While configuring the DNS server, add the host "serval" and give it CNAME of "www" and "mail". So that when people try to connect to "www.d2i.fr" or send email to "someone@mail.d2i.fr", they will be directed to host "serval.d2i.fr".

For different domain, you could just config the "Apache Web Server" to add "Virtual domains" on it and "Mail delivery system(sendmail) to add "virtual email domain".

You can do all the job under "linuxconf", and you will never be bothered with any dns or sendmail configuration files. hope this will help you.

ez


 
0
All Courses

From novice to tech pro — start learning today.