This shows you the differences between two versions of the page.
doc:howto:dhcp.dnsmasq [2013/07/11 11:34]
doc:howto:dhcp.dnsmasq [2014/05/24 15:21] (current)
|Line 252:||Line 252:|
|And restart Dnsmasq with /etc/init.d/dnsmasq restart||And restart Dnsmasq with /etc/init.d/dnsmasq restart|
|+||==== Assigning dnsmasq Queryport ====|
|+||The queryport is not the dns server port used by dhcp clients, it is the outgoing port dnsmasq uses to query other servers, and is integral to dnsmasq succesfully assigning DNS values to the DHCP clients. The default settings create arbitrary high port number connections on a range of ports. By assigning an option line like " option queryport '30000' " in /etc/config/dhcp, one can constrain those connections to a port you assign. Be certain that your firewall allows outbound connections from the router on the query port that you assign.|
|+||As a caution, dnsmasq runs as user "nobody" on openwrt so it is not allowed to create listening sockets on ports < 1024. Using the standard DNS port 53 for these queries will fail. The failure can be found in the logs. Logread will show an "ignoring nameserver" error line like:"Jan 01 01:01:01 MyRoutersName daemon.warn dnsmasq: ignoring nameserver 18.104.22.168 - cannot make/bind socket: Permission denied". Do not assign query ports less than 1024 to the queryport|
|===== Notes =====||===== Notes =====|
doc/howto/dhcp.dnsmasq.1373535244.txt.bz2 · Last modified: 2013/07/11 11:34 by lorema
This text is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.