Home Assistant Community Add-on: AdGuard Home

I’m wondering this also. I was thinking you could eneter your HA IP address as the first IP, and then 8.8.8.8 as secondary. So, if the AdGuard add-on isn’t loaded yet, then it can use the google DNS.

However, I don’t know if it actually works that way…

I’m not sure it is that cut and dry. I run two instances of adguard so I can have a primary and secondary. Even though the primary is working the secondary still gets used but less often. So you run the risk of having some requests not served by your adguard if you make the secondary 8.8.8.8

Interesting! Good to know.

OzGav, for your setup, do you have your Home Assistant DNS set to your Home Assistant IP?

Also, out of curiosity, why do you want a primary and secondary Adguard?

I use a variety of DNS servers to not only block ads but to also filter the net for my kids as well as geounblock streaming services. Thus it is critical for me that it always is working. If I just had one and didn’t specify a secondary and that one went down then the whole house internet would go down.

I have a dedicated RPi that does Adguard and the secondary is the add on in HA and yes they all get the primary and secondary DNS from my router when they start up.

1 Like

does anybody knows how I could block tiktok app in android phone? In the filters blocked services If turn on tiktok it blocks access only for laptops. The same if I add the domain in Custom filtering rules. (tiktok.com^)

I would use the query log to look at what domains are being accessed by the phone and block those.

I don’t think adguard or any other local dns (ie pihole) works for android phones. I did a google search and other people are saying the same, apparently android circumvents any specified DNS and uses a default one which cannot be changed.

In my case adguard works for laptops but not for androids.

You can try blocking anything else, not only tiktok, and see what happens. My bet is it just won’t work, so the problem is not related to tiktok or any other particular domain, but with android.

You could of course disable the router’s DHCP and use instead the dhcp from adguard and that will work, but it will also affect all other devices in the network and in case HA is down you will not have internet, so for me this is not a solution since I want to use it only for kids’ laptops and phones.

Well, I think I have to change something (and I don’t know what) because in the query logs I only see the 192.618.1.1

I tried also with roblox. I added in the custom list roblox.com^ and disable the epic games in the blocked services which stopped the access to the laptop and android phone. (I am not sure which one helped and if even roblox belongs to epic games I was just testing few things)
Tomorrow I will try to see which one is doing the job but it somehow it worked.

It appears to be working fine on my android phone. I just did a bunch of tests and all seemed to be working ok

What about in the dashboard? Do you have a list of top clients?

@OzGav
Would you be so kind and detail the settings? I input my adguard server IP in both DNS fields of the ssid that I am using at home but it does not work. Also the phone has a static IP and it is configured as a client in adguard.

I also tried switching Private DNS to off from automatic, to no avail.

The phone appears in adguard top clients, but the Request count is very low, eg right now it is 3 whereas for the laptops is in the thousands.

It also does not work when I connect via wireguard vpn, although the DNS is set to adguard server’s IP.

Thanks.

the same

image

Then at a guess I would say you have set the DNS server on your router but you haven’t set the DHCP settings correctly so the clients aren’t getting your adguard IP address as their DNS servers

Edit: have a look here which shows the two different areas in your fritzbox that you need to set the DNS servers https://docs.pi-hole.net/routers/fritzbox/

Maybe it is working for me because the directions I have for my geounblock service is to block 8.8.8.8 and 8.8.4.4:

So in my router (running Gargoyle) I have two static routes setup which redirect those two addresses to my router (ie. 192.168.1.254)

You could try that?

Most likely that is why it’s working in your case.

But for the moment I do no want to make changes in the router that will affect the way all my network devices connect to the internet, I prefer to set Adguard on a per device basis.

I find myself tinkering in HA almost every day for the time being (a lot of restarts etc) and this would break the internet connection for all devices, albeit temporarily. My wife would not be happy if this would happen :slight_smile:

Absolutely your call (and I think our wives are cut from the same cloth!) but unless you are using googles DNS servers normally then blocking them shouldn’t cause you any issues.

Can anyone of you contact IPv6 DNS Servers ( e.g. 2001:1608:10:25::1c04:b12f) ?

I get the error

Server "2001:1608:10:25::1c04:b12f": could not be used, please check that you've written it correctly

but a ping in a terminal inside the Adguard container works fine!?

Anyone an idea whats wrong here?

thank you. this guide helped me to make it work.
My set up is the following (I hadn’t change the local dns)
I am just wondering, what if my HA (and adguard) is off? Will I have any problems with my router? (internet will be available?)

in my setup I have
Screenshot 2021-03-02 191402
Screenshot 2021-03-02 191157

IP address “2001:1608:10:25::1c04:b12f” point to Frankfurt am Main, Hesse, Germany “Ideal-Hosting UG” company.

Hi Vlad, I know, but that was not the question.
It’s a DNS.Watch dns server. The problem is, cannot reach the IPv6 one, but the IPv4 one.
Even though the Adguard docker container is able to reach IPv6 addresses (ping6 …).