Skip to main content

Command Palette

Search for a command to run...

Learn DNS

Updated
•2 min read•View as Markdown
D

Owner of howtouselinux.com. I work as a Linux engineer for over 20 years. Now I am a technical blogger and Software Engineer. I enjoy sharing learning and contributing to open-source.

DNS records

Understanding PTR MX SRV SPF AAAA DNS Records

  • NS record - The Name Server record simply specifies the other name servers for the domain, or maps a domain name to that of the primary server for the zone.
  • A record The Address record holds the IP address of the name.
  • CNAME record The Canonical Name record is an alias field allowing you to specify more than one name for each TCP/IP address.
  • MX record The Mail Exchange record specifies the name of the host
    that processes mail for this domain.
  • HINFO record The Host record is the record that actually specifies
    the TCP/IP address for a specified host. All hosts that have static
    TCP/IP addresses should have an entry in this database.
  • PTR record Pointer records are used for reverse lookup entries. They specify the IP address in reverse order and the corresponding host
    name.

Dig DNS records

Using Linux Dig to Query DNS Records

  • Simple lookup : dig howtouselinux.com
  • Lookup Name Servers: dig howtouselinux.com NS
  • Lookup using external DNS Server: dig howtouselinux.com
  • Lookup MX record: dig howtouselinux.com MX
  • Lookup CNAME record: dig howtouselinux.com CNAME
  • Lookup TXT record (e.g will it will return SPF records, google verification methods): dig howtouselinux.com TXT

reference:

DNS port

Query DNS Txt Records with Dig Command

Linux dig DNS

More from this blog

Linux Skills

26 posts