0

Running NextDNS CLI on a Raspberry behind my Router handling DHCP => Every DNS query in Logs is from the router

Hello,

I'm transitionning from PiHole to NextDNS but I have an issue I can't seem to resolve.

I've configured a Raspberry Pi with NextDNS CLI (192.168.1.198) to run as my DNS resolver. It's pointed on my Router (192.168.1.1) who also handles DHCP.

It working pefectly when it comes to blocking ads/trackers/etc but every device running on my local network is shown in Logs and Statistics as my router (Internetbox).

As you can see in my config file, I've setup dns discovery, report client info and listen port.

Am I missing something/doing something wrong ?

 

Thanks in advance, have a great one everyone :)

1 reply

null
    • PaulC
    • 2 yrs ago
    • Reported - view

    You have to configure the DNS resolver to include the MAC address in the request it forwards to NextDNS CLI. If you do not, then NextDNS doesn't have any more information about the origin than 'it came from the DNS forwarder'. By the time it reaches NedtDNS CLI, the origin information (which LAN device made the request) has already been lost at the DNS forwarder.

    For dnsmasq, the option is 'add-mac' - that asks dnsmasq to embed the originator's MAC address in the requests it forwards, which NextDNS can then extract and generate the logs & analytics from. If you're not using dnsmasq, see what options your resolver supports for 'edns0', the DNS protocol extension that can embed the origins' MAC address, amongst other things.

Content aside

  • 2 yrs agoLast active
  • 1Replies
  • 454Views
  • 2 Following