Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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
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.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.