1758035 Members
2441 Online
108867 Solutions
New Discussion юеВ

Re: Name resolution

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Name resolution

Hi folks,

How to determine that hpux 11/11i has been configured for nis ? i mean what are the files which determines the name resolution ?

Thanks,
Shiv
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: Name resolution

Hi,

# cat /etc/nsswitch.conf

# ypcat hosts
ypcat: the NIS domain name hasn't been set on this machine

Regards,
Robert-Jan
Muthukumar_5
Honored Contributor

Re: Name resolution

Hostname resolvation is done based on,

/etc/nsswitch.conf files hosts: entry.

If it is going to be with NIS then hosts: entry will be with NIS.

hth.
Easy to suggest when don't know about the problem!
Victor Fridyev
Honored Contributor

Re: Name resolution

Hi,

In order to check whether a computer is configured as NIS-client, look at the file called /etc/rc.config.d/namesvrs. There are the following parameters in the file, which define its NIS features: NIS_CLIENT, NIS_MASTER_SERVER and NIS_SLAVE_SERVER. Also look for NISPLUS parameters.
In order to know whether the computer uses DNS for name resolution, look at /etc/resolv.conf. This file describes DNS servers.
The order of name resolution one can see in /etc/nsswitch.conf.

HTH
Entities are not to be multiplied beyond necessity - RTFM