DNS Server cheat sheet

1 Menentukan domain yang dikelola
$ sudo vim /etc/bind/named.conf.local zone "llc.com" { type master; file "/etc/bind/zones/llc.com.db"; }; zone "2.168.192.in-addr.arpa" { type master; file "/etc/bind/zones/2.168.192.db"; };

3 Menentukan ip-ip hostname & sub domain kita
$ sudo vim /etc/bind/zones/llc.com.db llc.com. IN SOA dns1.llc.com. root.dns1.llc.com. ( 001 ; serial 1H ; refresh 15M ; retry 1W ; expiry 1H ; ttl dns1 192.168.2.5 192.168.2.5 dns1 NS A dns1.redhat.llc.com. 192.168.2.10

) @ dns1 @ www

IN IN IN IN

NS A A CNAME

2 Menentukan domain di atas kita
$ sudo vim /etc/bind/named.conf.options options { forwarders { 192.168.2.15; }; };

redhat.llc.com. IN dns1.redhat.llc.com. IN

4 Menentukan nama-nama dari ip kita (reversed dns)
$ sudo vim /etc/bind/zones/2.168.192.db llc.com. IN SOA dns1.llc.com. root.dns1.llc.com. ( 001 ; serial 1H ; refresh 15M ; retry 1W ; expiry 1H ; ttl dns1 dns1.llc.com.

5 Menentukan DNS Server
$ sudo vim /etc/resolv.conf nameserver 192.168.2.5 ) @ 5 IN IN NS PTR