Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Add more dns server
Browse files Browse the repository at this point in the history
  • Loading branch information
derekhe committed Nov 11, 2021
1 parent e92c149 commit bff7ecd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

urllib3.disable_warnings()


__domains = ['kh.ssl.ak.tiles.virtualearth.net', 'khstorelive.azureedge.net']


Expand All @@ -18,7 +17,7 @@ def add_cert():
def get_hosts_origin_ips():
origin_ips = {}
dns_resolver = dns.resolver.Resolver()
dns_resolver.nameservers = ['8.8.8.8']
dns_resolver.nameservers = ['8.8.8.8', '8.8.4.4', '208.67.222.222', '208.67.220.220', '223.5.5.5']
for d in __domains:
origin_ips[d] = dns_resolver.resolve(d)[0].to_text()
return origin_ips
Expand All @@ -40,4 +39,4 @@ def restore_hosts():
hosts = Hosts()
for domain in __domains:
hosts.remove_all_matching(name=domain)
hosts.write()
hosts.write()

0 comments on commit bff7ecd

Please sign in to comment.