Re: bind: findns error (NXDOMAIN) on localhost

From: Oliver Lehmann <lehmann(at)ans-netz.de>
Date: Fri, 13 Jun 2003 21:33:56 +0200

Bernd Walter wrote:

> Doch - der fragt meinen Nameserver nach localhost. und danach erst
> nach localhost.cicely.de

Nein, bei mir fragt er definitiv erst nach localhost.$SEARCH. Das kann ich
daher sagen da ich ein localhost und ein localhost.salatschuessel.net
habe. und nur mit "search ." in der resolv.conf kann er auch "localhost"
aufloesen. Ansonsten ist dies mit host nicht moeglich, da er immer zuerst
versucht localhost.domain aufzuloesen (im Gegensatz zu dig und nslookup
die sich "richtig" verhalten und bei denen localhost.$SEARCH fallback
ist.... wie schon oefters angemerkt ;)

names separated by dots, e.g. topaz.rutgers.edu. Unless the name ends in
a dot, the local domain is automatically tacked on the end. Thus, a Rut-
gers user can say

      host topaz

and it will actually look up "topaz.rutgers.edu". If this fails, the
name is tried unchanged (in this case, "topaz"). This same convention is
used for mail and other network utilities. The actual suffix to tack on
the end is obtained by looking at the results of a hostname(1) call, and
using everything starting at the first dot. (See below for a description
of CUSTOMIZING HOST NAME LOOKUP.)

aus der host man-page. und wie topaz macht er das halt auch mit localhost.
Jedoch stimmt der 2. Teil bei mir halt nicht (siehe vorherige mail als ich
den hostname meines rechners auf lala.lala.la gesetzt habe und er "no
host" gebracht hat - ohne "name is tried unchanged"... - Falschaussage der
man page)

> Eigendlich nicht.
> Wenn kein localhost.domain existiert, dann fällt der auf localhost.
> zurück.
> Anders würdest du ja auch niemals www.x.de auflösen können.

ja eben nicht....

root(at)kartoffel olivleh1> hostname lala.lala.la
root(at)kartoffel olivleh1> host -v localhost
Trying domain "lala.la"
Host not found, try again.
root(at)kartoffel olivleh1>

wie du siehst...

root(at)kartoffel olivleh1> host -v localhost
Trying domain "salatschuessel.net"
rcode = 3 (Non-existent domain), ancount=0
Host not found.
root(at)kartoffel olivleh1> nslookup localhost
Server: gurke-fxp1.salatschuessel.net
Address: 10.0.1.1

Name: localhost
Address: 127.0.0.1

root(at)kartoffel olivleh1>

> Aber wie dem auch sei.
> Wo ist eigendlich das Problem mit der aktuellen Situation?

Das mich das Verhalten von host (bzw der bedienten library) dazu zwingt
ein localhost.domain.tld zu haben...

-- 
 Oliver Lehmann
        @home: lehmann(at)ans-netz.de
      @office: oliver.lehmann(at)mgi.de
         @www: http://www.pofo.de/  |  http://wishlist.ans-netz.de/
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 13 Jun 2003 - 21:34:14 CEST

search this site