- 论坛徽章:
- 0
|
把我的电脑配置成一个主 DNS:
[root@localhost named]# cat named.host
$TTL 86400
@ IN SOA localhost root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS localhost
www IN A 200.200.200.200
hehui IN A 1.1.1.1
~
"named.host" 10L, 465C
[root@localhost root]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
domain greatalent.com
nameserver 192.168.1.106
nameserver 192.168.1.1
nameserver 202.106.0.20
search localdomain
~
"/etc/resolv.conf" 6L, 151C
[root@localhost root]# cat /etc/named.conf
zone "greatalent.com" IN {
type master;
file "named.host";
};
[root@localhost named]# nslookup
> www.greatalent.com
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: www.greatalent.com
Address: 218.244.136.34
> hehui
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find hehui: NXDOMAIN
> hehui.greatalent.com
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find hehui.greatalent.com: NXDOMAIN
> 192.168.1.1
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find 1.1.168.192.in-addr.arpa: NXDOMAIN
>
[ 本帖最后由 bj.greatalent 于 2006-3-21 14:48 编辑 ] |
|