Operating System - HP-UX
1835266 Members
2511 Online
110078 Solutions
New Discussion

systems resolves to default domain

 
Donald Kok
Respected Contributor

systems resolves to default domain

Hi,

nslookup gives back our domainname (as a part of th (FQDN), when it can not find the real domain.

If the domainname is found (f.i. hp.com) then nslookup gives the right domain.

I do not want this. If a domain name is not found, but a hostname is found, then I only want the simple name.

(This happens on different platforms: hpux, linux and wintel)

TIA
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
5 REPLIES 5
Ron Kinner
Honored Contributor

Re: systems resolves to default domain

I assume you do not own the DNS server that is responding. In that case, simply put a "." at the end of the entry:

example:

nslookup george.

instead of

nslookup george

Ron
Wilfred Chau_1
Respected Contributor

Re: systems resolves to default domain

Ron is right. When a hostname does not ended with a period, it will append whatever listed in the search path in the /etc/resolv.conf file.
Steven E. Protter
Exalted Contributor

Re: systems resolves to default domain

I would set up nsswith.conf to go dns,hosts

Then set up the local /etc/hosts file to return the unqualified domain names.

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
Donald Kok
Respected Contributor

Re: systems resolves to default domain

Hi,

I use an IP-address as the parameter.

Actually my situation is this: I rolled out an IDS (acid) which presents a list with hosts. The hosts are presented as hosts in our domain, which they are not.

Greetzz
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
j gray
Advisor

Re: systems resolves to default domain

i have the same problem with smtp. if no mx is available smtp tries one more time with name.com.local.com where local.com is the local default. This is a waste of time. For example if my local name is abc.com, then pm@cqg.com tries mail.cqg.com and if not available then tries one more time with cqg.com.abc.com with pref -1