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

上記の変更後、ネットワークを再起動しましたが、動作しませんでした。私に解決策を提案してもらえますか?

ベストアンサー1

おすすめ記事