932
edits
Changes
m
host IN A 192.168.X.1
vm02 IN A 192.168.X.3
vm03 IN A 192.168.X.4
1 IN PTR host.<learnid>.org.
3 IN PTR vm02.<learnid>.org.
4 IN PTR vm03.<learnid>.org.
Took out explicit entries for other machines. Now requires students to put the records in themselves.
);
@ IN NS vm01.<learnid>.org.
vm01 IN A 192.168.X.2
*Next, edit /var/named/mydb-for-192-168-X and enter the following:
);
@ IN NS vm01.<learnid>.org.
2 IN PTR vm01.<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.