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

DNS (without setting it) fails lookup, resulting in ping healthcheck failing #55

Open
zilexa opened this issue Jul 29, 2022 · 2 comments

Comments

@zilexa
Copy link

zilexa commented Jul 29, 2022

bash-5.1# ping -c 1 www.google.com
ping: bad address 'www.google.com'
bash-5.1# nslookup www.google.com
;; connection timed out; no servers could be reached

bash-5.1# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=116 time=11.688 ms
64 bytes from 8.8.8.8: seq=1 ttl=116 time=11.884 ms

Pinging an IP address works fine, but pinging a domain does not. NSlookup is not possible.
Strange right?

I did not set the VPNDNS variable in Compose. I expect this not to be necessary, its optional and PIA has its own DNS.

When I do set VPNDNS to my own dns server or a public one, nslookup works.

Did something change at PIA side and does this container require updating to make PIA own DNS work again?

@thrnz
Copy link
Owner

thrnz commented Jul 29, 2022

If VPNDNS is not specified then the container defaults to using PIA's. The container log should show:
Using PIA DNS servers: 10.0.0.243,10.0.0.242
Otherwise check /etc/resolv.conf to confirm whats being used once the vpn is up.

One thing that comes to mind is if that overlaps with a LOCAL_NETWORK range then it might end up inaccessible.

@zilexa
Copy link
Author

zilexa commented Jul 29, 2022

I'll test but that must be the cause because 10.0.0.0/24 is my own wireguard VPN network range, indeed what I added in compose as well. This must be the culprit!
I guess I either change my VPN address range or instead use my own DNS server (Adguard Home with Klutchell Unbound image, as my upstream DNS server).

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

No branches or pull requests

2 participants