Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating filters takes longer than optimal #545

Closed
Bluscream opened this issue Jan 14, 2019 · 13 comments
Closed

Updating filters takes longer than optimal #545

Bluscream opened this issue Jan 14, 2019 · 13 comments
Labels

Comments

@Bluscream
Copy link

Bluscream commented Jan 14, 2019

root@adguard:/home/blu/AdGuardHome# ./AdGuardHome
2019/01/14 03:25:15 AdGuard Home web interface backend, version v0.92-hotfix2
2019/01/14 03:25:15 Current working directory is /home/blu/AdGuardHome
2019/01/14 03:25:15 main.upgradeConfig(): got schema version 2
2019/01/14 03:25:15 Reading YAML file: /home/blu/AdGuardHome/AdGuardHome.yaml
2019/01/14 03:25:15 Loading filter 1543797650 contents to: /home/blu/AdGuardHome                                                                   /data/filters/1543797650.txt
2019/01/14 03:25:15 File /home/blu/AdGuardHome/data/filters/1543797650.txt, id 1                                                                   543797650, length 499326
2019/01/14 03:25:15 Loading filter 1543797653 contents to: /home/blu/AdGuardHome                                                                   /data/filters/1543797653.txt
2019/01/14 03:25:15 File /home/blu/AdGuardHome/data/filters/1543797653.txt, id 1                                                                   543797653, length 35737
2019/01/14 03:25:15 Loading filter 1543797654 contents to: /home/blu/AdGuardHome                                                                   /data/filters/1543797654.txt
2019/01/14 03:25:15 File /home/blu/AdGuardHome/data/filters/1543797654.txt, id 1                                                                   543797654, length 1330
2019/01/14 03:25:15 Downloading update for filter 1543797650 from https://adguar                                                                   dteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
^[[15~2019/01/14 03:25:35 Filter #1543797650 at URL https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt hasn't changed, not updating it
2019/01/14 03:25:35 Downloading update for filter 1543797653 from http://www.malwaredomainlist.com/hostslist/hosts.txt
2019/01/14 03:25:55 Couldn't request filter from URL http://www.malwaredomainlist.com/hostslist/hosts.txt, skipping: Get http://www.malwaredomainlist.com/hostslist/hosts.txt: dial tcp: lookup www.malwaredomainlist.com on [fd00::e228:6dff:fe29:977b]:53: read udp [2003:e3:9f15:7300:d010:e86d:53d0:446f]:52891->[fd00::e228:6dff:fe29:977b]:53: i/o timeout
2019/01/14 03:25:55 Failed to update filter http://www.malwaredomainlist.com/hostslist/hosts.txt: Get http://www.malwaredomainlist.com/hostslist/hosts.txt: dial tcp: lookup www.malwaredomainlist.com on [fd00::e228:6dff:fe29:977b]:53: read udp [2003:e3:9f15:7300:d010:e86d:53d0:446f]:52891->[fd00::e228:6dff:fe29:977b]:53: i/o timeout
2019/01/14 03:25:55 Downloading update for filter 1543797654 from https://gist.githubusercontent.com/Bluscream/abb44b800220f4a90406505f6bdb86d0/raw/redirect.txt
2019/01/14 03:26:15 Couldn't request filter from URL https://gist.githubusercontent.com/Bluscream/abb44b800220f4a90406505f6bdb86d0/raw/redirect.txt, skipping: Get https://gist.githubusercontent.com/Bluscream/abb44b800220f4a90406505f6bdb86d0/raw/redirect.txt: dial tcp: lookup gist.githubusercontent.com on [fd00::e228:6dff:fe29:977b]:53: read udp [2003:e3:9f15:7300:d010:e86d:53d0:446f]:33925->[fd00::e228:6dff:fe29:977b]:53: i/o timeout
2019/01/14 03:26:15 Failed to update filter https://gist.githubusercontent.com/Bluscream/abb44b800220f4a90406505f6bdb86d0/raw/redirect.txt: Get https://gist.githubusercontent.com/Bluscream/abb44b800220f4a90406505f6bdb86d0/raw/redirect.txt: dial tcp: lookup gist.githubusercontent.com on [fd00::e228:6dff:fe29:977b]:53: read udp [2003:e3:9f15:7300:d010:e86d:53d0:446f]:33925->[fd00::e228:6dff:fe29:977b]:53: i/o timeout
2019/01/14 03:26:15 Writing YAML file: /home/blu/AdGuardHome/AdGuardHome.yaml
2019/01/14 03:26:15 Writing YAML file: /home/blu/AdGuardHome/AdGuardHome.yaml
2019/01/14 03:26:15 Creating dnsfilter
2019/01/14 03:26:16 Loading stats from querylog
2019/01/14 03:26:16 file "querylog.json": read 0 entries in 12.36196ms, 0s/entry, 0 over 2h46m40s, 0s avg
2019/01/14 03:26:16 Starting the DNS proxy server
2019/01/14 03:26:16 Ratelimit is enabled and set to 1000 rps
2019/01/14 03:26:16 DNS cache is enabled
2019/01/14 03:26:16 Creating the UDP server socket
2019/01/14 03:26:16 Listening to udp://[::]:53
2019/01/14 03:26:16 Creating the TCP server socket
2019/01/14 03:26:16 Listening to tcp://[::]:53
2019/01/14 03:26:16 Go to http://0.0.0.0:80
2019/01/14 03:26:16 Entering the TCP listener loop on [::]:53
2019/01/14 03:26:16 Entering the UDP listener loop on [::]:53

This takes forever ._. (I know 1 minute is not much but when the internet of the whole house depends on it :o )

uname -a: Linux adguard 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l GNU/Linux

image

@ameshkov
Copy link
Member

2019/01/14 03:25:55 Failed to update filter http://www.malwaredomainlist.com/hostslist/hosts.txt: Get http://www.malwaredomainlist.com/hostslist/hosts.txt: dial tcp: lookup www.malwaredomainlist.com on [fd00::e228:6dff:fe29:977b]:53: read udp [2003:e3:9f15:7300:d010:e86d:53d0:446f]:52891->[fd00::e228:6dff:fe29:977b]:53: i/o timeout

Check the DNS settings of your device, it seems that it is configured to use an invalid DNS server.

@Bluscream
Copy link
Author

Bluscream commented Jan 14, 2019

image
image
@ameshkov aghome says they are a-ok

@ameshkov
Copy link
Member

I am not talking about the DNS servers you have configured in AG Home, I am talking about your device's DNS settings which are different:
2019/01/14 03:25:55 Failed to update filter http://www.malwaredomainlist.com/hostslist/hosts.txt: Get http://www.malwaredomainlist.com/hostslist/hosts.txt: dial tcp: lookup www.malwaredomainlist.com on [fd00::e228:6dff:fe29:977b]:53: read udp [2003:e3:9f15:7300:d010:e86d:53d0:446f]:52891->[fd00::e228:6dff:fe29:977b]:53: i/o timeout

@Bluscream
Copy link
Author

Why doesn't AGHome use it's own DNS servers?

@Bluscream
Copy link
Author

Bluscream commented Jan 14, 2019

BTW: These are the set DNS servers:
image

/home/blu/AdGuardHome$ cat /etc/resolv.conf
# Generated by resolvconf
domain fritz.box
nameserver 192.168.2.1
nameserver fd00::e228:6dff:fe29:977b

@ameshkov
Copy link
Member

fd00::e228:6dff:fe29:977b this one seems to mailfunction.

@Bluscream
Copy link
Author

C:\Users\blusc>ping fd00::e228:6dff:fe29:977b

Pinging fd00::e228:6dff:fe29:977b with 32 bytes of data:
Reply from fd00::e228:6dff:fe29:977b: time=2ms
Reply from fd00::e228:6dff:fe29:977b: time=2ms
Reply from fd00::e228:6dff:fe29:977b: time=2ms
Reply from fd00::e228:6dff:fe29:977b: time=2ms

Ping statistics for fd00::e228:6dff:fe29:977b:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 2ms, Maximum = 2ms, Average = 2ms

pinging it works fine tho 😕

@ameshkov
Copy link
Member

pinging != dns lookup

@Bluscream
Copy link
Author

Bluscream commented Jan 14, 2019

What does this tell me?

C:\Users\blusc>nslookup google.com 8.8.8.8
Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Non-authoritative answer:
Name:    google.com
Addresses:  2a00:1450:4001:80b::200e
          172.217.18.14


C:\Users\blusc>nslookup google.com 192.168.2.47
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  192.168.2.47

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\Users\blusc>nslookup google.com 192.168.2.43
Server:  UnKnown
Address:  192.168.2.43

Non-authoritative answer:
Name:    google.com
Addresses:  2a00:1450:4001:81f::200e
          172.217.22.78
C:\Users\blusc>nslookup -query=AAAA google.com
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  2003:e3:9f21:9000:9ee9:a962:9b3d:bd28

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\Users\blusc>nslookup -query=AAAA google.com 192.168.2.43
Server:  UnKnown
Address:  192.168.2.43

Non-authoritative answer:
Name:    google.com
Address:  2a00:1450:4001:81f::200e


C:\Users\blusc>nslookup -query=AAAA google.com 192.168.2.47
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  192.168.2.47

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

@Bluscream
Copy link
Author

fd00::e228:6dff:fe29:977b this one seems to mailfunction.

That one seems to work fine

C:\Users\blusc>nslookup -query=AAAA google.com fd00::e228:6dff:fe29:977b
Server:  fritz.box
Address:  fd00::e228:6dff:fe29:977b

Non-authoritative answer:
Name:    google.com
Address:  2a00:1450:4001:825::200e


C:\Users\blusc>nslookup -query=A google.com fd00::e228:6dff:fe29:977b
Server:  fritz.box
Address:  fd00::e228:6dff:fe29:977b

Non-authoritative answer:
Name:    google.com
Address:  172.217.18.174

@Bluscream
Copy link
Author

Any help with this?

@ameshkov
Copy link
Member

@Bluscream do you still have this issue on v0.95? AGH now uses itself as a DNS resolver for all queries, so in theory, it should've gone away.

Could you please post a new log file?

@Bluscream
Copy link
Author

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants