lancachenet / lancache-dns

DNS Docker service for a lancache.
https://hub.docker.com/r/lancachenet/lancache-dns/
MIT License
280 stars 73 forks source link

Can not resolve large responses #118

Closed sioakim closed 3 years ago

sioakim commented 3 years ago

Describe the issue you are having

Can not resolve android.clients.google.com (CNAME to android.l.google.com)

How are you running the container(s)

docker run --restart unless-stopped --name lancache-dns -p 192.168.11.81:53:53/udp --detach -e USE_GENERIC_CACHE=true -e UPSTREAM_DNS="1.1.1.1" -e LANCACHE_IP=192.168.11.81 lancachenet/lancache-dns:latest

DNS Configuration

Using DHCP server and assigning DNS to 192.168.11.81

Output of container(s)

Docker logs doesn't show anything unusual

If you use DNS server: 1.1.1.1 to resolve android.clients.google.com you get:

> server 1.1.1.1
Default Server:  one.one.one.one
Address:  1.1.1.1

>  android.clients.google.com
Server:  one.one.one.one
Address:  1.1.1.1

Non-authoritative answer:
Name:    android.l.google.com
Addresses:  172.217.18.110
          216.58.212.174
          142.250.74.206
          172.217.23.110
          172.217.16.142
          172.217.16.206
          172.217.22.46
          216.58.210.14
          172.217.23.142
          172.217.18.174
          216.58.205.238
          216.58.207.78
          172.217.21.206
          216.58.212.142
          172.217.22.14
          216.58.206.14
Aliases:  android.clients.google.com

If you try the same from lancache-dns you get:

> server 192.168.11.81
Default Server:  [192.168.11.81]
Address:  192.168.11.81

>  android.clients.google.com
Server:  [192.168.11.81]
Address:  192.168.11.81

*** [192.168.11.81] can't find android.clients.google.com: Unspecified error

It seems that lancache-dns can not handle the large response (16 records) coming from google's DNS servers.

sioakim commented 3 years ago

Today it seems to be working - so I will close this.