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