LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2011, 05:36 PM   #1
paulo.medeiros
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
dns questions


Hi,

dnsmasq service isn't configured to start on boot, according "Server
Settings -> Services Configuration". But it's being started, as I
could see in /var/log/messages file. Anyway, as the resolution of my local system name was failing, my first idea was to configure it to start on boot. I'm getting however the error:
...
Nov 1 11:14:11 oml dnsmasq[4832]: failed to create listening socket:
Address already in use
Nov 1 11:14:11 oml dnsmasq[4832]: FAILED to start up
...
Here are the output of nslookup with my dns provider hostname, working fine, and with thelocal system name, this one not
working:

[root@oml ~]# nslookup 75.75.75.75
Server: 75.75.75.75
Address: 75.75.75.75#53

Non-authoritative answer:
75.75.75.75.in-addr.arpa name = cdns01.comcast.net.

Authoritative answers can be found from:

[root@oml ~]# nslookup oml
Server: 75.75.75.75
Address: 75.75.75.75#53

** server can't find oml: NXDOMAIN

So, I restarted the dnsmasq service from "System-> Administration -> Server Settings -> Services" and both names (and any other) have been resolved:

[root@oml ~]# nslookup 75.75.75.75
Server: 192.168.1.80
Address: 192.168.1.80#53

Non-authoritative answer:
75.75.75.75.in-addr.arpa name = cdns01.comcast.net.

Authoritative answers can be found from:

[root@oml ~]# nslookup oml
Server: 192.168.1.80
Address: 192.168.1.80#53

Name: oml.home.lab
Address: 192.168.1.80

So, restarting the service dnsmasq seems to be a valid workaround for that, even when the service isn't excplictly configured. I would like however to fix that. What am I missing here?
Thanks,
Paulo
 
Old 11-02-2011, 05:50 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
I do not known that you are aware of dnsmasq is mainly DNS server. And I understand that you want only working DNS resolution. Even if it works now, it is not a correct solution for this problem. The first thing in that should be investigation of /etc/resolv.conf file, if it contain proper dns server IP. Of course after disabling dnsmasq.
 
Old 11-02-2011, 06:59 PM   #3
paulo.medeiros
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
dns questions

Selix:

Thanks for your reply. Here is my resolv.conf file:
---------------------------
nameserver 192.168.1.80
nameserver 75.75.75.75
---------------------------
Where:
192.168.1.80 -> my system
75.75.75.75 -> comcast DNS

I still don't understand why if we restart the process my system name begins to be resolved fine. Looks like if it was stopped other configuration data is read.

Best Regards,
Paulo
 
Old 11-02-2011, 07:17 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Disable dnsmasq, then remove "nameserver 192.168.1.80" line from /etc/resolv.conf Leave only second line. If this will not work, check /etc/dnsmasq.conf for "resolv-file=" line. In my it is "/tmp/resolv.conf.auto" When you get this file copy it contents here.
 
Old 11-03-2011, 02:41 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
But what we want is really....?

eSelix: if he really wants to run a DNS server for and from his internal network, he DOES want DNSMASQ running, and on every boot.
Shutting it down and removing it from resolv.conf allows him to test his ISP DNS, but not his OWN DNS (running DNSMASQ)!

Paulo: what was the point of running DNSMASQ? Are you intending to use it for caching DNS queries, for resolving your local hosts, for providing DHCP services locally, or some combination of these?
 
1 members found this post helpful.
  


Reply



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
DNS Questions Multiple DNS Servers with single domain linuxcrazyguy Linux - Networking 1 01-27-2009 12:21 PM
DNS questions davespink Linux - Newbie 3 02-18-2005 07:34 AM
questions about DNS kloppster Linux - Networking 2 11-01-2004 09:31 PM
dns questions drknow Linux - Networking 4 02-04-2004 09:01 AM
DNS Questions... Simon W Linux - Networking 0 02-28-2002 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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