[Dnsmasq-discuss] (v2.31/Mac OS X) Not listening for DNS requests
dfields-dnsmasq at pexicom.com
Thu May 11 17:41:24 BST 2006
I successfully built and installed DNSmasq 2.31 on an Intel Mac mini
running 10.4.6 using GCC 4.0.1. (I can't say it works because there
is no regression test module.) I reconfigured the Makefile and
config.h to put all files it uses into /opt/dnsmasq-2.31 or a
symlink /opt/dnsmasq to keep everything highly localized. I use the
provided Mac OS X startup scripts which runs the application with the
command line arguments "-d -n".
It executes just fine, but does not seem to listen for DNS requests.
Indeed, it seems not to even open the port, nor to write any error
messages about it. Here's an lsof, with regular files and pipes
removed for brevity:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dnsmasq 8836 root 4u IPv4 0x34a1680 0t0 UDP *:bootps
dnsmasq 8836 root 5u IPv4 0x38b9e10 0t0 ICMP *:*
dnsmasq 8836 root 11u IPv4 0x34a2ba0 0t0 UDP *:50145
(bootps is port 67)
As you can see, there's no listening for port 53. "netstat" also
confirms this, neither TCP nor UDP. I have confirmed that the built-
in "firewall" is off, but I suppose it's possible that the "System
Preferences" application is lying about that, somehow. Even if it
were, though, the application should still be listening/opening a
socket, even if the ipfw is dropping packets.
Does anyone happen to have any thoughts as to how to get this to
work? I see nothing relevant in /var/log files.
The non-blank, non-comment lines from my configuration file are
(I haven't yet tested the DHCP portion... I would in fact like to
disable it until after I get DNS working, but it tells me that "en0"
is not a recognized interface when I use the appropriate option. I
can't figure out how to disable DHCP entirely.)
Thanks for this neat program... It does exactly what I need, should I
get it to work.
dhcp-option=19,0 # option ip-forwarding off
dhcp-option=44,0.0.0.0 # set netbios-over-TCP/IP nameserver(s)
aka WINS server(s)
dhcp-option=45,0.0.0.0 # netbios datagram distribution server
dhcp-option=46,8 # netbios node type
dhcp-option=47 # empty netbios scope.
More information about the Dnsmasq-discuss