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 10-11-2012, 05:21 PM   #1
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 82

Rep: Reputation: 5
Networking Issue - DNS?


Hi,

This question relates to a system running Fedora 15, 64-bit.

A have a small network, with a couple of Windows machines, and a Fedora box, all going through a hub and Netgear router. I have a fixed public IP address.

A couple of weeks back, after using the same IP for years, I had to change it, along with the DNS IP, etc. The Windows machines still work okay.

However, I realized today that several scripts on the Linux box, which retrieve data from external sources had failed to do so since the date I switched the IP address. The scripts use both FTP and HTTP to retrieve stuff.

Anyway, debugging the scripts and trying to find out what is wrong, I realized that the machine is not recognizing any host names, and hence it never fetches anything with the scripts. Similarly with traceroute, etc.

However, I can ping remote addresses, and traceroute using the relevant IP addresses. No doubt I could also use FTP and HTTP in this way too if I had to, and I can FTP and SSH onto the machine with its local IP address.

Nonetheless, I am scratching my head about why DNS doesn't seem to be working on the machine after I switched the public IP on the router. I didn't think I would need to do anything on the Linux box for it to just continue working as it always had done.

Any assistance in resolving this, or pointing me in the right direction would be much appreciated.

Last edited by cheddarcheese; 10-11-2012 at 05:23 PM.
 
Old 10-11-2012, 11:04 PM   #2
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
Check your /etc/network/interfaces file for dns.

Check your /etc/resolv.conf file.

You could put the domain into your /etc/hosts file.
 
1 members found this post helpful.
Old 10-12-2012, 09:31 AM   #3
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 82

Original Poster
Rep: Reputation: 5
Thanks etech3.

I needed to change the IP in /etc/resolv.conf, which I wasn't aware of.

It says that the entry was generated by the Network Manager, so I'm not sure if the entry I made will remain so, as I think I've read other people having issues with Network Manager incorrectly overwriting /etc/resolv.conf.

Still, it's working for now, and thank you very much!
 
Old 10-12-2012, 09:50 AM   #4
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
A workaround is to add the nameserver address to the client machine to override the resolv.conf on reboot.

If you don't the resolv.conf file gets reset on reboot.

Code:
nano /etc/resolvconf/resolv.conf.d/head
and add
Code:
 nameserver xxx.xxx.xxx.xxx
 
  


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
[SOLVED] repolication between primary DNS and secondary DNS issue Gil@LQ Linux - Server 10 05-27-2012 02:28 PM
DNS issue - DNS works perfect on server but not on any other computer jtneal Linux - Networking 3 03-15-2008 03:30 PM
SuSE10.2 networking issue Inter. connect. issue LVSuSE Linux - Networking 3 08-31-2007 02:42 AM
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 12:28 AM

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

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