DNS and subdomains · 02 Technique

DNS and subdomains: technique

The technique for analysing a domain’s DNS: basic records, reading SPF, DMARC and verification codes, subdomains from certificates and passive DNS, infrastructure, addresses behind CDNs, elements shared between domains.

  1. 01
    Read the basic records

    A, AAAA, MX, NS, TXT, SOA, CAA.

  2. 02
    Interpret the TXT records

    SPF lists who may send mail for the domain; DMARC shows who receives reports; verification codes reveal the services used.

  3. 03
    Look for subdomains in certificates

    Certificate Transparency logs, including expired certificates.

  4. 04
    Consult passive DNS

    Historical subdomains and addresses, with the dates they were observed.

  5. 05
    Trace the infrastructure

    IP addresses, networks and hosting providers.

  6. 06
    Look behind the CDN

    Addresses from before services such as Cloudflare were used may point to the real server.

  7. 07
    Look for shared elements

    The same verification codes, mail servers or SPF services across several domains.

  8. 08
    Note sensitive subdomains

    Test environments, admin panels, forgotten services, without trying to access them.

terminale
dig MX example.com +short
dig TXT example.com +short
dig TXT _dmarc.example.com +short
dig -x 192.0.2.10 +short
curl -s "https://crt.sh/?q=%25.example.com&output=json"

Every shared element is a possible pivot towards other domains of the same network.

Continue with
03 Sources

DNS and subdomains: sources

The sources for DNS research: authoritative servers, Certificate Transparency logs, passive DNS, search engines, web archives, SPF and DMARC records.

↑