vm1 IN A 192.168.X.2
*<ol><li value="4">Next, edit /var/named/mydb-for-192-168-X and enter the following:</li></ol>
$TTL 3D
2 IN PTR vm1.<learnid>.org.
*<ol><li value="5">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.:</li></ol>
nameserver 192.168.X.2
search <learnid>.org
* <ol><li value="6">Note that this is only temporary, and will go away when the machine reboots. There is another step later that will make this change permanently.*</li><li>Start your DNS server with the command:<br>systemctl start named.service</li><li>Check that your name server is running:</br>ps ax | grep named or systemctl start status named.service</li><li>Set the service to start automatically when this virtual machine boots.</li><li>When starting or restarting your name server view the log file (/var/log/messages) to ensure it started without error.</li><li>Try a few lookups:</li></ol>
*Check that your name server is running
ps ax | grep named
*or
systemctl status named.service
*Set the service to start automatically when this virtual machine boots.
*When starting or restarting your name server view the log file (/var/log/messages) to ensure it started without error.
*Try a few lookups:
host host.<learnid>.org
host vm1.<learnid>.org