Potato: nefachci zona "localhost"

Patrik Rak patrik@eagle.int.ein.cz
Mon, 18 Oct 1999 15:14:45 +0200


On Sun, 17 Oct 1999, Egon Eckert wrote:

> [egon@egon egon] $ cat /etc/resolv.conf
> domain autokelly.cz
> nameserver 127.0.0.1
> #nameserver 194.212.228.65
> [egon@egon egon] $ host localhost
> localhost.autokelly.cz does not exist, try again
> [egon@egon egon] $ host localhost.
> localhost               A       127.0.0.1
> [egon@egon egon] $
> 
> A pritom podle /var/log/daemon.log je zona "localhost" OK:
...
> 'nslookup' pritom funguje dobre (vsak take na rozdil od 'host' neni
> linkovan proti libresolv :-))) ), kdybyste mi nekdo neco poradil, bylo
> by to bezva.

To chovani je "naprosto v poradku", prinejmensim podle man host:

       For single names without a trailing dot, the local domain
       is automatically tacked on the end.  Thus a user in domain
       "nikhef.nl" can say "host nikhapo", and it will actually
       look up "nikhapo.nikhef.nl".  In all other cases, the name
       is tried unchanged.  Single names with trailing dot are
       considered top-level domain specifications, e.g. "nl."

       Note that the usual lookup convention for any name that
       does not end with a trailing dot is to try first with the
       local domain appended, and possibly other search domains.
       (As of BIND 4.9, names that have embedded dots but no
       trailing dot are first tried ``as is'' before appending
       search domains) This convention is not used by this
       program.

       The actual suffix to tack on the end is usually the local
       domain as specified in the /etc/resolv.conf file, but this
       can be overridden.  See below for a description of how to
       customize the host name lookup.

Takze rozhodne nemate problem s resolvovanim obecne. Samozrejme, muzete
poslat wishlist na BTS, aby host zkousel i non-FQDN pokud neuspeje.

Patrik