$TTL 86400
@ IN SOA root (
2013080803 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS
@ IN A 10.0.1.8
www IN A 10.0.1.8
6.重启服务
#重启dns服务
[root@rhel5 named]# service named restart
停止 named: [确定]
启动 named: [确定]#重启httpd服务
[root@rhel5 html]# service httpd restart
停止 httpd: [失败]
启动 httpd: [确定]
客户端
#修改默认dns服务器
[root@localhost ~]# vim /etc/resolv.conf
[root@localhost ~]# cat /etc/resolv.conf
nameserver 10.0.1.8#使用elinks命令简单测试是否能查看相应域名中的内容
[root@localhost ~]# elinks --dump
this is a linuxidc
[root@localhost ~]# elinks --dump
this is a 88181
[root@localhost ~]# elinks --dump
this is a yum