I am trying to do nslookup skhdphost1 but I am getting below error. When I try to Reverse lookup checking using command nslookup 172.16.xxx.xx again getting the same error:

The error message is:

[root@skhdphost1 ~]# nslookup 172.16.xxx.xx

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

[root@skhdphost1 ~]#

My settings are as follow:

Entry in /etc/hosts file

172.16.xxx.xx   skhdphost1.example.com      skhdphost1

Entry in /etc/sysconfig/network file


Entry in /etc/resolv.conf

nameserver      172.16.xxx.xx

Entry in /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

I have restarted the network after the above changes but its not working. Can you suggests me the solution for it.

  • Check what you have in /etc/nsswitch.conf Jun 8, 2015 at 8:30
  • I have edited the question and provided the detail. Jun 8, 2015 at 8:35
  • Do you have DNS record in your name server (nameserver 172.16.xxx.xx)? Jun 8, 2015 at 8:37
  • Where I can find that ? Jun 8, 2015 at 8:38
  • On the host do you have run DNS server? Check config and find the directory where zone files are stored Jun 8, 2015 at 8:40


You must log in to answer this question.

Browse other questions tagged .