Skip to content

Commit

Permalink
check_reverse_dns: reorder ns checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Apr 11, 2024
1 parent 9277b37 commit 80a6e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/monitoring/files/check_reverse_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def check_records(hostname):
)
cname_check_impossible = nameserver.endswith(flatten_manadatory_providers)

if sorted(list(nameservers)) == sorted(['ns1.miraheze.org.', 'ns2.miraheze.org.']):
return 'NS'
if sorted(list(nameservers)) == sorted(['ns1.wikitide.net.', 'ns2.wikitide.net.']):
return 'NS'
if sorted(list(nameservers)) == sorted(['ns1.miraheze.org.', 'ns2.miraheze.org.']):
return 'NS'
except resolver.NoAnswer:
nameservers = None

Expand Down

0 comments on commit 80a6e62

Please sign in to comment.