Changes

Jump to: navigation, search

OPS335 DNS Lab

302 bytes removed, 00:57, 3 February 2016
Zone file
=== Zone file ===
<ol><li value="2">Set the filesystem permissions for the above file to 644</li><li>Now edit '''/var/named/mydb-for-'''seneca-idyoursenecaid'''-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).</li></ol>
<pre>$TTL 3D @ IN SOA vm1.'''seneca-id'''.org. webmaster.'''seneca-id'''.org.( 1 ; Serial 8H ; Refresh 2H ; Retry 1W ; Expire 1D ; Negative Cache TTL ); @ IN NS vm1.'''seneca-id'''.org. 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></olpre $TTL 3D @ IN SOA vm1.'''seneca-id'''.org. webmaster.'''seneca-id'''.org. ( 1 ; Serial 8H ; Refresh 2H ; Retry 1W ; Expire 1D ; Negative Cache TTL ); @ IN NS vm1.'''seneca-id'''.org. 2 IN PTR vm1.'''seneca-id'''.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>

Navigation menu