Unbound DNS not starting - port in use

Started by mintjberry, February 28, 2024, 07:31:24 AM

Previous topic - Next topic
Hi all,
Bit of a PFSense noob here, but since updating several revisions to version 24.1.1, Unbound does not start either through the CLI or the web interface.

See error below:
root@OPNsense:~ # unbound -c /var/unbound/unbound.conf
[1709101468] unbound[28577:0] error: bind: address already in use
[1709101468] unbound[28577:0] fatal error: could not open ports

How can I find out what is using port 53? It will start fine when set to anything else. OpenDNS is not running, and neither is Dnsmasq.

Thank you

Hi,

# pluginctl -S

Look for "dns_ports" use.


Cheers,
Franco

or just search for ":53" at
INTERFACES: DIAGNOSTICS: NETSTAT -> Sockets  ;)

Thanks guys. It shows as "command AdGuardHom".
I thought I had disabled Adguard completely. When I look in plugins it shows as available but it doesn't look like it's installed. There is no recycle bin next to the package like there is for the other two that I have installed (home assistant and zerotier).
How can I remove it completely?

If I try to install it again, it appears to install, then I go to Services and there's no Adguard menu. Also when I go back to plugins it shows as not installed.
Can I kill the service then delete it manually via the terminal?

ah, sorry, @mimugmail repo. can't help with this.
may be you should find actual install path and run
https://forum.opnsense.org/index.php?topic=22162.msg114958#msg114958
but but I don't know what I'm saying )

Quote from: mintjberry on February 28, 2024, 08:51:51 AM
If I try to install it again, it appears to install, then I go to Services and there's no Adguard menu. Also when I go back to plugins it shows as not installed.
Can I kill the service then delete it manually via the terminal?
After installing a plugin that adds anything to the UI in my experience you need to force-reload the web page before e.g. Services > AdGuard Home becomes visible.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Still can't get it to work.
Managed to get the adguard plugin working and showing in the UI, and it's definitely disabled but unbound still won't start because of adguard using the port. It's like there's another version installed somewhere that's running in the background.

Interestingly whenever I upgrade to a new version (just upgraded to 24.1.2 10 mins ago) unbound will start on its own fine. But if I stop it, then try to start it again, it won't start, with adguard apparently using the port.
Very confusing.

Fixed it, if anyone has a similar issue I did this:
Exported backup config to XML and searched for adguard (this is after it was deleted from the plugins).
Found a small codeblock of adguard with version 0.1.1, it wasn't enabled (boolean value was 0) but deleted the code block anyway.
Restored the edited config and rebooted. Unbound had started (as it usually did after a reboot), but it started again after manually stopping it, which didn't previously work.