- 论坛徽章:
- 0
|
DNS配置求救
[quote]原帖由 "xiaorui15"]他做的是客户端,只要三个文件就行了,/etc/nsswitch.conf /etc/resolv.conf /etc/defaultrouter[/quote 发表:
我的/etc/nsswitch.conf内容是这样的:
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
passwd: files
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
ipnodes: files
# Uncomment the following line and comment out the above to resolve
# both IPv4 and IPv6 addresses from the ipnodes databases. Note that
# IPv4 addresses are searched in all of the ipnodes databases before
# searching the hosts databases. Before turning this option on, consult
# the Network Administration Guide for more details on using IPv6.
#ipnodes: files dns
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
printers: user files
auth_attr: files
prof_attr: files
project: files
/etc/defaultrouter也是正确的,因为能ping到网关。我的/etc下最先没有resolv.conf文件,是我自己建了一个,里面添加的内容如下:
domain www.east.org
nameserver 202.100.63.100
nameserver 211.98.6.4
nameserver 202.100.63.102
中间用的是TAB键,用nslookup也能得到正确的地址,但是就不能上网,请问各位DX,这个问题该怎么解决? |
|