Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-01-2005, 08:54 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Fedora Talks to DHCP but not DNS

My Fedora Core box won't communicate with my dns server which means I can't surf the web.

Here's what I've tried so far.
1. I've added the ip address and name of my machine to my /etc/hosts file. That allows me to at least run gnome.

2. I've deactivated and reactivated my eth0 connection which is setup as dhcp.

3. I've checked my network configuration tool when Linux is connected to my cable modem. I then check my network info against what ipconfig -all tells me when I physically connect my Windows laptop to my cable modem. primary and secondary dns are the same in both scenarios. The only difference is in the assigned ip addresses given by the dhcp server. I've also verified my dns search path, primary and secondary addresses are as they should be in the /etc/resolv.conf file.

4. I ran the dig tool against Google. I get the message "connection timed out: no servers could be reached".

5. My Red Hat firewall settings are in effect. I checked the iptables rules at the command line to verify this.

I'm completely at a loss. I've been through 2 books and several web sites and had no luck. Why can I communicate with the DHCP server but not DNS?
Old 06-02-2005, 08:38 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Just to check, you have the IP addresses (not names) of your name servers in /etc/resolv.conf, right? Can you ping these IP addresses? Assuming they're not on your local network, is your default gateway set correctly?
Old 06-04-2005, 09:09 PM   #3
LQ Newbie
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
In answer to your question, yes, the ip addresses were correctly set in my resolv.conf file so I established that wasn't the issue.

I figured out (vaguely) what the problem was. I picked up on the fact that ping was using a static ip address that I had set to my second NIC (eth1). I disabled that NIC and restarted my primary eth0 which connects to my cable modem. After doing that, I had no more problems, I could ping DNS, and I was back online.

Problem solved but that still leaves me with the question as to why it was trying to use eth1 to find the DNS server instead of eth0.


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
DHCP and DNS Likosin Linux - Networking 1 11-14-2004 12:27 AM
Dns + Dhcp james.farrow Linux - Networking 0 06-01-2004 10:15 AM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 11:40 AM
Dns / Dhcp TheRealDeal Linux - Networking 9 09-19-2003 05:57 AM
DNS with DHCP upr8830 Linux - Networking 3 06-19-2003 12:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 PM.

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