nslookup problem

Posted on 2007-07-24
Last Modified: 2013-11-17

I have configured my /etc/resolv.conf with the below settings.

I have remove all the host defined on the /etc/hosts.  When I try to ping on one of the server that is defined on the Domain Controller, ping is successful.  When I try to do nslookup on the same server that I ping, I am getting the below error.

#ping issolaris    
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=252 time=1 ms
64 bytes from icmp_seq=1 ttl=252 time=1 ms PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1/1/1 ms

#nslookup issolaris
*** Can't find server name for address host/domain
*** Default servers are not available

Question by:mkuser01
    LVL 13

    Expert Comment

    I'm slightly confused about something. First you are explaining your question and talking about your /etc/resolv.conf and /etc/hosts files, nut then you are talknig about pinging a host on the Domain Controller. Are you saying that a Windows DC is also your DNS server? It may seem like a stupid question, but are you sure the DNS server is running? Are there any errors or event log entries when starting the service?

    It is possible that the error you are getting is due to not having a reverse lookup record for on the name server. When you start nslookup, it attempts to connect to the name server and do a reverse lookup against the IP Address to display the name of the server you connected to.


    Author Comment

    Hi dhoffman,

    Yes, my DC is also my DNS.
    How do I set the reverse lookup? And is it on the DC or in the AIX server?

    Thank you in advance.
    LVL 13

    Accepted Solution

    The reverse lookup would be on the DNS server, which as you indicated is also your DC.  Check the following link for basic instructions about creating these zones. Basically, what you will end up with is a zone called This is the standard default naming for a reverse lookup zone. No it's not wrong that the first three octets are backwards, that's the way it works. Inside that zone, you'll create a record, but because this is a reverse lookup, you'll create a PTR record instead of an A record. The PTR record simply holds the fourth octet, which in this case is 14, and the associated host name, which in this case should be

    Something else to look into... When you run NSLOOKUP, you can specify the server you want to communicate with. Execute nslookup with no arguments. Then on the first command line type the word "server" followed by a space, and then the IP Address or host name of the server you want to query. I'm telling you this because I'll suggest another test for you as well...

    On the windows machine, open a command prompt and do just that. Run nslookup, and specify the server that your AIX machine is trying to communicate with. See if you have the same results. While the exact details of nslookup might be slightly different on AIX versus Windows, your results should be fairly the same.

    Once you get the reverse record in DNS, you'll be able to resolve the name if you specify the address.

    Author Comment

    Thanks dhoffman

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now