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:

  1. Request the NS record.
  2. If not found, request the A record.
  3. If not found, request the AAAA record.
  4. If not found, request the CNAME record.
  5. 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.