1822896 Members
3592 Online
109645 Solutions
New Discussion юеВ

Xserver DNS Lookups

 
Paul Murray_4
Frequent Advisor

Xserver DNS Lookups

Hello All,

I'm getting a rather strange problem with Exceed/HP-CDE connections that appears to be down to the Xserver on the Unix host.

Namely, the connection fails when the Unix host relies on DNS lookups for the client PC's. However, add the PC into the host file and hey-presto, the connection succeeds and up pops CDE via Exceed.

What makes this even stranger, is that the nsswitch.conf file is left unchanged, and states to use DNS first, followed by files !!!

Any ideas ????


Regs,
Paul.


FYI: A-Class server running HPUX11 + Exceed v7.
Hey, nobody knows EVERYthing !!!
3 REPLIES 3
Jeff Schussele
Honored Contributor

Re: Xserver DNS Lookups

Hi Paul,

Make sure the X-client can be resolved in *both* directions, i.e. by name AND by IP.
I suspect you'll find an error in DNS - either a misspelling or the forward (by name) or reverse (by IP) or both is missing in DNS.
When you add it to the /etc/hosts file - THEN it can be resolved properly & the Xserver will serve up the session.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: Xserver DNS Lookups

If possible:

switch nsswitch.conf to files first

Check the spelling in /etc/hosts

If it works there and not DNS, the DNS record is screwed up.

Typo most likely

Don't forget to put nsswitch back when done.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Paul Murray_4
Frequent Advisor

Re: Xserver DNS Lookups

Hi Jeff + Steve,

Many thanks for the suggestions, but unfortunately (?), both forward and reverse lookups are the same from both DNS, and from files - I've even passed them through "cat -vet" to check for any dodgy chars, but no luck !!

I've also tried reversing the DNS/files within nsswitch, but again, get the same results.


FYI - here is the nslookup outputs:-


DNS
===

# nslookup PC528
Name Server: uk101.oak.com
Address: 192.168.100.1

Trying DNS
Name: PC528.ln.com
Address: 192.168.235.95

# nslookup 192.168.235.95
Name Server: uk101.oak.com
Address: 192.168.100.1

Trying DNS
Name: PC528.ln.com
Address: 192.168.235.95


FILES
=====

# nslookup PC528
Using /etc/hosts on: UX101

looking up FILES
Name: PC528.ln.com
Address: 192.168.235.95

# nslookup 192.168.235.95
Using /etc/hosts on: UX101

looking up FILES
Name: PC528.ln.com
Address: 192.168.235.95




The "cat -vet" pass simply shows the $ eol hidden char.

Any ideas ??


Regs,
Paul.
Hey, nobody knows EVERYthing !!!