mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 21:08:03 +00:00
DNS: revert hardcoded DNS server for reverse DNS checks
This commit is contained in:
@@ -43,7 +43,7 @@ class DNS:
|
|||||||
|
|
||||||
def check_ptr_record(self, ip: str, mail_domain) -> bool:
|
def check_ptr_record(self, ip: str, mail_domain) -> bool:
|
||||||
"""Check the PTR record for an IPv4 or IPv6 address."""
|
"""Check the PTR record for an IPv4 or IPv6 address."""
|
||||||
result = self.shell(f"dig @ns1.your-server.de -r -x {ip} +short").rstrip()
|
result = self.shell(f"dig -r -x {ip} +short").rstrip()
|
||||||
return result == f"{mail_domain}."
|
return result == f"{mail_domain}."
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user