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?
For domains
In order:
Request the
NS
record.If not found, request the
A
record.If not found, request the
AAAA
record.If not found, request the
CNAME
record.If not found, request the
DNAME
record.
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()
or getaddrinfo()
.
How to use it?
It is activated by default but if not simply change
lookup:
# Activates the usage of the DNS lookup.
dns: False
to
lookup:
# Activates the usage of the DNS lookup.
dns: True
into your personal .PyFunceble.yaml
or use the --no-whois
argument from the CLI to reactivate it.