Differences between revisions 4 and 6 (spanning 2 versions)
Revision 4 as of 2020-11-10 15:44:37
Size: 752
Comment:
Revision 6 as of 2023-06-22 20:33:54
Size: 845
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= resolv.conf = = Resolv.Conf =
Line 3: Line 3:
A description of the '''resolver''' file (`/etc/resolv.conf`). For more details, see `resolver(5)` or `resolv.conf(5)`. The '''resolver configuration file''' (or '''`resolv.conf(5)`'''), typically found at `/etc/resolv.conf`, configures the [[Linux/DNS#Resolver|DNS resovler]].
Line 24: Line 24:
The resolver configuration file primariliy consists of two directives: `nameserver` and `search` (as in 'search domain'). The resolver configuration file primariliy consists of two directives: '''`nameserver`''' and '''`search`''' (as in 'search domain').
Line 26: Line 26:
There should be up to '''three''' `nameserver` directives, giving some address that can be reached for queries. Up to three `nameserver` directives can be used. These servers are queried for DNS lookups.
Line 28: Line 28:
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. The `search` directive sets '''search domains'''. As an example, when querying for `myhost`, `resolver(5)` will append each search domain to that name and query for those as well.

----



== See also ==

[[https://man.archlinux.org/man/resolv.conf.5|resolv.conf(5)]]

Resolv.Conf

The resolver configuration file (or resolv.conf(5)), typically found at /etc/resolv.conf, configures the DNS resovler.


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').

Up to three nameserver directives can be used. These servers are queried for DNS lookups.

The search directive sets search domains. As an example, when querying for myhost, resolver(5) will append each search domain to that name and query for those as well.


See also

resolv.conf(5)


CategoryRicottone

Linux/ResolvConf (last edited 2023-06-22 20:33:54 by DominicRicottone)