resolv.conf

A description of the resolver file (/etc/resolv.conf). For more details, see resolver(5) or resolv.conf(5).


Example

nameserver 8.8.8.8
search lan


Syntax

The resolver configuration file primariliy consists of two directives: nameserver and search (as in 'search domain').

There should be up to three nameserver directives, giving some address that can be reached for queries.

Search domains are used in an attempt to qualify non-fully-qualified names. For instance, given search localdomain in /etc/resolv.conf, a system will attempt to resolve myhost as myhost.localdomain first.


CategoryRicottone