Que signifie l'option de recherche DNS dans / etc / network / interfaces?


Quelqu'un peut-il m'expliquer la directive dns-search dans le fichier /etc/network/interfaces :

iface eth0 inet static
    dns-search example.com

Est-ce obligatoire? Et comment le configurer?

posée pylover 09.03.2013 - 10:57
la source

1 réponse


dns-search détermine quel domaine est ajouté pour les recherches dns.

Normalement, vous spécifiez ici le même domaine que celui retourné par hostname -f .

Pour plus d’informations, consultez la citation suivante de man resolv.conf :

   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.  Resolver queries having fewer than ndots dots (default is 1) in them will be attempted using
          each component of the search path in turn until a match is found.  For environments with multiple  subdomains  please
          read options ndots:n below to avoid man-in-the-middle attacks and unnecessary traffic for the root-dns-servers.  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.
réponse donnée H.-Dirk Schmitt 09.03.2013 - 11:10
la source

Lire d'autres questions sur les étiquettes