Brian Wellington wrote:

> Noel J. Bergman wrote:

> > adding "domain devtech.com" (see `man resolv.conf`)
> > to /etc/resolv.conf changed the behavior so that it works:
> >
> >  domain   Local domain name.
> >           Most queries for names within this domain can use short
> >           names relative to the local domain. If no domain entry
> >           is present, the domain is determined from the local host
> >           name returned by gethostname(); the domain part is taken
> >           to be everything after the first `.'. Finally, if the
> >           host name does not contain a domain part, the root domain
> >           is assumed.
> > and picking up the ".com" from my hostname.

> The code in dnsjava's ResolverConfig class should be looking at any
> "search" or "domain" entries in /etc/resolv.conf, and using them as
> DNS searchlist entries; that is, suffixes to append to potentially
> non-absolute domain names.  I'm not sure why .com would be appended to a
> domain name unless there was either a "domain com" or "search com" entry.

That is the question, Brian.  There were neither domain nor search entries
in my resolv.conf, only nameserver entries; which is why I quoted the
section from the man page, above.  My hostname is devtech.com, which does
have "com" after the first '.' in the hostname.  *Now* I have "domain
devtech.com", as the fix, and the spurious ".com" suffix is no longer being
added.

> You've figured out the problem, and there's nothing wrong in dnsjava
> here, right?

I'll agree that I should've had a domain entry to counter-balance the
hostname, as described above.  But it sounds from your description as if you
want to at least check dnsjava to see how the .com was getting added, since
there seems to be some question as to what did it.

        --- Noel



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to