You are not logged in.
Hi there,
I'm having a problem with dnsmasq (v2.54 [<- how is this possible anyway? I just reinstalled it, pacman calls it "2.53-1", 'dnsmasq --version' calls it '2.54'…]). I'm just trying to use it as a DNS cache, nothing special.
It seems to be started (with the "log dns queries" option enabled) without problems, but without any queries too (even though there should have been some at this time):
Jun 7 20:39:04 dnsmasq[1717]: started, version 2.54 cachesize 150
Jun 7 20:39:04 dnsmasq[1717]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jun 7 20:39:04 dnsmasq[1717]: reading /etc/resolv.conf
Jun 7 20:39:04 dnsmasq[1717]: ignoring nameserver 127.0.0.1 - local interface
Jun 7 20:39:04 dnsmasq[1717]: read /etc/hosts - 1 addresses
Jun 7 20:39:15 dnsmasq[1717]: reading /etc/resolv.conf
Jun 7 20:39:15 dnsmasq[1717]: reading /etc/resolv.conf
Jun 7 20:39:15 dnsmasq[1717]: ignoring nameserver 127.0.0.1 - local interfaceI learned "ignoring nameserver 127.0.0.1 - local interface" is not a bug but a feature (makes sense of course).
As far as I can tell in this short (but complete) log, there is nothing wrong here.
Still, it is not used:
dig google.de:
[…]
;; Query time: 2 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
dig google.de again:
[…]
;; Query time: 2 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)Here's my not exactly spectacular resolv.conf:
# Generated by dhcpcd from eth0
nameserver 127.0.0.1
nameserver 192.168.178.1
# /etc/resolv.conf.tail can replace this line/etc/hosts (if needed at all):
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
# End of fileNothing fancy here either.
I've made two more observations:
1. A few days ago I switched from a "normal" network setup (using 'eth0="dhcp"' in rc.conf) to 'net-auto-wired' using netcfg.
Browsing using a domain name like 'google.de' has become very slow since then, i.e. connecting to a new website takes a few seconds; following a few links on that (now dns-resolved) website is fast. Browsing using IP addresses is fast as usual.
2. I cannot restart dnsmasq.
sudo /etc/rc.d/dnsmasq restart:
:: Stopping DNS/DHCP daemon [DONE]
:: Starting DNS/DHCP daemon [FAIL]Nothing else (not in the logs either). What I can observe in my process list is that a second dnsmasq process is started even though the original process is NOT stopped. After a few seconds, the second, newly created dnsmasq process disappears.
"killall dnsmasq" simply does nothing. It's like pushing Return in my console. No message, no effect, no nothing.
These 2 observations lead me to my assumption, that dnsmasq crashes at some point; an application tries to give its DNS queries to it -> nothing happens -> the applications uses the second entry in my resolv.conf which is my router.
I have no idea whether this assumption is true nor why trying to SIGKILL it doesn't end dnsmasq's miseral life.
I'm stuck here. Can anybody help me?
Thanks a lot.
Last edited by EdgarButan (2010-06-08 16:59:52)
Offline
http://bbs.archlinux.org/viewtopic.php?id=98608
there is this same problem in the above topic as well.
Offline
Thank you, but no, it is not the same problem, because I can NOT restart nor kill dnsmasq.
Once started, it is not accessible in any way.
Offline
Alright, I seem to be able to kill dnsmasq with "kill -9 PID".
"killall" nor the process list of KDE worked which has never occured to me.
This topic is now a duplicate of the other one, let's call it "SOLVED".
Offline