Untuk mengkonfigurasi Domain Name System (DNS) di Linux, edit file /var/named/aaa.zone dan /var/named/aaa.rev sebagai berikut:
# vi /var/named/aaa.zone
@ IN SOA dns.aaa.bbb.co.id.root.aaa.bbb.co.id.
melky.mail.aaa.bbb.co.id (
2006122102 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
dns IN A 192.168.0.90
mail IN CNAME pop3
mail IN CNAME smtp
ftp IN A 192.168.0.70
melky IN A 192.168.0.11
ahmad IN A 192.168.0.12
pop3 IN A 192.168.0.50
smtp IN A 192.168.0.60
@ IN MX 5 mail.aaa.bbb.co.id.
@ IN NS dns
# vi /var/named/aaa.rev
@ IN SOA dns.aaa.bbb.co.id.root.aaa.bbb.co.id.
melky.mail.aaa.bbb.co.id (
2006122102 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
90.0.168.192.in-addr.arpa. IN PTR dns
50.0.168.192.in-addr.arpa. IN PTR pop3
60.0.168.192.in-addr.arpa. IN PTR smtp
70.0.168.192.in-addr.arpa. IN PTR ftp
11.0.168.192.in-addr.arpa. IN PTR melky
12.0.168.192.in-addr.arpa. IN PTR ahmad
@ IN NS dns.aaa.bbb.co.id.