Open main menu

CDOT Wiki β

Changes

OPS335 DNS Lab

150 bytes added, 01:45, 3 February 2016
Configuration
=== /etc/named.conf ===
#Still on the virtual machine create When you install Bind you'll get a back up of the existing default '/etc/named.conf'. Move this file over to a backup location, delete we will be writing one from scratch with the existing following contents and add the following, but use your own X value where applicable. ([http://www.zytrax.com/books/dns/ch7/ Here is documentation] for all the available options in named.conf, look up the ones that you're using so that you know exactly what they do. <pre>options { directory "/var/named/"; allow-query {127.0.0.1; 192.168.X.0/24;}; forwarders { 142.204.331.542;}; }; zone "localhost" { type master; file "named.localhost"; notify NO; }; zone "X.168.192.in-addr.arpa" { type master; file "mydb-for-192-168-X"; notify NO; }; zone "'''seneca-id'''.org" { type master; file "mydb-for-'''seneca-id'''-org"; notify NO}; };</pre> You need to understand all the options in this file except the localhost zone, so that in the future (for example in a practical test) you can quickly set up a DNS server for a new zone. So look up in [http://www.zytrax.com/books/dns/ch7/statements.html the reference] these things and write down what they do: * directory* allow-query* forwarders* type* 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-id'''-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>