Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

-> bind dns server setup <-

1.install binaries
#apt-get install bind9 dnsutils

2. edit /etc/bind/named.conf.options
#vi /etc/named.conf.options
options {
listen-on port 53 { localhost; };
allow-query { localnets; };
forwarders { 8.8.8.8; };
};

3. edit /etc/bind/zones.rfc1918
#vi /etc/bind/zones.rfc1918
zone aiolinux.ro { type master; file /etc/bind/aiolinux.ro.zone; allow-update { none }; };

4. create and edit /etc/bind/aiolinux.ro.zone file
#touch /var/named/aiolinux.ro.zone
#chown named:named aiolinux.ro.zone
#vi /var/named/aiolinux.ro.zone
$TTL 14400
@ 86400 IN SOA ns.aiolinux.ro. administrator@aiolinux.ro. (
2008021501 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
IN NS ns.aiolinux.ro.
IN MX 10 mail.aiolinux.ro.
ns IN A 192.168.0.2
mail IN CNAME ns.aiolinux.ro.
www IN A 192.168.0.3

5. edit /etc/resolv.conf
#vi /etc/resolv.conf
nameserver 192.168.0.2

6. start & enable named service
#/etc/init.d/bind9 start
#rcconf ( enable bind9)

7.test
#ping ns.aiolinux.ro
#dig @localhost aiolinux.ro mx

You might also like