Bedeutung von "search ." in /etc/resolv.conf

Post Reply
Message
Author
HannoHoichler

Bedeutung von "search ." in /etc/resolv.conf

#1 Post by HannoHoichler »

S.I.'s!
Meine ppp-Verbindung funktioniert nur richtig,
wenn vor der Nameserverliste search . steht.
Ich habe das im ISP-Howto gelesen, verstehe es
aber nicht.
Kann mir jemand erklären, was der Befehl
search .
bedeutet.
Gruß
HannoHoichler

Jochen

Re: Bedeutung von

#2 Post by Jochen »

Auszug aus resolver(5):
<pre> search Search list for host-name lookup. The search list is normally
determined from the local domain name; by default, it contains
only the local domain name. This may be changed by listing the
desired domain search path following the search keyword with
spaces or tabs separating the names. Most resolver queries will
be attempted using each component of the search path in turn un­
til a match is found. Note that this process may be slow and
will generate a lot of network traffic if the servers for the
listed domains are not local, and that queries will time out if
no server is available for one of the domains.

The search list is currently limited to six domains with a total
of 256 characters.
</pre>
Einträge nach "search" werden also an den Namen angehängt, den Du auflösen möchtest. "." entspricht sozusagen "häng nix an", so dass, wenn Du einen Rechnernema "hallo" eingibst, der Rechner versuchen würde, eine Toplevel-Domain "hallo" zu finden. Weitere Einzelheiten erhälst Du mittels "man 5 resolver".

Warum der Eintrag bei Dir aber nötig ist, damit Dein PPP hinhaut, weiss ich auch nicht...

Post Reply