Changes

Jump to: navigation, search

OPS335 DNS Lab

15 bytes removed, 16:23, 19 December 2012
m
Updated to F17.
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;
};
* Create the file /var/named/localhost.zone and enter the following (note: if you copy-paste this code, there should be NO leading spaces before the "@" or the "$"):
$TTL 3D
@ IN SOA f16f17.<learnid>.org. <learnid>.<learnid>.org. (
1 ; Serial
8H ; Refresh
$TTL 3D
@ IN SOA f16f17.<learnid>.org. <learnid>.<learnid>.org.(
1 ; Serial
8H ; Refresh
1D ; Negative Cache TTL
);
@ IN NS f16f17.<learnid>.org. f16 f17 IN A 192.168.X.1
vm01 IN A 192.168.X.2
vm02 IN A 192.168.X.3
$TTL 3D
@ IN SOA f16f17.<learnid>.org. <learnid>.<learnid>.org. (
1 ; Serial
8H ; Refresh
1D ; Negative Cache TTL
);
@ IN NS f16f17.<learnid>.org. 1 IN PTR f16f17.<learnid>.org.
2 IN PTR vm01.<learnid>.org.
3 IN PTR vm02.<learnid>.org.
*When starting or restarting your name server view the log file (/var/log/messages) to ensure it started without error.
*Try a few lookups:
host f16f17.<learnid>.org
host vm01.<learnid>.org
host vm02.<learnid>.org
932
edits

Navigation menu