LinuxQuestions.org
Help answer threads with 0 replies.
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-20-2006, 09:49 AM   #1
zugi99
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
dns configuration question


Hi,

Trying to find out the least disruptive way of causing changes made to dns configuration by changing etc\resolv.conf take effect.

Man page says an application consults this file the first time it makes use of dns services.

As far as I understand, this means that if an application tried to lookup a hostname, and resolv.conf was changed later, the application will not be aware of the new dns parameters.

Does this mean that if I want to be sure all applications are using the new and correct dns paramters the only option I have is rebooting the box?

I thought 'network restart' might be a less disruptive option, but can't find any documentation saying after it is run all applications check resolv.conf

Thanks,
Guy
 
Old 03-20-2006, 10:56 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
It all depends on the application.
You can't stop an application from reading resolv.conf at startup.
It you expect an application to take your new configuration into account, best it to restart this app.
For more complete informations about how your favorite app is using resolv.conf, strace and grep are your friend.

Last edited by Agrouf; 03-20-2006 at 11:12 AM.
 
Old 03-20-2006, 11:59 AM   #3
zugi99
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Original Poster
Rep: Reputation: 0
more information

thanks for your reply.

What I'm working on is a configuration utility for a linux box, which also allows a remote user to change the dns settings of the box.
It will be very hard for me to know all the applications on this box which may make dns queries, and I certainly do not want to investigate exactly in what manner they do this.
If I do not have this information, would my only option be a boot of the entire box?
would 'network restart' not be enough?
Any other ideas?

Thanks,
Guy
 
Old 03-20-2006, 02:48 PM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
I believe you need NIS or NYS or NIS+
The purpose of NIS is to handle the dns on a network.
Check google for more information about that.
 
Old 03-20-2006, 11:12 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
When I change my /etc/resolv.conf, it works immediately for me without restarting any services. of course I am a human giving commands like ping, and using the browser, but firefox does respond to the change the minute I make it. I can't speak for my backgroundish-software, but as mentioned previously, simply restarting the application should allow it to query the "new" resolv.conf.

Peace,
JimBass
 
  


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
Dns Configuration reply2vinay Linux - Hardware 1 08-28-2005 07:23 AM
DNS configuration ?? xedios Linux - Software 6 12-23-2004 02:59 PM
DNS Configuration skecs Linux - Networking 10 11-17-2004 09:31 AM
DNS Configuration DoubleOTeC Linux - Networking 3 09-27-2004 01:18 PM
DNS Configuration doulos Linux - General 1 02-15-2002 03:46 PM


All times are GMT -5. The time now is 03:17 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration