[Dnsmasq-discuss] Interface-name not injecting name into cache

Eric Luehrsen ericluehrsen at hotmail.com
Wed Oct 28 01:45:39 GMT 2015


Someone should correct me if I am wrong, but the key lines are  the domain= and server=. This tells dnsmasq to make each host "hostname.lan" aliased with "hostname" and that dnsmasq should resolve all queries that imply the ".lan" domain via DHCP (or SLAAC-NAMES).
domain=lanserver=/lan/

________________________________
From: Eric Luehrsen <ericluehrsen at hotmail.com>
Sent: Tuesday, October 27, 2015 8:58 PM
To: BIZ: DNSMASQ List
Subject: [Dnsmasq-discuss] Interface-name not injecting name into cache

This a configuration for a router where eth0.1 and wifi are bridged to br-lan. br-lan is a proper interface as far as dnsmasq is concerned. Also note but not related, it is probably a good idea to use tags. Set a tag for each network range dhcp4 and dhcp6 with options.

#######################################
dhcp-authoritative
domain-needed
no-hosts
localise-queries
read-ethers
bogus-priv
expand-hosts
local-service
dhcp-generate-names
#######################################
cache-size=4000
dns-forward-max=100
dhcp-lease-max=250
domain=lan
server=/lan/
min-port=16384
#######################################
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.auto
addn-hosts=/tmp/hosts
conf-dir=/tmp/dnsmasq.d
#######################################
stop-dns-rebind
conf-file=/usr/share/dnsmasq/trust-anchors.conf
dnssec
dnssec-timestamp=/etc/dnsmasq.time
#######################################
interface-name=routername.lan,br-lan
interface-name=routername,br-lan
interface-name=ipv4.routername.lan,br-lan/4

interface-name=ipv6.routername.lan,br-lan/6

#######################################

dhcp-range=set:lan,192.168.1.100,192.168.1.249,255.255.255.0,8h

dhcp-option=tag:lan,option:ntp-server,0.0.0.0

dhcp-option=tag:lan,252,"\n"

dhcp-range=set:lan6,::1000,::ffff,constructor:br-lan,slaac,ra-names,8h

dhcp-option=tag:lan6,option6:ntp-server,[fd00::]

dhcp-option=tag:lan6,option6:dns-server,[::]

ra-param=br-lan,high,300,3600
no-dhcp-interface=eth0.2
#######################################
enable-ra
quiet-ra
#######################################

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20151028/391a06dd/attachment.html>


More information about the Dnsmasq-discuss mailing list