dnsmasq not answering dhcp queries

From: Dan Lyke 
------------------------------------------------------
Got dnsmasq installed, it's doing DNS remapping awesomely. And I love
that the config file syntax is nice and clean.

So all is groovy except that I can't get a DHCP response out of it.
Config file is:

no-resolv
no-poll
server=208.201.224.11
server=208.201.224.33
address=/home.flutterby.net/192.168.1.196
address=/shopcam.flutterby.net/192.168.1.198
dhcp-option=3,192.168.1.1
dhcp-range=192.168.1.2,192.168.1.127,12h
log-queries
log-dhcp

I can see that it's apparently listening:

$ sudo netstat -panel | grep dnsmasq | grep 67
udp        0      0 0.0.0.0:67              0.0.0.0:*
         0          48153       7653/dnsmasq

But when I go to the 192.168.1.2 machine and try:

$ sudo dhcping -v -c 192.168.1.2 -s 192.168.1.196
no answer

UFW is disabled on .196, I'm getting a syslog entry that gives me optimism:

Jan  8 19:19:38 daffodils dnsmasq-dhcp[7899]: 3399798098 available
DHCP range: 192.168.1.2 -- 192.168.1.127

but... nothin. Anyone got experience?

Dan

=============================================================== From: Dan Lyke ------------------------------------------------------ Huh. Okay, so this is hitting the syslog every time I do the dhcping from the other machine. Can't test turning off my router and hitting it for real 'til I get home. Networking sucks. Dan

=============================================================== From: flushy@flushy.net ------------------------------------------------------ Quoting Dan Lyke : A virtual machine might help here... --b

=============================================================== From: Dan Lyke ------------------------------------------------------ Okay, I've got no idea what dhcping should be doing, but... It appears that using ufw (Ubuntu FireWall, a layer on top of ipchains) rather than using ipchains directly to open up the appropriate ports, and all of a sudding dnsmasq is working. Which is awesome, because it is really easy to remap shopcam.flutterby.com and home.flutterby.com from my home static IP address to the appropriate local machines on my home network when accessing from within the net. This is particularly useful for OwnCloud, which I can now configure in all of our various portable devices with one URL that doesn't have to change. And I also now have logging of DNS queries, and the ability to assign IP addresses from my DHCP server by either MAC address or presented machine name. Which is super handy for the HP printer that changes its IP and then requires reconfiguration in all the Linux machines whenever it's power-cycled. If I can convince myself that I can easily get a Fujitsu iX500 scanner working as it needs to, I'll funnel that into OwnCloud's data store, which will let us rename and organize those documents via our various devices. Dan