udiniqgeek
Thinks about OS Linux Ubuntu | Ubuntu Tutorials
HOW TO MAKE MONEY by INTERNET
sfi


Install DNS Server at Ubuntu 8.04




After doing trial and error process is long, I finally managed to install ubuntu dns server in my favorite server. Actually, I've managed to install dns server and do the configuration via webmin, but as a true fan of ubuntu certainly not happy when not managed to do via the console.One thing you should consider  :

To facilitate the install dns server in ubuntu, then we must prepare :

  • Ip Address to DNS Server, here I use the ip address 10.14.10.100
  • Nameserver, here I use the nameserver ns.udiniqgeek.com with ip address 10.14.10.100
  • Domain Name, here I use the domain name udiniqgeek.comwith ip address 10.14.10.100
  • Mail domain, here I use mail.udiniqgeek.com with ip address 10.14.10.100

An initial step is to download the package bind9 dns server by doing the following command:

udiniq@server:/# aptitude update && aptitude install bind9

After doing the above command, it will be installed bind9 automatically and if the install process is complete it will return to the position prompt. The next step is to set up the folder /etc/bind/:

udiniq@server:/# cd /etc/bind/

After being on the folder /etc/bind/ please do the ls command to find out what folders are in /etc/bind:

udiniq@server:/etc/bind# ls

and usually the folder that appears in /etc/bind/ by default when you first install is as follows :

db.0            db.local            named.conf.local         zones.rfc1918
db.127        db.empty          db.root                          named.conf.options
db.255        named.conf      rndc.key

Ok, next step is we need to create a database for the domain name we will create the dns server and as plan at the beginning, a domain which we will create is udiniqgeek.com with MX mail.udiniqgeek.com, and here I am will create a database udiniqgeek.com.hosts and resolver file with  10.14.10.100.rev.

To simplify the configuration database, the following steps :

udiniq@server:/etc/bind# vim udiniqgeek.com.hosts

$ttl 38400
udiniqgeek.com.     IN      SOA     ns.udiniqgeek.com. admin.udiniqgeek.com. (
                        1259911717
                        10800
                        3600
                        604800
                        38400 )
udiniqgeek.com.     IN      NS      ns.udiniqgeek.com.
ns.udiniqgeek.com.  IN      A       10.14.10.100
mailserver.udiniqgeek.com.       IN      A       10.14.10.100
udiniqgeek.com.     IN      MX      10 mailserver.udiniqgeek.com

If the database already udiniqgeek.com.hosts ok, then we create a file resolver, the following steps:

udiniq@server:/etc/bind# vim 10.14.10.100.rev

$ttl 38400
100.10.14.10.in-addr.arpa.       IN      SOA     ns.udiniqgeek.com. admin.udiniqgeek.com. (
                        1259914694
                        10800
                        3600
                        604800
                        38400 )
100.10.14.10.in-addr.arpa.       IN      NS      ns.udiniqgeek.com.
100.10.14.10.in-addr.arpa.       IN      PTR     ns.udiniqgeek.com.
100.10.14.10.in-addr.arpa.       IN      PTR     mailserver.udiniqgeek.com.

Next we must create the main file bind at folder /etc/bind/named.conf.local, the following steps:

udiniq@server:/etc/bind# vim named.conf.local

-- Add the following script --

zone "udiniqgeek.com" {
type master;
file "/etc/bind/udiniqgeek.com.hosts";
};
zone "100.10.14.10.in-addr.arpa" {
type master;
file "/etc/bind/10.14.10.100.rev";
};

To refine bind configuration, please edit the nameservers are in the folder /etc/resolv.conf, the command:

udiniq@server:/etc/bind# vim /etc/resolv.conf

search udiniqgeek.com
nameserver 10.14.10.100

The next step is to restart bind you to all the config can be run, run the following command:

udiniq@server:/etc/bind# /etc/init.d/bind9 restart

To check domain name, please do the following commands :

1. To check the SOA record, therein including the series of the new zone we created, run the following command:

udiniq@server:/etc/bind# dig @localhost soa  udiniqgeek.com

2. To check your MX records, use the following command:

udiniq@server:/etc/bind# dig @localhost mx  udiniqgeek.com

3. To Check with nslookup

udiniq@server:/etc/bind# nslookup mailserver.udiniqgeek.com
 
SITE ARCHIVE
udiniqgeek
Thinks about OS Linux Ubuntu | Ubuntu Tutorials
Copyright©2009 | UdiniqGeek.com - Thinks about OS Linux Ubuntu - Ubuntu Tutorials | Contact Us | :: RSS | [Valid RSS]