You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
This happens always as it is a design issue.
What is the expected behavior?
Rather than throwing an Error, the resultant list of addresses should indicate that the address lookup did not produce a reverse DNS record, say by returning false, instead of the string address.
addresses: [ false ]
What do you see instead?
The second result (where the reverse record does not exist) produces:
There is no requirement that an IP address resolve to a DNS name, so this shouldn't throw an error, as it's not an exception state, it's that a record could not be found and that's a valid result from the DNS query. They're not the same thing.
Essentially, this makes debugging actual issues really hard, because catching all errors picks this up constantly where it shouldn't. The resolution is not expected to produce a record, and that's fine, so there should be a "not found" result of some sort.
The text was updated successfully, but these errors were encountered:
Version
v18.12.1
Platform
Linux live 5.4.0-132-generic #148-Ubuntu SMP Mon Oct 17 16:02:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
node:dns
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
This happens always as it is a design issue.
What is the expected behavior?
Rather than throwing an Error, the resultant list of addresses should indicate that the address lookup did not produce a reverse DNS record, say by returning
false
, instead of the string address.addresses: [ false ]
What do you see instead?
The second result (where the reverse record does not exist) produces:
Additional information
There is no requirement that an IP address resolve to a DNS name, so this shouldn't throw an error, as it's not an exception state, it's that a record could not be found and that's a valid result from the DNS query. They're not the same thing.
Essentially, this makes debugging actual issues really hard, because catching all errors picks this up constantly where it shouldn't. The resolution is not expected to produce a record, and that's fine, so there should be a "not found" result of some sort.
The text was updated successfully, but these errors were encountered: