[Dnsmasq-discuss] How can I run dnsmasq DHCP-only ?

Simon Kelley simon at thekelleys.org.uk
Sun Jan 23 19:14:11 GMT 2011


On 23/01/11 05:58, Tom {Tomcat} Oehser wrote:
>
> Hi -
>
> I would like to run the dnsmasq dhcp-server, but not the dns-server.
>
> (This is because, I am runing bind9, I have secondaries out there, I have
> an existing bind9 configuration file, etc. etc.) (I don't want to run the
> ISC dhcpd because I have the dnsmasq configuration all working in openwrt
> already, I don't want to have to munge it into dhcpd.conf format...).
>
> Right now, when openwrt starts up, bind loads successfully, then dnsmasq
> complains that it can't get the port for DNS, and gives up.
>
> What is the easiest way to make it run DHCP only?  Is there a straightforward
> way to fake it out to listen on, say, another port?  Or, better, to just
> forget about the nameserver part and only try to be a DHCP server?
>
> I am fine with the DHCP server part and the luci-configuration and all...
>
> -Thanks, -Tom

 From `man dnsmasq`

        -p, --port=<port>
               Listen on <port> instead of the standard DNS port (53).
               Setting this to zero completely disables DNS  func‐
               tion, leaving only DHCP and/or TFTP.

That should solve the problem, as long as you can work out how to make 
openWRT pass the option.

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list