Setting Up the resolv.conf File

A simple example resolv.conf file for a server in the doc.com domain is shown below:


Sample resolv.conf File for DNS Server


; ; /etc/resolv.conf file for dnsmaster (sirius) ; domain doc.com nameserver 0.0.0.0 nameserver 111.22.3.5

The first line of the /etc/resolv.conf file lists the domain name in the form:


domain domainname

Where domainname is the name registered with the Internet governing bodies (as of this writing, the InterNIC).


Note  - 

No spaces or tabs are permitted at the end of the domain name. Make sure that you enter a hard carriage return immediately after the last character of the domain name.


The second line identifies the server itself in the form:


nameserver 0.0.0.0

Succeeding lines list the IP addresses of one or two secondary or cache-only name servers that the resolver should consult to resolve queries. Name server entries have the form:


nameserver IP_address

Where IP_address is the IP address of a secondary or cache only DNS name server. The resolver queries these name servers in the order they are listed until it obtains the information it needs.

Next Topic


Other topics in Solaris Naming Setup and Configuration Guide

FNS Setup and Configuration
DNS Setup and Configuration
Setting Up DNS Servers
Setting Up DNS Servers
Server Boot and Data File Names
Domain Names
You are here Setting Up the resolv.conf File
Setting Up the Boot File
Specifying Server Function
Setting Up the Data Files
Initializing the Server
Testing Your Installation
Setting Up Subdomains
Setting Up a Non-Internet Root Master
A Practical Example
 
 
Book Table of ContentsComplete Table of Contents for book