The "resolv.conf" is a file used to configure the system's Domain Name System (DNS) resolver which contains a list of nameservers IP addresses available for DNS resolution. It contains information which determines the operational parameters of the DNS Resolver. The DNS resolver translate the domain names into the numeric IP address to access resources on the local network or Internet. This process is called resolving.
How to edit "resolv.conf" file ?
You can use any editor to edit "resolv.conf" file like : vi or gedit editors
-----
# vi /etc/resolv.conf
-----
this will give output like this :
-----
nameserver 213.0.x.x
nameserver 213.0.x.x
nameserver 213.0.x.x
-----
There are three configuration directives in "resolv.conf" file :
1). Nameserver directive : It points out the IP Addresses of a nameserver.
-----
# nameserver <IP address>
-----
2). Domain directive : It can be used to resolve local domain names or short names :
-----
# domain <domainname.com>
-----
3). Search directive : It is used to determine local domain name or list of domain names.
-----
# search <search-list>
-----
If you have any suggestion or question you can comment below.
How to edit "resolv.conf" file ?
You can use any editor to edit "resolv.conf" file like : vi or gedit editors
-----
# vi /etc/resolv.conf
-----
this will give output like this :
-----
nameserver 213.0.x.x
nameserver 213.0.x.x
nameserver 213.0.x.x
-----
There are three configuration directives in "resolv.conf" file :
1). Nameserver directive : It points out the IP Addresses of a nameserver.
-----
# nameserver <IP address>
-----
2). Domain directive : It can be used to resolve local domain names or short names :
-----
# domain <domainname.com>
-----
3). Search directive : It is used to determine local domain name or list of domain names.
-----
# search <search-list>
-----
If you have any suggestion or question you can comment below.