AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  nslookup wont work

    Posted Wed May 28, 2008 10:18 PM

    Originally posted by: Miztiik


    I have a server called serverA and the DNS server has it name as serverA and able to reach this server from any other server in the network.

    But in serverA the hostname had been set to say "serverX" .

    So when i log into the serverA it shows as serverX after successfull login. And when i do a nslookup for its own name it fails and it fails even with the IP.

    So if i run any script from the server, with serverA mentioned anywhere within the script it fails.

    What could be the problem?

    Do i need to add serverX also in the DNS server.

    =======================================================================
    Helping to weave a better web

    Message was edited by: Miztiik
    #AIX-Forum


  • 2.  Re: nslookup wont work

    Posted Thu May 29, 2008 07:20 AM

    Originally posted by: tony.evans


    ServerX's hostname is ServerX.

    This is entirely independent of your network and DNS configuration.

    However, it's usual for a server to be able to resolve its own hostname into an IP address, and it usually does this by using its own hosts file. Even if a server uses DNS, it's useful to have an entry in /etc/hosts for the hostname and IP address combination.

    On top of that, it's also useful for other hosts to be able to resolve your server name to an IP address and that's where DNS comes in, so yes, there probably should be an entry in your DNS setup to resolve ServerX to a valid hostname, and you may want to remove ServerA and then set it up as an alias (CNAME) against the actual hostname.

    There is no 'fault' here, it's just wrongly configured for whatever reason.

    i.e. ServerA (label) in DNS resolve to an IP address that you've got assigned to ServerX (hostname) and ServerX doesn't have an entry in its own host file or is being forced to use DNS only.

    It's pretty crucial for a healthy distributed server environment, to understand the basics of TCP/IP, addressing and DNS, and to make sure all your systems are in synch.
    #AIX-Forum