[Dnsmasq-discuss] What's the "right" way to specify upstream servers?

Chris Green cl at isbd.net
Fri Sep 3 16:13:50 UTC 2021

I know there probably isn't a "right" way to do this but, while I've
been trying to sort out how to make my dns/dhcp more resilient, I have
looked at my existing dnsmasq running on a Pi and it looks a bit odd
to me.

It's a pretty standard, off the shelf Raspberry Pi installation using
the Lite version as it's headless.  The dnsmasq.conf file has been
changed quite a lot over the years though and I wonder if it's still

The upstream servers *seem* to be specified in /etc/dhcpcd.conf as

    # Example static IP configuration:
    interface eth0
    static ip_address=
    #static ip6_address=fd51:42f8:caae:d92e::ff/64
    static routers=
    static domain_name_servers=

/etc/resolv.conf is:-

    # Generated by resolvconf

So, is the above OK?  Is it the "right" way to do it?  ....etc.

The /etc/resolv.conf is written by /etc/init.d/dnsmasq and is, I
believe, correct so that dnsmasq does local cacheing.  However I'm not
sure about the upstream servers in /etc/dhcpcd.conf including the
local host as well.

Chris Green

More information about the Dnsmasq-discuss mailing list