marc:linux:dns
DNS in Linux
Using host to query information from a DNS server:
Using host you are able to get information from DNS.
Example 1
host google.com google.com has address 142.250.179.206 google.com has IPv6 address 2a00:1450:400e:803::200e google.com mail is handled by 30 alt2.aspmx.l.google.com. google.com mail is handled by 20 alt1.aspmx.l.google.com. google.com mail is handled by 50 alt4.aspmx.l.google.com. google.com mail is handled by 10 aspmx.l.google.com. google.com mail is handled by 40 alt3.aspmx.l.google.com.
host verhaar.cc verhaar.cc has address 83.82.126.48
This shows that google has ipv4 and ipv6 records and multiple mailserver records. Verhaar.cc has an ipv4 record.
Example 2
host www.verhaar.cc www.verhaar.cc is an alias for verhaar.cc. verhaar.cc has address 83.82.126.48
This shows the alias record in DNS.
| Type | Request For Comments(RFC) | Used for |
|---|---|---|
| A | RFC 1035 | Address record for IPv4 address |
| AAAA | RFC 3596 | Address record for IPv6 address |
marc/linux/dns.txt · Last modified: by 127.0.0.1
