0

CLI does not identify devices

Hi there,

I have nextdns setup in a raspberry pi with the following conf:

timeout 5s
discovery-dns 192.168.1.1
listen 192.168.1.1:53
log-queries false
cache-size 10MB
cache-max-age 0s
report-client-info true
setup-router true
config 9ace77
hardened-privacy false
bogus-priv true
max-inflight-requests 256
discovery-dns 192.168.1.1
detect-captive-portals false
auto-activate true
control /var/run/nextdns.sock
max-ttl 5s
mdns all
use-hosts true

 

Both bold lines have been an attempt to use this https://help.nextdns.io/t/35hzytw/nextdns-cli-not-reporting-hostname potencial fix however I still cannot get this to work.

Can you help me please? 

4 replies

null
    • Jon_Dagle
    • 2 yrs ago
    • Reported - view

    When you use setup-router=true, NextDNS CLI ignores any listen settings, see 

    nextdns config set -help

    You also have discovery-dns listed twice, but I don't think that is related to your issue. 

    The  discovery-dns should be the IP of the device handing out DHCP reservations, typically your router.  When you specify a "listen" IP, it refers to the host running NextDNS CLI. 

    What is the IP of your PI? What is the IP of your DHCP server?

    Update your config and restart your router and PI. See how that goes.

    • Pedro_Neves
    • 2 yrs ago
    • Reported - view

    Hi Jon, 

    Thanks for helping, I've done as you suggested and kept it like this: 


    hardened-privacy false
    bogus-priv true
    use-hosts true
    timeout 5s
    setup-router true
    log-queries false
    cache-max-age 0s
    cache-size 10MB
    max-inflight-requests 256
    auto-activate true
    listen 192.168.1.201:53
    control /var/run/nextdns.sock
    max-ttl 5s
    mdns all
    report-client-info true
    discovery-dns 192.168.1.1
    detect-captive-portals false
    config 9ace77
     

    My router IP is 192.168.1.1 and the pi is running on 192.168.1.201.  Does this look right? 

    I'm still getting device name # as you can see in the attached picture. What else can I try?

    • Jon_Dagle
    • 1 yr ago
    • Reported - view

    First thing: when router-setup = true any configured listen is ignored; so set that to false, restart nextdns. (this probably doesn't matter though)

    Secondly, your graphic implies you have a LAN IP of 148.xx.xx.xx. 148.0.0.0/24 is a public IP space which should be behind a NAT router. So this is probably a cell phone on cell network? Then look to your nextDNS profile or the NextDNS app on the device. You should be able to configure the device name in the app.

      • Pedro_Neves
      • 1 yr ago
      • Reported - view

      Jon Dagle Hey Jon, 

       

      Thanks for the help so far. So I've done as suggested and put router-setup = false 

      Maybe the example provided was not the best as it was only showing the public IP. Here is a new example. I've cleaned the logs so this is after the above change.

      It is my Homeassistant setup in the 192.168.1.234 but it still shows with no name and as you can see others are already poping up also with no identity... :( Any further advice?

Content aside

  • 1 yr agoLast active
  • 4Replies
  • 1087Views
  • 2 Following