简体   繁体   中英

NSLOOKUP is Not working on Ubuntu 12.04

I had provided FQDN of the server in host file and did all the necessary changes even after i am getting error on ubuntu 12.04 i am executing command

nslookup hadoopmaster.impps.co.in

Server:         172.26.32.7
Address:        172.26.32.7#53 
** server can't find hadoopmaster.impps.co.in: NXDOMAIN

and hostname -f command is giving output

hadoopmaster.impps.co.in

Here we need to add entry in DNS about the host.

Nslookup skips the hosts file and queries DNS server for FQDN if DNS finds any entry associated with name he returns the IP Address of the server.

you can find the IP of the DNS server in /etc/resolv.conf on your system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM