From 173f7dee0b9a0fab2ec190ca57e84334627dd401 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 2 May 2020 23:47:57 +0200 Subject: [PATCH] Use Cloudflare Public DNS instead of Google --- usr/lib/python3.8/vmmgr/net.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/python3.8/vmmgr/net.py b/usr/lib/python3.8/vmmgr/net.py index f7f7379..280ec19 100644 --- a/usr/lib/python3.8/vmmgr/net.py +++ b/usr/lib/python3.8/vmmgr/net.py @@ -38,10 +38,10 @@ def get_external_ip(version): resolver = dns.resolver.Resolver() resolver.timeout = 3 resolver.lifetime = 3 -resolver.nameservers = ['8.8.8.8', '8.8.4.4', '2001:4860:4860::8888', '2001:4860:4860::8844'] +resolver.nameservers = ['1.1.1.1', '1.0.0.1', '2606:4700:4700::1111', '2606:4700:4700::1001'] def resolve_ip(domain, query_type): - # Resolve domain name using Google Public DNS + # Resolve domain name using Cloudflare Public DNS try: return resolver.query(domain, query_type)[0].address except dns.resolver.NXDOMAIN: