Open main menu

CDOT Wiki β

Changes

OPS335 DNS Lab

73 bytes added, 21:23, 29 January 2012
Edit /etc/named.conf
options {
directory "/var/named/";
authallow-nxdomain noquery {127.0.0.1; 192.168.X.0/24;};
forwarders { 142.204.1.2; 142.204.43.43;};
};
type master;
file "localhost.zone";
notify NO;
};
zone "X.168.192.in-addr.arpa" {
type master;
file "mydb-for-192-168-X";
notify NO;
};
zone "<learnid>.org" {
type master;
file "mydb-for-<learnid>-org";
notify NO;
};
*Now edit /var/lib/named/mydb-for-<learnid>-org and enter the following: But use your own X value where applicable.
$TTL 6048003D
@ IN SOA f16<learnid>.org. <learnid>@.<learnid>.(
1 ; Serial
*Next, edit /var/lib/named/mydb-for-192-168-X and enter the following:
$TTL 6048003D
@ IN SOA f16<learnid>.org. <learnid>@.<learnid>. (
1 ; Serial
1
edit