LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2008, 12:19 PM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
about resolv.conf


Hi,
let's say i have an /etc/resol.conf, that looks like this:
Code:
nameserver ip1
nameserver ip2
...
(case 1) What does this mean? "If you cannot ping nameserver with ip1, resolve the hostnames by using ip2 -given that the DNS server is running?"
or
(case 2) "If you cannot resolve an address by ip1, use ip2?"

If it is the first case, is there a way to achieve the second one? How?


Thanks
 
Old 03-03-2008, 12:26 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
My understanding is that both are correct -- your resolv.conf performs the same duty as a traditional DNS server, it just happens to be located on the local machine. If the file's not empty, it's always running, as it were (in that it can be read).

'man resolv.conf' should help you out, as well as the numerous number of threads about resolv.conf on these forums. Are you seeing any specific problems that would make you think one way or another?
 
Old 03-03-2008, 02:26 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,864
Blog Entries: 41

Rep: Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044Reputation: 3044
Hi,
Quote:
Originally Posted by nocturna_gr View Post
Hi,
let's say i have an /etc/resol.conf, that looks like this:
Code:
nameserver ip1
nameserver ip2
...
(case 1) What does this mean? "If you cannot ping nameserver with ip1, resolve the hostnames by using ip2 -given that the DNS server is running?"
or
(case 2) "If you cannot resolve an address by ip1, use ip2?"

If it is the first case, is there a way to achieve the second one? How?


Thanks
You should look at the 'man resolv.conf' to get a complete understanding;

Quote:
excerpt from 'man resolv.conf';

RESOLV.CONF(5) Linux Programmer's Manual RESOLV.CONF(5)

NAME
resolv.conf - resolver configuration file

SYNOPSIS
/etc/resolv.conf

DESCRIPTION
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.

On a normally configured system this file should not be necessary. The
only name server to be queried will be on the local machine; the domain
name is determined from the host name and the domain search path is
constructed from the domain name.
Notice the underlined material.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf c0mputerking Linux - Software 18 12-20-2007 02:03 AM
resolv.conf autophil Linux - Networking 3 08-15-2007 08:51 AM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
About /etc/resolv.conf satimis Linux - Networking 10 02-24-2006 09:30 PM
resolv.conf Culbert Linux - Networking 8 03-20-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration