snippetbashTip
host — Lookup Domain Name Server. See also: `dig`, `resolvectl`, `nslookup`. More information: <https://man
Viewed 0 times
servercommandlookupdomainnameclihostsee
Problem
How to use the
host command: Lookup Domain Name Server. See also: dig, resolvectl, nslookup. More information: <https://manned.org/host>.Solution
host — Lookup Domain Name Server. See also: dig, resolvectl, nslookup. More information: <https://manned.org/host>.Lookup A, AAAA, and MX records of a domain:
host {{domain}}Lookup a field (CNAME, TXT, ...) of a domain:
host -t {{field}} {{domain}}Reverse lookup an IP:
host {{ip_address}}Specify an alternate DNS server to query:
host {{domain}} {{8.8.8.8}}Code Snippets
Lookup A, AAAA, and MX records of a domain
host {{domain}}Lookup a field (CNAME, TXT, ...) of a domain
host -t {{field}} {{domain}}Reverse lookup an IP
host {{ip_address}}Specify an alternate DNS server to query
host {{domain}} {{8.8.8.8}}Context
tldr-pages: common/host
Revisions (0)
No revisions yet.