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

Eric Hiller mrraptor98 at gmail.com
Sat Nov 7 02:08:12 GMT 2015


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

> 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
> #######################################
>
>
> _______________________________________________
> 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/20151106/d4351edc/attachment.html>


More information about the Dnsmasq-discuss mailing list