October 2018
Intermediate to advanced
528 pages
12h 33m
English
After we get the DNS server information, the next step is to find out the IP address of a hostname. To help us out on this matter, we can use the following host command-line tool to look up the IP address of a host from a DNS server:
# host hackthissite.org
By default, the host command will look for the A, AAAA, and MX records of a domain. To query for any records, just give the -a option to the command:
# host -a hackthissite.org
Trying "hackthissite.org"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32115
;; flags: qr rd ra; QUERY: 1, ANSWER: 12, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;hackthissite.org. IN ANY
;; ANSWER SECTION:
hackthissite.org. 5 IN A 198.148.81.135
hackthissite.org. 5 IN A 198.148.81.139
hackthissite.org. ...Read now
Unlock full access