- 论坛徽章:
- 0
|
回复 #7 ljhappy 的帖子
bash-3.00# cat /etc/resolv.conf \r\nnameserver 202.106.0.20\r\n\r\nbash-3.00# cat /etc/nsswitch.conf \r\n#\r\n# Copyright 2006 Sun Microsystems, Inc. All rights reserved.\r\n# Use is subject to license terms.\r\n#\r\n\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\n# DNS service expects that an instance of svc:/network/dns/client be\r\n# enabled and online.\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\n\r\n# Note that IPv4 addresses are searched for in all of the ipnodes databases\r\n# before searching the hosts databases.\r\nipnodes: 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\nprinters: user files\r\n\r\nauth_attr: files\r\nprof_attr: files\r\nproject: files\r\n\r\ntnrhtp: files\r\ntnrhdb: files\r\n\r\nbash-3.00# cat /etc/nsswitch.dns \r\n#\r\n# Copyright 2006 Sun Microsystems, Inc. All rights reserved.\r\n# Use is subject to license terms.\r\n#\r\n\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\n# DNS service expects that an instance of svc:/network/dns/client be\r\n# enabled and online.\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\n\r\n# Note that IPv4 addresses are searched for in all of the ipnodes databases\r\n# before searching the hosts databases.\r\nipnodes: 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\nprinters: user files\r\n\r\nauth_attr: files\r\nprof_attr: files\r\nproject: files\r\n\r\ntnrhtp: files\r\ntnrhdb: files\r\n\r\n\r\n运行了:svcadm enable svc:/network/dns/client还是不行\r\n\r\nbash-3.00# nslookup news.163.com\r\nServer: 202.106.0.20\r\nAddress: 202.106.0.20#53\r\n\r\nNon-authoritative answer:\r\nnews.163.com canonical name = news-biz.cache.split.netease.com.\r\nnews-biz.cache.split.netease.com canonical name = biz.163.com.\r\nName: biz.163.com\r\nAddress: 202.108.9.79\r\n\r\n\r\nbash-3.00# ping news.163.com 没有响应 |
|