Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 1996 21:17:44 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Cc:        kuku@gilberto.physik.rwth-aachen.de (Christoph P. Kukulies)
Subject:   Re: name resolution (domainname expansion)
Message-ID:  <199607021917.VAA12657@uriah.heep.sax.de>
In-Reply-To: <199607021008.MAA02216@gilberto.physik.rwth-aachen.de> from "Christoph P. Kukulies" at "Jul 2, 96 12:08:23 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
As Christoph P. Kukulies wrote:
> Under 2.1.0-R I can do:
> 
> ftp ftp.informatik
> 
> and the system expands this to
> 
> ftp.informatik.rwth-aachen.de  (as one would expect).
> 
> this doesn't seem to work under 2.2-current.
> 
> I'm getting unknown host instead.

Even if you are not in foo.bar.edu, you should sometimes read the
FAQ. :-))

========================================================================
10.14. I'm in foo.bar.edu, and I can no longer reach
hosts in bar.edu by their short names

The current version of BIND that ships with FreeBSD does no longer
provide default abbreviations for non-fully qualified domain names
other than the domain you are in. So an unqualified host mumble must
either be found as mumble.foo.bar.edu, or it will be searched for in
the root domain.

This is different from the previous behaviour, where the search did
continue across mumble.bar.edu, and mumble.edu. Have a look at RFC
1535 for why this has been considered bad practice and even a security
hole.

As a good workaround, you can place the line

search foo.bar.edu bar.edu

instead of the previous

domain foo.bar.edu

into your /etc/resolv.conf. However, make sure that the search order
does not go beyond the ``boundary between local and public
administration'', as RFC 1535 calls ist.
========================================================================

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607021917.VAA12657>