× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Unable to use local DNS server

JasperA
Apprentice

Unable to use local DNS server

As a home user, I want to have a good DNS for my local network.

I decided to install PowerDNS on one of my virtual machines. It works perfectly well and does exactly what I need; resolve local names (as well as reversed lookups) and forward other requests to my router.

 

Because name resolving is a very fundamental function, I want to reduce dependancies, so I figured it would be better to have pdns on my ReadyNAS.

I installed pnds-server and pdns-backend-mysql. Copied over the 'poweradmin' web-tree to have easy management, exported the MySQL database of the VM and imported it on the ReadyNAS.

 

So far, so good. The poweradmin web interface is working well, but I couldn't get pdns to start. I noticed 'bind' was running, so I killed that. 😉

However, pdns still can't bind to port 53. Research learned me that 'connmand' is listening on that port.

 

Can I just disable it? The name "Connection Manager" seems to implicate that it's doing all kinds of stuff for the NAS, so I want to be carefull there.

 

What would be the right way to enable pdns on my NAS?

Message 1 of 6

Accepted Solutions
JasperA
Apprentice

Re: Unable to use local DNS server

Forgot to reload systemd (I'm still pretty new to this)

So, I did a:

 

root@truck # systemctl daemon-reload
root@truck # systemctl restart connman

 

and got PowerDNS working.

 

Thanks for all the help. ;-))

View solution in original post

Message 4 of 6

All Replies
JasperA
Apprentice

Re: Unable to use local DNS server

Some extra information I forgot to give: I tried the app "DNS Server for ReadNAS" by ReadyNAS Guru. It didn't work, but I was unable to really uninstall it. Even after a reboot the app still appears in my list of apps. (Though icons were removed). Perhaps this is the problem

 

Update: I removed the directory /apps/dnsserver and the app is gone from my list of installed apps. pdns is obviously still unable to start due to the fact that connmand is still using port 53

Message 2 of 6
JasperA
Apprentice

Re: Unable to use local DNS server

I read a discussion about connmand about port 53 that it uses which told to edit the following line in /etc//systemd/system/multi-user.target.wants/connman.service :

 

ExecStart=/usr/sbin/connmand -n

should become:

ExecStart=/usr/sbin/connmand -n --nodnsproxy

 

I did this and restarted connmand with: systemctl restart connman

Inspection of /proc/<PID>/cmdline learned me it didn't use the '--nodnsproxy' however.

 

...but I get the feeling I'm getting close. 🙂

Message 3 of 6
JasperA
Apprentice

Re: Unable to use local DNS server

Forgot to reload systemd (I'm still pretty new to this)

So, I did a:

 

root@truck # systemctl daemon-reload
root@truck # systemctl restart connman

 

and got PowerDNS working.

 

Thanks for all the help. ;-))

Message 4 of 6
JasperA
Apprentice

Re: Unable to use local DNS server

Oops! I can't reach my gateway anymore from my ReadyNAS...

Message 5 of 6
JasperA
Apprentice

Re: Unable to use local DNS server

Okay, I decided to revert to the old situation and remove PowerDNS, because, like I said, DNS is a core functionality to my environment. I figured it would be even better to have a Raspberry Pi doing DNS for me. So I bought one of those, configured it and it works like a charm! My ReadyNAS is using at as nameserver at the moment.

Message 6 of 6
Top Contributors
Discussion stats
  • 5 replies
  • 3687 views
  • 0 kudos
  • 1 in conversation
Announcements