Do a reverse lookup for IPv6

Get the PTR record for an IPv6 address. -x builds the reversed nibble name for you

dig -x 2606:4700:4700::1111 +short

tool
dig11 commands
tags
digdnsnetwork

More dig commands

  • for r in example.com _dmarc.example.com sel._domainkey.example.com; do dig +short TXT $r; done

    Get SPF, DMARC and DKIM TXT records in one loop for a mail audit

  • dig +short CAA example.com

    Show which CAs may issue certificates. With no CAA record, any CA can issue

  • dig +short SRV _sip._tcp.example.com

    Get priority, weight, port and target for a service. AD, SIP and XMPP use these records

  • dig +tcp +ttlunits +noall +answer example.com @8.8.8.8

    Check that TCP/53 works. +ttlunits prints TTL as 1h or 30m instead of raw seconds

  • dig +noall +answer example.com

    Hide headers and stats and print only the answer. Good for scripts and diffs

all 11 dig commands