fix: check dig NS
Python Lint CI / ruff-format-check (push) Successful in 44s
Python Lint CI / ty (push) Successful in 44s
Python Lint CI / ruff (push) Successful in 44s

This commit is contained in:
2026-06-15 14:18:58 +02:00
parent a8aac6a246
commit b387fec2b3
+2 -2
View File
@@ -41,10 +41,10 @@ class Factory:
msg = "dig is not installed" msg = "dig is not installed"
raise FactoryError(msg) raise FactoryError(msg)
try: try:
output = subprocess.check_output([dig_bin, domain, "+short"]) # noqa: S603 output = subprocess.check_output([dig_bin, domain, "NS", "+short"]) # noqa: S603
return len(output) == 0 return len(output) == 0
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
return True return False
def random_domain(self) -> str: def random_domain(self) -> str:
k = 10000 k = 10000