Re: [Dnsmasq-discuss] Interface-name not injecting name into cache
I know this is a bit un-timely. But I wanted to reply so that this information was publicly available. For what seems an unknown reason to me, the following will not work-> interface-name=wan,eth0 interface-name=lan,eth1 However this will-> interface-name=wan.domain.tld,eth0 interface-name=wan,eth0 interface-name=lan.domain.tld,eth1 interface-name=lan,eth1 As will this -> interface-name=wan.domain.tld,eth0 interface-name=wan,eth0 interface-name=lan.domain.tld,eth1 interface-name=lan,eth1 interface-name=lan6,eth1/6 interface-name=lan4,eth1/4 So it appears you must at LEAST have the fqdn listed, then after that you can have hostname-only as you please. Hope that helps others. Thanks -Eric On Tue, Oct 27, 2015 at 5:58 PM, Eric Luehrsenwrote: > 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,::,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 > ### > > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Interface-name not injecting name into cache
(sorry for that delay, work's been crazy) I did get it working by using FQDN format `sub.domain.tld` --> interface-name=sub1.domain.tld,eth0 interface-name=sub2.domain.tld,br0 but just having `single` would never work. I noticed you had `single` as well as `sub.domain.tld` set does `single` as well as the fully qualified work? I do not have domain= set because this DNS server is NOT the authoritative server for that domain, so I want hosts that do not exist locally to be queried upstream. -Eric On Tue, Oct 27, 2015 at 6:45 PM, Eric Luehrsenwrote: > 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 > *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,::,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 > ### > > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Interface-name not injecting name into cache
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 LuehrsenSent: 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,::,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 ### ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss