0% found this document useful (0 votes)
37 views1 page

Resolve Conf

The resolv.conf file configures client-side DNS resolution by defining the name servers a system should query. It contains keywords like "search" and "nameserver" followed by domain names or IP addresses. Common examples include local domain searches or pointing to an ISP's name servers. The file is read by DNS resolver routines and its format is designed to be human-readable.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views1 page

Resolve Conf

The resolv.conf file configures client-side DNS resolution by defining the name servers a system should query. It contains keywords like "search" and "nameserver" followed by domain names or IP addresses. Common examples include local domain searches or pointing to an ISP's name servers. The file is read by DNS resolver routines and its format is designed to be human-readable.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

/etc/resolve.conf or resolv.

conf File Example


The resolv.conf file is the resolver configuration file. It is use to configure client side access
to the Internet Domain Name System (DNS). This file defines which name servers to use.

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

Note: File name is /etc/resolv.conf and not /etc/resolve.conf.

Sample resolv.conf file

Following is an example of resolv.conf file:

search cyberciti.biz
nameserver 202.54.1.10
nameserver 202.54.1.11

Where,

 search domain.com: The search list is normally determined from the local domain
name; by default, it contains only the local domain name. So when you type nslookup
www, it will be matched to www.cyberciti.biz
 nameserver Name-server-IP-address: Point out to your your own nameserver or to
ISP's name server. Up to 3 name servers may be listed.

But how do I edit the /etc/resolv.conf file?

Use text editor such as vi or gedit from Linux desktop:


# vi /etc/resolv.conf

Default /etc/resolv.conf file

Following file should be work with any ISP in the world :)


# cat /etc/resolv.conf
Output:

nameserver 208.67.220.220
nameserver 208.67.222.222

You might also like