We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7833a1b + 316f62b commit a942f9aCopy full SHA for a942f9a
1 file changed
rir_client.py
@@ -2826,6 +2826,9 @@ async def passive_dns(inp: PassiveDNSInput) -> PassiveDNSResult:
2826
params=params,
2827
headers={"User-Agent": _USER_AGENT},
2828
)
2829
+ if r.status_code == 404:
2830
+ # RIPE PDNS returns 404 when no records exist for a resource
2831
+ return PassiveDNSResult(resource=inp.resource, total=0, records=[])
2832
if r.status_code != 200:
2833
return PassiveDNSResult(
2834
resource=inp.resource,
0 commit comments