DNSMasq + NextDNS

Hey y’all!

I use NextDNS to filter a lot of content from ads to trackers to inappropriate content for the kids. They provide a configuration template for DNSMasq but I cannot figure out how to implement in the HA add-on.

Sample config provided by NextDNS for DNSMasq
no-resolv
bogus-priv
strict-order
server=2a07:a8c1::
server=45.90.30.0
server=2a07:a8c0::
server=45.90.28.0
add-cpe-id=XXXXXX

Here is what I have in the HA plug-in:

defaults:

  • 45.90.30.0
  • 45.90.28.0
    forwards: []
    hosts: []
    services: []
    add-cpe-id:
  • XXXXXX

Note that it accepts the ‘add-cpe-id’ option but doesn’t actually implement it.

Obviously setting the resolvers is straight forward but I am not sure how to specify the ‘add-cue-id’ in the config. This is the attribute passed to NextDNS in order to match a policy config.

Thanks in advance for the help!

Jason