Skip to content

Commit

Permalink
add DNS nameservers
Browse files Browse the repository at this point in the history
  • Loading branch information
URenko committed Nov 19, 2022
1 parent cd6d6c7 commit d0c6577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion accesser.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def main():

DNSresolver = dns.asyncresolver.Resolver(configure=False)
DNSresolver.cache = dns.resolver.LRUCache()
DNSresolver.nameservers = [setting.config['DNS']['nameserver']]
DNSresolver.nameservers = setting.config['DNS']['nameserver']
DNSresolver.port = int(setting.config['DNS']['port'])

importca.import_ca()
Expand Down
2 changes: 1 addition & 1 deletion config.json.default
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"check_hostname": true,
"DNS": {
"nameserver": "https://firefox.cloudflare-dns.com/dns-query",
"nameserver": ["https://firefox.cloudflare-dns.com/dns-query", "https://185.222.222.222/dns-query", "https://45.11.45.11/dns-query", "https://dns.quad9.net/dns-query", "https://dns11.quad9.net/dns-query", "https://dns10.quad9.net/dns-query"],
"port": 53
},
"webui": false,
Expand Down

0 comments on commit d0c6577

Please sign in to comment.