Operating System - HP-UX
1832616 Members
3485 Online
110043 Solutions
New Discussion

Re: Name Service not available

 
Seetha Lakshmi
Frequent Advisor

Name Service not available

Hi,

I wrote a simple RPC program. The function rpc_ns_binding_export gives the Name service unavailable error. When i searched for this error message it said "A Name Service Interface operation was unable to communicate with the name service server the CDS server. " How to verify that the name service server (CDS) is running.
6 REPLIES 6

Re: Name Service not available

Hi:
you can view the DNS server's in /etc/resolv.conf file.

Bye
Muthukumar_5
Honored Contributor

Re: Name Service not available

Can you check in command line,

a) nslookup ?
b) nslookup FQDN ?
c) nslookup IP-Address?

What are you getting?

Resolvation is based on /etc/nsswith.conf file hosts: entry order.

dns - /etc/resolv.conf
hosts - /etc/hosts

like that.

hth.
Easy to suggest when don't know about the problem!
Seetha Lakshmi
Frequent Advisor

Re: Name Service not available

The function "rpc_ns_binding_export" emits the error "Name service unavailable (dce / rpc)" what does it indicate??
Muthukumar_5
Honored Contributor

Re: Name Service not available

Yes. Server is not properly configuration for name service resolvation.

Please the output of,

# cat /etc/nsswitch.conf
# cat /etc/resolv.conf
# cat /etc/hosts

# nslookup hostname.domainname.

hth.
Easy to suggest when don't know about the problem!
Seetha Lakshmi
Frequent Advisor

Re: Name Service not available

i dont have the file "/etc/nsswitch.conf" but i tried nslookup on the hosts given in
"/etc/resolv.conf" and "/etc/hosts". so what is the problem



Muthukumar_5
Honored Contributor

Re: Name Service not available

Try to create /etc/nsswitch.conf file as,

# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files
group: files
hosts: dns files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files

Please give output to,

# nslookup (hostname).(domainname).com
FQDN.. has to resolved.

hth.


Easy to suggest when don't know about the problem!