Home Assistant Community Add-on: AdGuard Home

In the AdGuard DNS Settings I just have

image

This enables DoH on any outgoing queries.

I can access the web interface within HA (uses ingress I think).

In the add-on config

image

The encryption menu within AdGuard only comes into play if you are not running it within HA AIUI so I don’t enable that.

1 Like

You will still be able to manage the service via ingress. Simply toggle the show in sidebar switch.

Well I never, I assumed it wouldn’t work and didn’t check (stupid me!!). Thanks guys :slight_smile:

1 Like

Can it be bind to a single IP address?
Hassio has multiple ip addresses and they are listed in Adguard.
When using the intended ip:

[bakkerl@moros ~]$ nslookup google.com 192.168.75.9
;; reply from unexpected source: 192.168.75.17#53, expected 192.168.75.9#53
;; reply from unexpected source: 192.168.75.17#53, expected 192.168.75.9#53
;; reply from unexpected source: 192.168.75.17#53, expected 192.168.75.9#53
;; connection timed out; no servers could be reached

The query is in the log of AdGuard… but client will not work with reply from another IP than expected.

Same issue here…did you ever find a resolution?

Could it be this? Problems setting up Pi-hole or AdGuard

Thank you. Resolved on my HA.

using custom filter i can stop youtube from loading.
||youtube.com^

||ytimg.com^

||youtu.be^

||googlevideo.com^

||youtubei.googleapis.com^

||youtube-nocookie.com^

but when i use the url list, the youtube doesn’t get blocked

https://raw.githubusercontent.com/jactora/blockyoutube/master/blockyoutube.txt

any help to create a url list for youtube to be blocked?
i want to avoid custom filters, i dont think i can enable or disable custom filters in HA via automation. my main intention is to block youtube in home assistant based on some automation

AdGuard Logging

Where are the logs for AdGuard written?

Are they influenced by the Recorder setting in Home Assistant? (I would assume no)
Is it possible to write the logs to an external SQL database?

Dear friends,

I am unable to get the addon to work as intended. I am sure some of my settings are messing up somewhere but unable to figure out whats missing. The addon is installed and the dashboard loads fine.

I have enabled everything under the filter-DNS blocklist section and the rest is default. I am using this website to test if the adds are blocked but I still see the adds! Link - https://ads-blocker.com/testing/#ad-blocker-test-steps

As per the setup guide in the addon, I have first updated the ip (192.168.0.3) in my routers DNS settings, but this stops internet from my Ubuntu host system. I am still able to access internet from my other devices. When this did not work, then I tried to update using the windows method on my laptop but still didn’t work.

Please see below my network settings.
I would appreciate if anyone can guide me in right direction.
I have read many threads but doesn’t seem like I am able to figure out.
If I have missed any required information please let me know

Host OS: Ubuntu 16.04
Homeassistant running in docker

Network Config

    address 192.168.0.3
    netmask 255.255.255.0
    gateway 192.168.0.1
    network 192.168.0.0
    broadcast 192.168.0.255
    dns-nameservers 8.8.8.8 8.8.4.4

Add-on: AdGuard Home
Network-wide ads & trackers blocking DNS server

Add-on version: 2.3.3
There is an update available for this add-on!
Latest add-on version: null
Please consider upgrading as soon as possible.
System: Ubuntu 16.04.6 LTS (amd64 / qemux86-64)
Home Assistant Core: 0.110.2
Home Assistant Supervisor: 222

Addon Config
ssl: true
certfile: fullchain.pem
keyfile: privkey.pem
loglevel: warning

Dashboard loads fine

AdGuard Home DNS server is listening on the following addresses:
127.0.0.1
192.168.0.3
172.30.32.1
172.17.0.1

Upstream DNS servers - https://dns10.quad9.net/dns-query
Bootstrap DNS servers - 1.1.1.1:53

I am having trouble with some YouTube movies not being loaded when using AdGuard on Hass as my DNS server. I often get the error that the live video is limited and that I need to login with a G-Suite account.

When I switch to DNS 1.1.1.1 and restart the browser, it works. Same account, same live video.

Is there any way to fix this?

Have you any of these enabled?
image

Yes, I did. I turned them off, but still the same problem. Does not work for live streams. For example, the NASA live stream will not load.

What upstream from AdGuard do you use? Could it be that? Is there anything in the AdGuard logs?

Problem seems to be the dns on my Samsung tv. On my laptop and Apple TV it works now. Only my tv is the problem now. Guess it’s because the tv is 5 years old now. :wink:

Hi all

looking at query log of AdGuard, I see a lot of queries coming from the HA IP address to various IPs all around the world

How can I know who is requesting this and why?

What is a PTR type?

Thanks

It isn’t a good idea to have HA point to it’s own add-on for DNS as while HA is booting it will not be able to resolve anything (as per docs) unless you have a fallback.

Personally I point HA to an instance of Pi-Hole that forwards to HA AdGuard. Pi-Hole falls back to another forwarder if AdGuard fails. Yeah, I know…

Actually, I’ve moved AdGuard from HA addon to a tiny RPi Zero W exactly for this reason.
So HA point to AdGuard IP address as DNS, that is (should be) “always” alive

1 Like

Good plan! I’d seen these requests but never checked to see what they were.

From a PC - yahoo.com as I expect it will not be cached.

~$ dig yahoo.com

; <<>> DiG 9.11.3-1ubuntu1.11-Ubuntu <<>> yahoo.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38740
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;yahoo.com.                     IN      A

;; ANSWER SECTION:
yahoo.com.              1069    IN      A       98.138.219.232
yahoo.com.              1069    IN      A       98.138.219.231
yahoo.com.              1069    IN      A       98.137.246.7
yahoo.com.              1069    IN      A       72.30.35.9
yahoo.com.              1069    IN      A       72.30.35.10
yahoo.com.              1069    IN      A       98.137.246.8

;; Query time: 41 msec
;; SERVER: 192.168.7.29#53(192.168.7.29)
;; WHEN: Mon Jun 08 22:08:09 BST 2020
;; MSG SIZE  rcvd: 134

Tried a different domain and 68msec but going through 2 ad blockers is not bad. I can bypass if I want but most will be cached.

It is also quite variable.