cancel
Showing results for 
Search instead for 
Did you mean: 

nslookup output mismatch

rajesh73
Super Advisor

nslookup output mismatch

unable to start xmanager it log in failsafe mode.pleaes find the attached error.


i able to login root .but normal user logn it goes to failsafe mode.

$ nslookup herdapp2
Name Server: aldc1.source1.com
Address: 10.1.221.1

Trying DNS
Name: herdapp2.source1.com
Address: 10.5.26.3

pls help me urgent.

\\working server nslookup output

nslookup hrdvault
Using /etc/hosts on: hrdvaul

looking up FILES
Name: hrdvaul
Address: 10.5.26.1
Aliases: hrdvaul

5 REPLIES
Torsten.
Acclaimed Contributor

Re: nslookup output mismatch

There is no attachment.

I'm even not sure where the problem should be, since you wrote different servers

$ nslookup herdapp2

and

$ nslookup hrdvault


What exactly is the problem? Please clarify.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
rajesh73
Super Advisor

Re: nslookup output mismatch

pls find the attached error message

herdapp2 server unable to login the xmanager
hrdvault server able to login the xmanager

in the problem server nslookup not fine the /etc/hosts file.but working server find the /etc/hosts file.
pls find the difference
Torsten.
Acclaimed Contributor

Re: nslookup output mismatch

I would ask dr_dt from a console session first (run dr_dt utility).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Bill Hassell
Honored Contributor

Re: nslookup output mismatch

The two servers find IP addresses in completely different ways. herdapp2 is using DNS, usually a bad idea, especially for workstations that are running Xwindows (xamanager). hrdvaul is looking in /etc/hosts for two possible reasons: 1. there is no /etc/resolv.conf file at all, therefore, no DNS server will be used. 2. hrdvaul is using resolv.conf but the /etc/nsswitch.conf file specifies files, then dns.

To solve the problem (and future problems with any HP-UX servers and workstations), create an /etc/nsswitch.conf that looks like this:

passwd: files
group: files
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=return UNAVAIL=return TRYAGAIN=return]
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files

Now nslookup should work as expected. You probably need to contact your DNS administrator to correct any errors.


Bill Hassell, sysadmin
Michael Steele_2
Honored Contributor

Re: nslookup output mismatch

Contact your DNS admin

What do you get for:

nslookup 10.5.26.3?
nslookup 10.5.26.1?
Support Fatherhood - Stop Family Law