binhex / arch-qbittorrentvpn

Docker build script for Arch Linux base with qBittorrent, Privoxy and OpenVPN
GNU General Public License v3.0
397 stars 46 forks source link

DNS Resolution Problem while Docker is starting #103

Closed keturo closed 2 years ago

keturo commented 2 years ago

I added a local DNS Server to the connection to start the initial connection with the local dns server. If i allow now the connection from the container to my local DNS server and block the connection to the public one (cloudflare, pia dns server, etc) the connection needs a lot of time to start. Could this be optimized?

keturo commented 2 years ago

Edit: As i see it tries on every DNS server to get a response, so reducing the DNS Server to only 2 or 3 makes everything faster. Best way would be if it uses the local address first.

binhex commented 2 years ago

Local DNS is blocked using iptables to prevent any potential IP leakage I am not planning on changing this

keturo commented 2 years ago

The interesting thing, the local dns is working for me when i set this up in the container with the variable. But it need some time to resolve the host name. I understand if you dont wanna enable this. I only like to use an encrypted DNS instead of udp/53 to communicate