三、客户机测试
1.测试域名解析是否正常
[root@station ~]# nslookup www.op.com
Server: 192.168.56.53
Address: 192.168.56.53#53
Name: www.op.com
Address: 192.168.56.53
[root@station ~]# cat /etc/resolv.conf
nameserver 192.168.56.53
[root@station ~]# nslookup www.sq.com
Server: 192.168.56.53
Address: 192.168.56.53#53
Name: www.sq.com
Address: 192.168.56.53
以上结果无异常,表示DNS服务器正常运行。
2.测试页面访问
使用firefox访问http://192.168.56.53时,返回的结果为:
this is home page server: 192.168.56.53
使用firefox访问http://www.op.com时,返回的结果为:
this is op page server: 192.168.56.53
使用firefox访问http://www.sq.com时,返回的结果为:
this is sq page server: 192.168.56.53
