Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(Note: You can get the IP address of the client computer with the command “ipconfig” under the DOS
prompt in Windows 98. In Redhat Linux, Use command “ifconfig”)
“/etc/named.conf”
options
{
directory "/var/named/";
};
//root servers
zone "."
{
type hint;
file "named.ca";
};
Page 1 of 4
Lab4. Domain Name Server Comp2650
$TTL 86400
@ IN SOA serv4272.comp2650.com. root.comp2650.com. (
1 ; serial number, YYYYMMDDxx
28800 ; refresh rate in sec. (8 hrs)
14400 ; retry in seconds (4 hours)
3600000 ; expire in seconds (1000 hours)
86400) ; minimum in seconds (24 hours)
IN NS serv4272.comp2650.com.
IN MX 10 serv4272.comp2650.com.
Localhost IN A 127.0.0.1
serv4272 IN A 158.182.8.170
mydesk IN A 158.182.8.169
www IN CNAME serv4272.comp2650.com.
$TTL 86400
@ IN SOA serv4272.comp2650.com. root.comp2650.com. (
2
28800
14400
3600000
86400)
IN NS serv4272.comp2650.com.
$TTL 86400
@ IN SOA localhost. root.localhost. (
3
28800
14400
3600000
86400)
@ IN NS localhost.
@ IN A 127.0.0.1
@ IN NS localhost.
1 IN PTR localhost.
Page 2 of 4
Lab4. Domain Name Server Comp2650
NETWORKING=yes
HOSTNAME=servxxxx.comp2650.com
Page 3 of 4
Lab4. Domain Name Server Comp2650
How can you test whether the DNS server is working properly?
Ping any one DNS in internet, then check the DNS IP. If the DNS server work, you can find
this IP by the DNS. If not, the DNS server does not work.
For example:
ping www.yahoo.com.hk
you will see the ip [202.43.221.34]
Page 4 of 4