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.
Video Resolv.conf
Purpose
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 resolving.
Maps Resolv.conf
Contents and location
The file resolv.conf typically contains 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. It also contains a list of IP addresses of nameservers available for resolution. An example file is:
search example.com local.lan nameserver 127.0.0.1 nameserver 172.16.1.254 nameserver 172.16.2.254
resolv.conf is usually located in the /etc
directory of the file system. The file is either maintained manually, or when DHCP is used, it is usually updated with the utility resolvconf.
History
See also
- Hosts (file)
- nsswitch.conf
- "resolv.conf" on Arch Linux wiki
External links
resolv.conf(5)
- Linux Programmer's Manual - File Formatsresolv.conf(5)
- FreeBSD File Formats Manualresolv.conf(5)
- OpenBSD File Formats Manual
Source of the article : Wikipedia