关于linux:DNS-records-in-Linux

61次阅读

共计 1068 个字符,预计需要花费 3 分钟才能阅读完成。

罕用的各种 dns 记录

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 记录

Using Linux Dig to Query DNS Records

  • Simple lookup : dig hackersgarage.com
  • Lookup Name Servers: dig @8.8.8.8 hackersgarage.com NS
  • Lookup using external DNS Server: dig @8.8.8.8 hackersgarage.com
  • Lookup MX record: dig @8.8.8.8 hackersgarage.com MX
  • Lookup CNAME record: dig @8.8.8.8 hackersgarage.com CNAME
  • Look TXT record (e.g will it will return SPF records, google verification methods): dig @8.8.8.8 hackersgarage.com TXT
正文完
 0