Resolv.conf (Italiano)

From ArchWiki
Revision as of 17:59, 17 June 2010 by Maveloth (Talk | contribs) (resolv.conf protetto da scrittura)

Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Tango-preferences-desktop-locale.pngThis article or section needs to be translated.Tango-preferences-desktop-locale.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Resolv.conf (Italiano)#)
Note: Questo articolo è in fase di traduzione. Seguite per ora le istruzioni della versione inglese.

The resolver is a set of routines in the C library that provide access to the Internet Domain Name System (DNS). The resolver configuration file contains information that is read by the resolver routines the first time they are invoked by a process. The file is designed to be human readable and contains a list of keywords with values that provide various types of resolver information.

On a normally configured system this file should not be necessary. The only name server to be queried will be on the local machine; the domain name is determined from the host name and the domain search path is constructed from the domain name.

Preserve DNS settings

Dhcpcd, NetworkManager, and various other processes can overwrite Template:Filename. This is usually desirable behavior, but sometimes DNS settings need to be set manually (e.g. when using a static IP). There are several ways to accomplish this. If you are using NetworkManager, see this thread on how to prevent it from overriding your resolv.conf.

Modify the dhcpcd Config

Dhcpcd's configuration file may be edited to prevent the dhcpcd daemon from overwriting Template:Filename. To do this, add the following to the last section of Template:Filename:

nohook resolv.conf

Usare resolv.conf.head

Alternativamente, è possibile creare un file chiamato Template:Filename contenente i propri server DNS. Dhcpcd inserirà il contenuto del file all'inizio del file Template:Filename. Ecco un esempio del file Template:Filename per chi usa OpenDNS:

# OpenDNS servers
nameserver 208.67.222.222
nameserver 208.67.220.220

resolv.conf protetto da scrittura

Un ulteriore metodo per proteggere il proprio Template:Filename dall'essere modificato, consiste nel impostare l'attributo di protetto da scrittura(write-protection) sul file:

chattr +i /etc/resolv.conf