Open main menu

CDOT Wiki β

Changes

OPS335 DNS Lab

79 bytes removed, 21:56, 29 January 2012
Edit /etc/named.conf
*Edit the file /etc/named.conf and enter the following: But use your own X value where applicable. If no file exists, create one. If one is already there, renamed it and make a new one.
options {
directory "/var/libnamed/named";
auth-nxdomain no;
forwarders { 142.204.1.2; 142.204.43.43;};
};
 
zone "localhost" {
type master;
file "localhost.zone";
};
 
zone "X.168.192.in-addr.arpa" {
type master;
file "mydb-for-192-168-X";
};
 
zone "<learnid>.org" {
type master;
};
*Make a new directory called 'named', like this  mkdir /var/lib/named *Now edit Create the file /var/lib/named/localhost.zone and enter the following: $TTL 6048003D @ IN SOA localhostf16<learnid>. rootorg.localhost<learnid>@. <learnid> (
1 ; Serial
604800 8H ; Refresh 86400 2H ; Retry 2419200 1W ; Expire 604800 1D ); Negative Cache TTL
;
@ IN NS localhost.
1
edit