Open main menu

CDOT Wiki β

Changes

OPS335 DNS Lab

1,408 bytes removed, 01:05, 3 February 2016
Zone file
=== Zone file ===
Now edit '''/var/named/mydb-for-'''yoursenecaid'''-org''' and enter the following: But (use your own X value where applicable. Note: if you copy-paste this code, there should be NO leading spaces before the first column of text (and [http://www.zytrax.com/books/dns/ch8/ here's a bit of documentation] to explain what the contents of this file are).
<pre>
1W ; Expire
1D ; Negative Cache TTL
);
@ IN NS vm1.seneca-id.org.
vm1 IN A 192.168.X.2
</pre>
<ol><li value="5">Now set up your resolver to point to itselfAgain, here's the [http://www.zytrax. Edit com/etcbooks/resolv.conf, delete what's there and enter dns/ch8/ reference documentation] for records in this data insteadfile. Remember Pay specific attention to use your value for X:</li></ol>
nameserver 192.168.X.2 search '''seneca-id'''.org* asd
<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 systemctl command:<br><pre>systemctl start named.service</pre></li><li># Check that your name server is runningusing:<br><pre>#* The ps ax | command (perhaps combined with grep named</pre> or <pre>)#* A systemctl status named.service</pre></li><li>Set the service to start automatically when this virtual machine boots.</li><li>When starting or restarting your name server view the command#* The system log file ( /var/log/messages) to ensure it started without error.</li><li>Try a few lookups:<pre>host host.'''seneca-id'''.orghost vm1.'''seneca-id'''.orghost vm2.'''seneca-id'''.orghost vm3.'''seneca-id'''.orghost cbc.ca</pre></li></ol>  <ol><li value="12">Now try a few reverse lookups:<pre>host 192.168.X.1host 192.168.X.2host 192.168.X.3host 192.168.X.4</pre></li></ol>   <ol><li value="13">You'll notice that only the queries for vm1 worked. That's because you only have the resource records for vm1. Go back to the zone files and add the appropriate records for your other machines.</li><li># Once you have done so, restart 're sure the service and try querying for those records again</li><li>Modify your firewall starts without errors - set it to allow the other machines to query your new DNS serverstart automatically when this virtual machine boots.</li></ol>  '''Record troubleshooting checklist for INVESTIGATION 1 in your OPS335 lab log-book'''
= INVESTIGATION 2: CONFIGURING DNS CLIENT =