AdGuard and Dnsmasq HA addons using the same port 53

Hello,

I installed both addons Adguard and Dnsmasq some months ago and was fine since 3 weeks ago. Suddenly Adguard is not working because the DNS port 53 is reserved. The only software that is using my port 53 is Dnsmasq. If i stop the Dnsmasq the Adguard addon works fine

Anyone have any idea how to make both addons to work?

NOTE: When Dnsmasq is enabled the Adguard start normally but it is actually not working

Mutually exclusive, I suppose.
Why did you want to install both? I mean, what is your use case on either?

I am using Duckdns and in order to have a unique domain inside and outside my home i am using Dnsmasq.

Adguard was used to get rid of ads :slight_smile:

They are both DNS servers. DNS servers operate on port 53. You cannot operate 2 services on port 53.

You can likely do in adguard what you do in dnsmasq, so taht you can remove dnsmasq

ok… How? Can you advice please?

:slight_smile:

Well, what did you do in dnsmasq, in detail?

I just want to use same url inside and outside my home

hosts:
  - host: myhomeusingdnsmasq.duckdns.org:8123
    ip: 192.xxx.xxx.xxx

According to https://www.reddit.com/r/Adguard/comments/c2hl0z/adguard_home_for_local_dns/

use the filter tab and create entries like you would in a host file

ok thanks i will try it later today when i go home

Thanks. So solution is:

  • Disable DNSMasq (uninstall it if you prefer)
  • Use port 53 in AdGuard addon settings and restart it
  • In AdGuard go to Filters/DNS rewrites
  • Add a new filter and use your duckdns domain with your local HA IP
5 Likes