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

Eric Hiller mrraptor98 at gmail.com
Sat Mar 26 04:03:40 GMT 2016


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 Luehrsen <ericluehrsen at hotmail.com>
wrote:

> 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
> #######################################
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20160325/bc814fcd/attachment.html>


More information about the Dnsmasq-discuss mailing list