Сравнивайте с английским: нажмите на абзац — оригинал откроется в окне. Кнопка EN под абзацем показывает его прямо в тексте.
Содержание
Введение
Файл конфигурации для службы разрешения доменных имен
Configuration file for Domain Name System resolver
Файл `resolv.conf` – это имя компьютерного файла, используемого в различных операционных системах для настройки службы разрешения доменных имен (DNS). Файл представляет собой обычный текстовый файл, обычно создаваемый сетевым администратором или приложениями, выполняющими задачи конфигурации системы. Программа `resolvconf` – одна из таких программ в FreeBSD и других Unix-системах, которая управляет файлом `resolv.conf`.
resolv. conf is the name of a computer file used in various operating systems to configure the system's Domain Name System (DNS) resolver. The file is a plain text file usually created by the network administrator or by applications that manage the configuration tasks of the system. The resolvconf program is one such program on FreeBSD or other Unix machines which manages the resolv. conf file.
Цель
В большинстве Unix-подобных операционных систем и других, использующих библиотеку BIND Domain Name System (DNS) для разрешения имён, конфигурационный файл resolv.conf содержит информацию, определяющую рабочие параметры DNS-разрешителя. DNS-разрешитель позволяет приложениям, работающим в операционной системе, преобразовывать удобные для человека доменные имена в числовые IP-адреса, необходимые для доступа к ресурсам в локальной сети или в Интернете. Процесс получения IP-адресов по доменным именам называется разрешением имён.
In most Unix like operating systems and others that implement the BIND Domain Name System (DNS) resolver library, the resolv. conf configuration file contains information that determines the operational parameters of the DNS resolver. The DNS resolver allows applications running in the operating system to translate human friendly domain names into the numeric IP addresses that are required for access to resources on the local area network or the Internet. The process of determining IP addresses from domain names is called address resolution.
Содержание и местоположение
Файл resolv.conf обычно содержит директивы поиска, которые указывают домены поиска по умолчанию, используемые для дополнения заданного имени запроса до полностью квалифицированного доменного имени, если не указан суффикс домена. Например, search example.com local.test настраивает решатель для дополнительной попытки обращения к somehost.example.com и somehost.local.test. Он также содержит список IP-адресов серверов имен для разрешения. Например, nameserver 1.1.1.1 настраивает решатель для запроса сервера имен с IP-адресом 1.1.1.1. Дополнительные директивы nameserver после первой используются только в случае недоступности первого или последнего использованного сервера. Пример файла:
The file resolv. conf typically contains search directives that specify the default search domains used for completing a given query name to a fully qualified domain name when no domain suffix is supplied. For instance, search example. com local. test configures the resolver to try additionally somehost. example. com and somehost. local. test. It also contains a list of IP addresses of nameservers for resolution. For instance, nameserver 1.1.1.1 configures the resolver to query for the name server with IP 1.1.1.1. Additional nameserver directives after the first are only used when the first or last used server is unavailable. An example file is:
search example. com local. test
nameserver 10.0.0.17
nameserver 10.1.0.12
nameserver 10.16.0.7
resolv.conf обычно находится в каталоге /etc файловой системы. Файл поддерживается либо вручную, либо, при использовании DHCP, обычно обновляется утилитой resolvconf. В дистрибутивах Linux на основе systemd, использующих systemd-resolved, /etc/resolv.conf является символической ссылкой на /run/systemd/resolve/stub-resolv.conf.
resolv. conf is usually located in the directory /etc of the file system. The file is either maintained manually, or when DHCP is used, it is usually updated with the utility resolvconf. In systemd based Linux distributions using systemd resolved. service, /etc/resolv. conf is a symlink to /run/systemd/resolve/stub resolv. conf.