IN NS @
IN MX 200 mail.linuxidc.com.
mail IN A 192.168.1.200
ftp IN A 192.168.1.200
[root@mail named]# vi named.192.168.1 (设置反解,其中)
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS @
200 IN PTR mail.linuxidc.com.
200 IN PTR ftp.linuxidc.com.
4、测试
[root@mail ~]# vi /etc/resolv.conf (使用刚设定的域)
; generated by /sbin/dhclient-script
search linuxidc.com
nameserver 192.168.1.200
[root@mail ~]# /etc/init.d/named restart(重启动服务)
Stopping named: [ OK ]
Starting named: [ OK ]
[root@mail ~]# nslookup (这里为验证部分)
> 192.168.1.200
Server: 192.168.1.200
Address: 192.168.1.200#53
200.1.168.192.in-addr.arpa name = ftp.linuxidc.com.
200.1.168.192.in-addr.arpa name = mail.linuxidc.com.
> mail.linuxidc.com
Server: 192.168.1.200
Address: 192.168.1.200#53
Name: mail.linuxidc.com
Address: 192.168.1.200
> exit
结束