Changes

Jump to: navigation, search

OPS335 DNS Lab

34 bytes added, 12:49, 8 January 2014
m
Took out explicit entries for other machines. Now requires students to put the records in themselves.
);
@ IN NS vm01.<learnid>.org.
host IN A 192.168.X.1
vm01 IN A 192.168.X.2
vm02 IN A 192.168.X.3
vm03 IN A 192.168.X.4
*Next, edit /var/named/mydb-for-192-168-X and enter the following:
);
@ IN NS vm01.<learnid>.org.
1 IN PTR host.<learnid>.org.
2 IN PTR vm01.<learnid>.org.
3 IN PTR vm02.<learnid>.org.
4 IN PTR vm03.<learnid>.org.
*Now set up your resolver to point to itself. Edit /etc/resolv.conf, delete what's there and enter this data instead. Remember to use your value for X.
host 192.168.X.4
*You'll notice that only the queries for vm01 worked. That's because you only have the resource records for vm01. Go back to the zone files and add the appropriate records for your other machines.
*Add rules to your iptables to allow the other machines in your network to query your new DNS server.
932
edits

Navigation menu