In this exercise, you will register a new domain, something.taller.nsrc.org. You will create master nameservice on your own machine, and someone else will be your slave.
Firstly, note that each machine in the classroom has been given a working DNS name: pcX.taller.nsrc.org. Configure your server with its real name: e.g. for pc23
# hostname pc23.taller.nsrc.org # vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=pc23.taller.nsrc.org # vi /etc/hosts ... 192.188.58.87 pc23.taller.nsrc.org
(You should see the new name at the login screen on the console)
# mkdir /var/named/m # mkdir /var/named/s # chown named /var/named/s
$TTL 10m @ IN SOA pcXX.taller.nsrc.org. your.email.address. ( 2004030500 ; Serial 10m ; Refresh 10m ; Retry 4w ; Expire 10m ) ; Negative IN NS pcXX.taller.nsrc.org. ; master IN NS pcYY.taller.nsrc.org. ; slave www IN A 192.188.58.xx ; your own IP
(Note that we have chosen purposely low values for TTL, refresh, retry. For a production domain you would use higher values, e.g. $TTL 1d)
# named-checkzone xxxxxx.taller.nsrc.org /var/named/m/xxxxxx.taller.nsrc.org If there are any errors, correct them # rndc reload # tail /var/log/messages If there are any errors, correct them
# dig @192.188.58.xx xxxxxx.taller.nsrc.org. soa # dig @192.188.58.yy xxxxxx.taller.nsrc.org. soa Check that you get an AA (authoritative answer) from both, and that the serial numbers match
Domain name: ___________________.taller.nsrc.org Master nameserver: pc____.taller.nsrc.org Slave nameserver: pc____.taller.nsrc.org Slave nameserver: pc____.taller.nsrc.org (optional) Slave nameserver: pc____.taller.nsrc.org (optional)