NextDNS CLI not reporting hostname
I installed NextDNS CLI on Ubuntu and pointed all my clients at it. I see in the logs it is not reporting the hostname but is reporting Device #xxxx
How do I get this to populate the hostname of the actual device?
I did select "report hostnames" and "act as a router" during setup
3 replies
-
Did a bit of troubleshooting and digging and figured out how to resolve this. In my case my DHCP server is located on my router, but the NextDNS CLI is running on a Ubuntu VM. I had to make a few changes to the nextdns.conf so it could look up the DHCP hostnames against my router.
sudo vi nextdns.conf discovery-dns 192.168.X.X
(192.168.X.X = Router / DHCP host IP)
I also changed
listen 127.0.0.1:53
to
listen 192.168.X.X:53
(192.168.X.X:53 = NextDNS CLI host IP)
-
I tried this but nextdns wouldn't start (running nextdns client on debian based distro. router for local network is 10.0.0.1 )
Mar 09 11:54:03 kdel systemd[1]: Started NextDNS DNS53 to DoH proxy.. Mar 09 11:54:03 kdel nextdns[227320]: Starting NextDNS 1.10.1/linux on 10.0.0.1:53 Mar 09 11:54:03 kdel nextdns[227320]: Starting mDNS discovery Mar 09 11:54:03 kdel nextdns[227320]: Listening on TCP/10.0.0.1:53 Mar 09 11:54:03 kdel nextdns[227320]: Listening on UDP/10.0.0.1:53 Mar 09 11:54:03 kdel nextdns[227320]: Startup failed: proxy: tcp: listen tcp 10.0.0.1:53: bind: cannot assign requested address Mar 09 11:54:03 kdel nextdns[227320]: Error: proxy: tcp: listen tcp 10.0.0.1:53: bind: cannot assign requested address Mar 09 11:54:03 kdel systemd[1]: nextdns.service: Main process exited, code=exited, status=1/FAILURE Mar 09 11:54:03 kdel systemd[1]: nextdns.service: Failed with result 'exit-code'.
-
I decided to use hosts file instead for now but still would like to be able to use this method if possible
Content aside
-
2
Likes
- 3 yrs agoLast active
- 3Replies
- 1363Views
-
3
Following