Latest UPDATE:
Oct 27 - The issue resurface again… super slowwww
Oct 25:
I managed to fix the issue, turned out it has nothing to do with AGH,
The root cause was my windows have docker and it modified my hosts file.
Somehow screwed up DNS request of chrome Chrome on its IPv6,
All I have to do is add ::1
behind docker’s 127.0.0.1
entries in hosts
file.
The link that helped me with this issue can be found here.
Hi Phixion,
Thanks for your haste response.
Here is the weird thing, when I use CLI to check the DNS time, the response time seems normal
For example, Netflix:
Ubuntu hosting adguard home
xxx@xxx:~$ time dig netflix.com
; <<>> DiG 9.11.3-1ubuntu1.13-Ubuntu <<>> netflix.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58140
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;netflix.com. IN A
;; ANSWER SECTION:
netflix.com. 9 IN A 34.248.165.48
netflix.com. 9 IN A 52.18.82.167
netflix.com. 9 IN A 52.17.27.129
netflix.com. 9 IN A 52.212.172.106
netflix.com. 9 IN A 52.214.223.236
netflix.com. 9 IN A 54.154.81.103
netflix.com. 9 IN A 54.76.159.18
netflix.com. 9 IN A 34.248.179.192
;; Query time: 7 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Oct 23 14:21:12 +08 2020
;; MSG SIZE rcvd: 168
real 0m0.035s
user 0m0.017s
sys 0m0.008s
My personal Windows
powershell "Measure-Command { nslookup netflix.com 2> $null }" | FINDSTR "^Milliseconds"
Milliseconds : 58
My personal windows Google Chrome
On the browser > inspect element > Network it is extremely slow.
I tried on other browsers too some websites are fast and some are slow.
Explanation that I captured from another attempt, it seems like DNS lookup took quite some time:
But in AGH query log, it still show normal timing:
Hardware info:
CPU: Intel® Quad-Core Processor J1900 (2 GHz)
MEM: 8GB DDR3
AGH: on Hassio docker