Operating System - Tru64 Unix
1828630 Members
6430 Online
109983 Solutions
New Discussion

Re: Tru64 V5.1 Name Resolving (DNS) problem

 
Asterisk
New Member

Tru64 V5.1 Name Resolving (DNS) problem

Hi Experts,

I've encountered a problem related to Name Resolving on my Tru64 Box.
I've defined the name servers' IP on the "resolv.conf" as below:
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy

And the "nsswitch.conf" contains the following entries:
aliases: files
auth_prpasswd: files
group: compat
group_compat: nis
hosts: files dns
netgroup: nis
networks: files
passwd: compat
passwd_compat: nis
protocols: files
rpc: files
services: files

By using "nslookup" on the Tru64 box, I can resolve the name into IP:

#nslookup
Default Server: dns01-aa.bbbbbb.abc
Address: xxx.xxx.xxx.xxx

> www.cisco.com
Server: dns01-aa.bbbbbb.abc
Address: xxx.xxx.xxx.xxx

Non-authoritative answer:
Name: www.cisco.com
Address: 198.133.219.25


But I can't ping the www.cisco.com:

# ping www.cisco.com
ping: unknown host www.cisco.com

The ping can get the IP of the host if it exist in "/etc/hosts" And my "/etc/hosts" file has the 2 entries for my primary and secondary name server IP and name.

I would like to know if anything I need to change in order to make the "nsswitch.conf" file valid ? Or there's any problem on my "nsswitch.conf" file ? Or I need to restart some process after changing the above files ?
Please kindly help ! Million thanks ! :)
8 REPLIES 8
Michael Schulte zur Sur
Honored Contributor

Re: Tru64 V5.1 Name Resolving (DNS) problem

Hi Asterisk,

have you tried the configuration with sysman?

greetings,

Michael
Michael Schulte zur Sur
Honored Contributor

Re: Tru64 V5.1 Name Resolving (DNS) problem

Hi again,

you may also want to look into
Network administration: Services

Michael
Ivan Ferreira
Honored Contributor

Re: Tru64 V5.1 Name Resolving (DNS) problem

Try something like this on nsswitch.conf

hosts: files [notfound=continue] dns

Or invert the order. If you do this, make sure that the server itself is on the DNS database:

hosts: dns files
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Stuart Fuller_2
Valued Contributor

Re: Tru64 V5.1 Name Resolving (DNS) problem

Your post indicates you're running V5.1 (not V5.1A or V5.1B).

If so, then /etc/nsswitch.conf didn't exist on V5.1. V5.1 uses /etc/svc.conf (which it has used for all versions prior, as well). The appropriate line from /etc/svc.conf is:

hosts=local,bind

Michael Schulte zur Sur
Honored Contributor

Re: Tru64 V5.1 Name Resolving (DNS) problem

Hi,

Stuart is right. nsswitch.conf is used by HP-UX.
Again, use sysman dns for configuring. This ensures that all necessary files are updated.

Michae.

Ivan Ferreira
Honored Contributor

Re: Tru64 V5.1 Name Resolving (DNS) problem

nsswitch is not only for HP-UX, is valid on Tru64 too, but the version matters, thats true.

On 5.1B

NAME

svc.conf - Database service selection configuration file

DESCRIPTION

Note

This file is obsolete, except for statically-built applications
and sendmail, if the Name Service Switch is installed. See
nsswitch.conf(5) for more information.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Al Licause
Trusted Contributor

Re: Tru64 V5.1 Name Resolving (DNS) problem

More specifically, nsswitch.conf was introduced to Tru64unix in patch kit 3 for v5.1b. If you are not running at least pk3, then check /etc/svc.conf for name look search order.

Also check to make sure you haven't placed any non-printing characters at the ends of the lines in either of these files. It is not recommended that you hand edit nsswitch.conf, but rather use nssetup.

You might also want to use truss or trace to see if ping is actually attempting to open nsswitch.conf.
Michael Schulte zur Sur
Honored Contributor

Re: Tru64 V5.1 Name Resolving (DNS) problem

Al,

you are right. I looked on a machine with pk4 and there it was.

Michael