Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 03-06-2009, 12:20 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 10

Rep: Reputation: 0
DNS Issues


So I'm trying to use "Network Configuration" to configure my network correctly:
Static IP -
subnet mask -
gateway (I don't actually know what a gateway is? Important?)

I have the app set to reflect these desired settings. Then, running ifconfig eth0, I get these settings:
IP -
mask -
and with /cat/resolv.conf I get the correct DNS.

Pinging .1.22 from windows I get no reply.

The reason why I'm back to setting up the network is because every time I reboot it seams to reset all the settings to DHCP...

If I set the system (using the GUI app still) to use DHCP, ifconfig and cat /etc/resolv.conf I get these results:
IP -
Mask -

So, seeing this I figured the settings I want aren't actually correct... so I went to the GUI app again and changed my DNS to .1.2. All other settings the same (,, gw ifconfig gives:
IP - (!?!?!?! I said .1.22!)

The GUI app says .1.22, but a subnet mask of Something that is also odd is that if I ping .1.21 and .1.22 (from my windows machine on dhcp - I get a reply from both.

I'll keep tinkering, but if someone has a quick fix I'd love to hear it! I've tried using ifconfig to manually set my settings... but it didn't seam to work.


Edit: Well I tried going back to NetworkManager (The applet) to do things. I don't like how it's nerfed, but hey... it's working better. It's using DHCP alright. It's assigning I can't change it - all the fields are greyed out... and I can't seam to run it as root! Even with DHCP I'm having these troubles though:
I can ping my windows machine from fedora without issues - both by IP and host.
I can ping fedora (from windows) via IP, but not by host.

Somethings up with DNS. Fedora says it's using the nameserver - windows says the gateway is Windows works fine with DHCP as it is - connects to other windows systems with samba fine. But my inability to get into NM is an issue.

Edit: Tried removing the NM connection - making a new one identical so I could set my own IP and DNS - copying the MAC used in the generated eth0 entry. Got the exact same results - except I got my own IP. When running a ping from fedora to (my ISP) I get a suspect result... mentioning (my modem/router. .1.2 is my wireless AP/router. I'm not in charge of this so i can't be sure how it is setup).

Last edited by schnappy; 03-06-2009 at 03:47 AM.
Old 03-06-2009, 03:47 AM   #2
LQ Newbie
Registered: Mar 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I laboured for hours faffing about with this... decided to try some different google terms. Found this:

Got it all going now, EXCEPT for DNS. If I ping hostnames I can't find them, if I ping IP addresses I find them.
Old 03-14-2009, 08:15 PM   #3
LQ Newbie
Registered: Jan 2009
Posts: 29

Rep: Reputation: 15
Not sure how much I can help, but here goes. I turn off NM, I use static IP's for all my pc's and NM is really good for dhcp and wireless I'm told, but not needed. If you decide to go with out it, make sure you turn off the service and disable it, so it won't start at boot. No matter which route you go, NM or network, you will have to check your /etc/hosts and /etc/resolv.conf when you choose one, as they will change on you. I didn't see what you were using for your dns, but these links helped me A LOT:

This is a two part series from redhat. The only issue I had, was in one part I had to use this ( ), instead of these { }.

And I saw you had a question of gateway being important? Correct?
Old 03-18-2009, 05:21 PM   #4
Ake Torngren
LQ Newbie
Registered: May 2006
Location: Cape Town, South Africa
Distribution: Fedora 24 x86_64
Posts: 20

Rep: Reputation: 1
Invalid Netmask

My two cents worth (might not be of value or not).

I'm running and I found a bug when trying to set up my network connection. The config sometimes puts in an invalid network mask (when using a static IP address). One needs to edit the file
(or whatever it might be called on your system)
and remove the line "NETMASK=xx.xx.xx.xx" (or to change it to the actual subnet mask for your network, if it is subnetted).
- I intend to report this as a bug to the Fedora Project when/if I get the time ;-) unless it's already been reported.

I can't say whether this fixes your particular problem, though.
(But if it does, please let me know.)

Last edited by Ake Torngren; 03-18-2009 at 05:49 PM. Reason: (Fixing typos)



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
Fedora C2 - Wireless network drivers? Broadcom 802.11g Network Adapter FragTek Linux - Wireless Networking 7 01-22-2010 12:10 AM
Unable to connect to wifi network with network manager. Poss authorization issue openSauce Linux - Networking 14 12-13-2008 10:05 AM
LXer: Network World names Zenoss Clear Choice for Network Management LXer Syndicated Linux News 0 06-20-2007 08:01 AM
Debian 3.1r0a, Realtek RTL-8169 network controller slow on network mvr853 Linux - Networking 0 07-21-2006 08:20 PM
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 02:55 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:11 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