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 08-31-2014, 09:05 AM   #1
LYC
Member
 
Registered: Jan 2014
Posts: 100

Rep: Reputation: Disabled
New DNS Server IP


Hi,

Our network team is changing the DNS server IP address. As RedHat 5.2 DNS client, correct me that I just have to change the file /etc/resolve.conf? Any other things I have to do?

Thanks in advance.
 
Old 08-31-2014, 09:38 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,660

Rep: Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584
DNS server address change

IFF that is all they change, then the resolv.conf should be the only change you need to make.

NOTE: some of the new systems and networking do not maintain resolv.conf unchanged, they reconstruct it on reboot. (OK, to be correct on network init.) I do not remember if RHEL does that in current versions. I would check the ifup scripts under /etc/sysconfig/network-scripts to see if there is a reference to the old nameserver address there. If there is, I would update that at the same time.

Generally, as long as you change it both places at once, no downtime or other action is involved. The values in /etc/resolv.conf take effect at the very next resolution request, and the ones in the network-scripts take effect the next time the interface is brought up.

Best Practices (if that term has any real meaning outside of 'sales') are to have a secondary and tertiary nameserver (you can list as many as you like in resolv.conf, but the networking only checks the first three, Max). You can promote the secondary to first in the list while they are moving the primary, so there is not even delay at the client during the move while the primary is down. Only you can tell if that applies to your situation.

Last edited by wpeckham; 08-31-2014 at 09:40 AM.
 
Old 08-31-2014, 01:24 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
On current RH systems, you need to check /etc/sysconfig/network-scripts, AND check /etc/sysconfig/network. Sometimes it seems NetworkManager uses network, other times it seems the entries in network-scripts can override (or vice versa, not sure as I gave up using NetworkManager as it seems to screw up the use of VMs)

Also remember that if you use DHCP for networking configuration (which can be nice) that is configured on the DHCP server. The clients do have to allow DHCP to configure /etc/resolv.conf, but that is frequently the default, so every time the network is initialized it gets reconfigured.
 
Old 09-29-2014, 10:07 PM   #4
LYC
Member
 
Registered: Jan 2014
Posts: 100

Original Poster
Rep: Reputation: Disabled
Hi,

After changing /etc/resolv.conf, do I have to run any command to take effect of the changes? How to know it is working?

I checked /etc/sysconfig/network and /etc/sysconfig/network-scripts do not have any hard-code setting of the DNS address.
 
Old 10-04-2014, 07:37 AM   #5
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,660

Rep: Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584
resolv.conf

Any change to resolv.conf, by manual editing or by software modification, is effective immediatly. That data is normally not cached, but parsed on every request.

We just changed out two nameservers (one primary, one slave) at work. The process of waiting to get the external world updated to use the new addressses was the painful part. Internally, it did not take long at all. Planned well, a nearly painless process,
 
  


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
Register DNS Entry for Linux server on Windows DNS Server jdchaudhuri Linux - Server 1 03-07-2014 11:17 PM
how to configure another dns server to combine use with primary current dns server. hocheetiong Linux - Newbie 1 05-29-2008 07:57 PM
LXer: Find out DNS Server Version With DNS Server Fingerprinting Tool LXer Syndicated Linux News 0 12-21-2007 06:30 PM
LXer: Find out DNS Server Version With DNS Server Fingeprinting Tool LXer Syndicated Linux News 0 12-21-2007 05:50 PM


All times are GMT -5. The time now is 02:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration