分类: LINUX
2009-10-12 15:30:03
只要在/etc/resolv.conf中设定nameserver即可在dns服务器nslookup域名信息~~
如:
# cat /etc/resolv.conf
nameserver 170.1.1.9
SUSE还要做点东西,Slackware则不用
# cat /etc/nsswitch.conf
。。。
hosts: files dns (默认没有dns)
。。。
通了~
# ping test.com
PING test.com (119.110.151.12) 56(84) bytes of data.
64 bytes from 119.110.151.12: icmp_seq=1 ttl=56 time=1.07 ms
# nslookup test.com
Server: 119.110.151.12
Address: 119.110.151.12#53