host [ -ClnrTvd ]
[ -c class ]
[-N ndots ]
-R rr ]-a| -t type ]-w|-W sec ] name | ip.ip.ip.ip
[ Domain Name Server ]
Contact DNS to convert names to IP addresses and vice versa.
name - domain name, dotted-decimal IPv4 address or a colon-delimited IPv6 address.
server - name server to query instead of servers in /etc/resolv.conf.
-t type |
% host hicom.net hicom.net has address 208.245.180.2 % host -av hicom.net Trying "hicom.net" ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28329 ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 3 ;; QUESTION SECTION: ;hicom.net. IN ANY ;; ANSWER SECTION: hicom.net. 172763 IN A 208.245.180.2 hicom.net. 171874 IN MX 35 mailns.hicom.net. hicom.net. 171874 IN MX 5 mail.hicom.net. hicom.net. 171874 IN MX 15 mail2.hicom.net. ;; ADDITIONAL SECTION: mail.hicom.net. 171874 IN A 208.245.180.8 mail2.hicom.net. 171874 IN A 208.245.180.4 mailns.hicom.net. 171874 IN A 208.245.180.2 Received 157 bytes from 192.168.2.1#53* in 41 ms % host -t NS hicom.net hicom.net name server AUTH10.NS.WCOM.COM. hicom.net name server AUTH20.NS.WCOM.COM. hicom.net name server ns1.hicom.net. hicom.net name server ns2.hicom.net. % host -t MX hicom.net hicom.net mail is handled by 15 mail2.hicom.net. hicom.net mail is handled by 35 mailns.hicom.net. hicom.net mail is handled by 5 mail.hicom.net.
> host -v -n slammer-6gb
Trying "slammer-6gb.Germans"
Trying "slammer-6gb"
Host slammer-6gb not found: 3(NXDOMAIN)
Received 104 bytes from 192.168.2.1#53 in 18 ms
% host -t txt spamassassin.org
spamassassin.org descriptive text "v=spf1 -all"
% host -t txt 3.2.3.updates.spamassassin.org
3.2.3.updates.spamassassin.org descriptive text "895075"
% host -t txt 3.3.3.updates.spamassassin.org
3.3.3.updates.spamassassin.org descriptive text "1902056"
% host -t txt 3.4.3.updates.spamassassin.org
3.4.3.updates.spamassassin.org is an alias for 3.3.3.updates.spamassassin.org.
3.3.3.updates.spamassassin.org descriptive text "1902056"
from hackertarget.com/find-dns-host-records/
spamassassin.org,209.188.14.132
sa-update.spamassassin.org,64.142.56.146
traps.spamassassin.org,76.191.162.2
host [-aCdlriTwv] [-c class] [-N ndots ] [-t type] [-W time]
[-R number] hostname [server]
-a is equivalent to -v -t *
-c specifies query class for non-IN data
-C compares SOA records on authoritative nameservers
-l lists all hosts in a domain, using AXFR
-i IP6.INT reverse lookups
-N changes the number of dots allowed before root lookup is done
-r disables recursive processing
-R specifies number of retries for UDP packets
-t specifies the query type
-T enables TCP/IP mode
-d is equivalent to -v
-v enables verbose output
-w specifies to wait forever for a reply
-W specifies how long to wait for a reply
-4 use IPv4 query transport only
-6 use IPv6 query transport only
-s a SERVFAIL response should stop query
Host 2.3.spamassassin.org not found: 9(NOTAUTH) ; Transfer failed.
/etc/resolv.conf
cat /etc/resolv.conf # macOS Notice # This file is not consulted for DNS hostname resolution, address # resolution, or the DNS query routing mechanism used by most processes on this system. # To view the DNS configuration used by this system, use: # scutil --dns # SEE ALSO # dns-sd(1), scutil(8) # This file is automatically generated. search MYNETWORKSETTINGS.COMverizon router nameserver 192.168.1.1