iamdork / compose

Command line replacement for docker-compose, adding dork magics.
MIT License
2 stars 2 forks source link

DNS proxy is very slow #54

Open ohthehugemanatee opened 7 years ago

ohthehugemanatee commented 7 years ago

Ubuntu 17.04, but I also had the problem on 16.04 .

The DNS proxy is very slow resolving external hostnames.

 time nslookup google.com 127.0.0.1
Server:     127.0.0.1
Address:    127.0.0.1#53

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

nslookup google.com 127.0.0.1  0,01s user 0,01s system 0% cpu 4,033 total

4 seconds is a long time to wait for your primary nameserver. Cached requests and .dork.io requests are served quickly, it's only external requests that have this problem. I enabled logging on the container, and got

 dnsmasq[1]: started, version 2.75 cachesize 150
 dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth no-DNSSEC loop-detect inotify
 dnsmasq[1]: reading /etc/resolv.conf
 dnsmasq[1]: using nameserver 127.0.0.11#53
 dnsmasq[1]: read /etc/hosts - 8 addresses

No additional logs are printed during resolution.