You are on page 1of 3

DNS CONFIGURATION ON AIX

1. Change your hostname to a fully qualified host name. » root@lpar1: hostname lpar1.my.example.com 2. Create a directory /var/named to hold your zone files. » root@lpar1: mkdir /var/named __ 3. Create the /etc/named.conf file. The file should list your forward and reverse domains. It should also contain a reverse domain for loopback. All domain files should be stored in the /var/named directory. » root@lpar1: vi /etc/named.conf The file should look like this: options { directory “/var/named”; }; zone “my.example.com” { type master; file “named.my.example.com”; }; zone “1.168.192.in-addr.arpa” { type master; file “named.192.168.1”; }; zone “0.0.127.in-addr.arpa” { type master; file “named.local”; }; zone "." { type hint; f file "named.ca"; }; __

4. Create the name zone file so that it properly reflects your domain. » root@lpar1: vi /var/named/named.my.example.com

com. ( 2009010901 . Expire 86400 ) .0. root.my.my.example.example.1. Expire 86400 ) .com.my.1 lpar2 9999999 IN A 192.example. Refresh 300 . Expire 86400 ) .com.1.example. » root@lpar1: vi /var/named/named.com.com.com.my. Refresh 300 . Retry 360000 . 1 9999999 IN PTR loopback.example.1 localhost 9999999 IN CNAME loopback lpar1 9999999 IN A 192.1.lpar1.example.168. root.my.168.example. .lpar1. Minimum 9999999 IN NS lpar1.local The file should eventually look like this: @ 9999999 IN SOA lpar1. 1 9999999 IN PTR lpar1. » root@lpar1: vi /var/named/named. Create the IP zone file(s) so that they properly reflect your domain.my. root.my.my.example.lpar1.my.3 5.com.my.1. Serial 3600 . Minimum 9999999 IN NS lpar1 loopback 9999999 IN A 127.2 lpar3 9999999 IN A 192. Retry 360000 .example. Minimum 9999999 IN NS lpar1. Retry 360000 .com. Refresh 300 .168.1 The file should eventually look like this: @ 9999999 IN SOA lpar1.com. 6. 2 9999999 IN PTR lpar2. ( 2009010901 .0.example.192.The file should eventually look like this: @ 9999999 IN SOA lpar1.my.com. Serial 3600 .example.168.com. 3 9999999 IN PTR lpar3. ( 2009010901 . Serial 3600 . Create the local IP zone file.

com.192.1.my. or one of the root name servers.1 8.ca The file should look like this: .arpa ptr » root@lpar1: dig @localhost 1.1.127. Ignore the output in the “AUTHORITY SECTION”: this is mostly for use by name servers between each other.2 . Start the named daemon and verify that it started correctly.conf file to point to itself.in-addr.168.1 nameserver 192. Create the cache file so that it contains the name server of an upstream domain.If all dig queries are correct.7.in-addr.0.com.arpa ptr In all cases you should get a proper response in the “ANSWER SECTION”.0.1.example.example. » root@lpar1: vi /etc/resolv.conf The file should look like this: domain my. then make this system a client of itself by modifying the /etc/resolv. » root@lpar1: vi /var/named/named.168. Execute a few queries with dig to make sure that the name server is fully operational. » root@lpar1: dig @localhost lpar1. .168. 9999999 IN A 192.168. __ 10.com a » root@lpar1: dig @localhost 1.example. » root@lpar1: startsrc -s named » root@lpar1: lssrc -s named 9. ns.0.com nameserver 192. 9999999 IN NS ns.example.