nslookup 中出现错误

nslookup 中出现错误

我正在尝试这样做nslookup skhdphost1 ,但出现了以下错误。当我尝试nslookup 172.16.xxx.xx再次使用命令进行反向查找检查时,出现相同的错误:

错误信息是:

[root@skhdphost1 ~]# nslookup 172.16.xxx.xx
Server:         8.8.8.8
Address:        8.8.8.8#53

** server can't find xxx.xxx.16.172.in-addr.arpa.: NXDOMAIN

[root@skhdphost1 ~]#

我的设置如下:

/etc/hosts文件中的条目

172.16.xxx.xx   skhdphost1.example.com      skhdphost1

/etc/sysconfig/network文件中的条目

NETWORKING=yes
#HOSTNAME=skhdphost1
HOSTNAME=skhdphost1.example.com
PEERDNS=no
GATEWAYDEV=eth5
GATEWAY=172.16.xxx.xxx

进入/etc/resolv.conf

nameserver      8.8.8.8
nameserver      172.16.xxx.xx

进入/etc/nsswitch.conf

[root@skhdphost1 ~]# vi /etc/nsswitch.conf
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#       nisplus                 Use NIS+ (NIS version 3)
#       nis                     Use NIS (NIS version 2), also called YP
#       dns                     Use DNS (Domain Name Service)
#       files                   Use the local files
#       db                      Use the local database (.db) files
#       compat                  Use NIS on compat mode
#       hesiod                  Use Hesiod for user lookups
#       [NOTFOUND=return]       Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

我在上述更改后重新启动了网络,但它不起作用。你能给我建议解决方案吗?

相关内容