DNS Lookup¶
Why do we need it?¶
As our main purpose is to check the availability of the given subjects, we make a DNS lookup to determine it.
How does it work?¶
Note
Want to read the code ? It’s here DNSLookup()
!
For domains¶
We request the NS
record for domains.
Warning
If none is found, we call the UNIX/C equivalent of getaddrinfo()
.
For IP¶
We request the PTR
record for the IP.
Warning
If none is found, we call the UNIX/C equivalent of gethostbyaddr()
.