Operating System - HP-UX
1833758 Members
3197 Online
110063 Solutions
New Discussion

Can't find server name for address <IP>: Server failed

 
Daniel Duarte
Frequent Advisor

Can't find server name for address <IP>: Server failed

Hi

I Have a server DNS in LINUX, My server HPUX this not deciding.
ex:
root@dfserv07:/etc# nslookup meddvoserv004
*** Can't find server name for address 10.12.180.1: Server failed
*** Can't find server name for address 10.12.200.4: Server failed
My resolv.conf
search polimed.dom
nameserver 10.12.180.1
nameserver 10.12.200.4

root@dfserv07:/etc# more nsswitch.conf
hosts: dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return] files[NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
hosts: files
services: files
protocols: files
networks: files
rpc: files
netgroup: files
automount: files

Could Help Me ?

Daniel D.

4 REPLIES 4
Jaime Bolanos Rojas.
Honored Contributor

Re: Can't find server name for address <IP>: Server failed

Hi Daniel!

Can you at least ping your DNS server from the HP-UX machine?

What do you have in your /etc/hosts file?

Regards,

Jaime.
Work hard when the need comes out.
spex
Honored Contributor

Re: Can't find server name for address <IP>: Server failed

Hi Daniel,

A few things I notice:

1) Most resolv.conf files I've come across are of the form:

domain
nameserver
nameserver
...

Notice that you have the 'search' configuration option in place of 'domain'. 'search' is only useful if you want the search path to contain domains other than the local one. Also notice that if you choose to use 'search', the first domain specified must be the local domain.

2) Your nsswitch.conf specifies 'dns' before 'files' for host lookup. Typically, this should be the other way around, so that /etc/hosts is consulted before the DNS server(s).

3) You have the 'hosts' database specified twice in nsswitch.conf. I believe only the second instance's options ('hosts: files') will take effect.

PCS



Daniel Duarte
Frequent Advisor

Re: Can't find server name for address <IP>: Server failed

Hi

I ping my machine DNS

root@dfserv07:/etc# ping 10.12.180.1
PING 10.12.180.1: 64 byte packets
64 bytes from 10.12.180.1: icmp_seq=0. time=4. ms
64 bytes from 10.12.180.1: icmp_seq=1. time=3. ms


I need DNS to my dataprotector to function correctly.


Bill Hassell
Honored Contributor

Re: Can't find server name for address <IP>: Server failed

Your Dataprotector will work fine once you change the hosts: entry to:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns

and delete the duplicate hosts line. Then add all the IP addresses that Dataprotector need to know about (cell server, manager, clients, etc) to /etc/hosts and run nslookup again for each server.

Once that is done, you now have to figure out why your DNS server is broken. The ping indicates that the IP address belongs to a working computer but does not verify DNS function. Use this command:

nsquery hosts meddvoserv004

If the result indicates that has been found, all is well for /etc/hosts. Now change the query to:

nsquery hosts meddvoserv004 "dns"

If the /etc/resolv.conf contains the IP addresses of DNS servers that are blocking your request (or routers that are blocking your HP-UX system), it will fail. Contact your DNS administrator.

Once everything is working, you can do something like this:

nsquery hosts hp.com

and watch as the resolver methods are followed to obtain the (several) hp.com addresses.


Bill Hassell, sysadmin