Adguard problem not working

Hi

Adguard is installed and running. I didn’t change anything in Adguard. In my router the DNS of the dhcp server is configured with the ip-address of HA. But nothing happens in Adguard. Connected devices have the correct DNS. What is going wrong?

1 Like

You have to add your router ip in adguard. Go to settings → client settings and add your router ip address. If it doesnt work post your adguard logfile here.

Thanks, indeed that was not done. I configured the ip of the router in the client setting but still not working.

Where can I find the log files?

Well when you open adguard addon you will see log

I dont understand what do you mean by adguard doesn’t working? It has dns server, so if your configuration is correct all dns queries should go over adguard.

P.S.
Maybe you didnt configure your home assistant to use adguard as dns resolver.
In network settings I use my router ip as a gateway and for dns I use ha ip running adguard.

1 Like

With Adguard not working, I mean that no data is checked by Adguard (see picture dashboard).

I have a router behind my modem. The router is dhcp server and there I also configured HA as DNS server. The WAN DNS servers I haven’t changed.



1 Like

Oke, when you ask for some ip from your client dns request doesnt go through ha. In my opinion you have miss configuration in your local network.
I dont know what the problem is but i will try to help you. You should check your /etc/host file. There you should have your home assistant domain ie.
192.168.0.5 homeassistant
Next you should have static ip for your home assistant server. You can do that in router settings over bind address.
Your adguard doesnt work becuase it is listening to your loopback ( 127.0.0.1.) and not on your ha address.
Also check your ha network settings in configuration → system → ip address. You should use static ip as I showed you in my previous post.

Where can I find the /etc/host file?

well on your linux server hosting home assistant.

I’ve had the same issue. Adding a new client to the list didn’t help.

What actually helped I think was to add new entry in:
Settings -> DNS settings -> Access settings -> Allowed clients

I have restarted the add-on as well.

2 Likes

Had the same issue, and have the same Asus router :wink: The only thing I had to do was in fact stopping the Adguard add-on in home assistant and then starting it again. Strangely enough, a HA restart didn’t resolve the issue.

So, all good now. Have in the LAN tab on the router my HA ip address as DNS server; on the WAN tab I still have “automatic DNS”.

5 Likes

I am having some issues aswell with this.
Everything seems fine, the adguard interface shows up my computer ip and blocked some content, etc… But I still have ads. Also if i block a service, let’s say youtube, it still works.

Raspberry has static ip set properly
My router dns is set up properly.

I don’t know what I am missing to be honest

Hi all,

I had exact same issue since since I am using an Asus router. The way I managed to fix this was:
1- Restart Adguard add-on
2- Restart HA
3- Once restarted, go to Set-up guide and see if the loopback address (127.0.0.0) is gone and you are now provided with the Static address given to your HA (or binding address if you are still using DCHP but given a Binding IP Address)
That should be it.

Let me know how you go.

7 Likes

Thanks all of you and Leo, with all those changes it finally worked!

Thank you…Saved me some time.

Thank you, that was very strange but stopping and starting the adguard helped for me but. Tried HA reboot at first but that didn’t solve the issue :slight_smile:

This is what fixed it for me. A restart of HA didn’t do it but the restarting AdGuard and then restarting HA did it.

Wow, thank you! I’ve been banging my head with my router and pi for hours. Just a restart of the addon fixed this.

I had to set an external DNS server too in my AdGuard settings page. Previously it was 127.0.0.1 but when I entered CloudFlares (1.1.1.1) and restarted AdGuard that seem to do the job. Now I also updated my router WAN settings to use the IP address of my HA and it all works!

Hello, I have the same issues here…
local ip of my docker home assistant is 192.168.1.100 but on /etc/hosts file i don’t have it ip… what can i do to use the ADguard?

127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.30.32.6 observer
172.30.32.2 supervisor

and in the “device configuration page” I have only that dns

It’s been a bit long time from my post.
I have a provider router and local wifi routers in mesh mode. Main mesh node is connected with ethernet cable to provider router and to my server.
On main mesh node I set up dns1 and dns2 to ip address of my ha instance and all dns requests from local wifi will use adguard.