LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-01-2012, 06:16 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 542

Rep: Reputation: 32
DNS settings on Linux


Hi, can someone advise on the following. Thanks.
1) Is the /etc/resolv.conf related to the DNS settings applied in System -> Preferences -> Network Connections -> Wired tab -> eth0?
2) If I do "dig www.msn.com" it doesn't resolves anything but "dig @<DNS IP> www.msn.com" would work fine. Any idea how I can set it to look up the DNS servers automatically?
 
Old 05-01-2012, 07:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
1) yes, that gui should update resolv.conf
2) put them in resolv.conf
 
Old 05-01-2012, 10:43 AM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
yes the /etc/resolve.conf should look something like the following:

Code:
$ cat /etc/resolv.conf 
# Generated by NetworkManager
domain rx30.com
search rx30.com localhost
nameserver 10.10.0.20
nameserver 10.10.0.21
you can have one as simple as:

Code:
nameserver 8.8.8.8
That is just google's DNS that will work too.
 
Old 05-06-2012, 10:09 AM   #4
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
Thanks guys but for some reason when I made the settings in System -> Preferences -> Network Connections -> Wired tab -> eth0, it doesn't update the /etc/resolv.conf file. Any idea? Also, even after manually putting the DNS servers into the /etc/resolv.conf file, dig still wouldn't work unless I explicilty specify them. Anywhere else I can check?
 
Old 05-06-2012, 03:10 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,629

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
the gui depends on your system AND how the network is set up
if using ifup / ifdown or "networkmanager"

on my suse 11.4 i am using ifup
so one of the two the gui's will not work
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS settings on Debian Linux je_syd Linux - Newbie 3 04-02-2012 09:14 AM
Network settings / DNS Server settings uid0sd Linux - Newbie 3 02-22-2007 03:39 PM
DNS settings... abdo88 MEPIS 5 07-18-2006 08:05 AM
DNS settings Awatemono-San Linux - Newbie 3 06-18-2006 09:24 AM
dns settings JoeUser11 Linux - Newbie 5 01-25-2005 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 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
Open Source Consulting | Domain Registration