Host
El comando host es una utilidad simple para realizar búsquedas de DNS. Normalmente se utiliza para convertir nombres a direcciones IP y viceversa.
Sin parámetros
┌──(nato㉿kali)-[~]
└─$ host nmap.org
nmap.org has address 50.116.1.184
nmap.org mail is handled by 5 alt1.aspmx.l.google.com.
nmap.org mail is handled by 10 aspmx3.googlemail.com.
nmap.org mail is handled by 1 aspmx.l.google.com.
nmap.org mail is handled by 10 aspmx2.googlemail.com.
nmap.org mail is handled by 5 alt2.aspmx.l.google.com.┌──(nato㉿kali)-[~]
└─$ host 50.116.1.184
184.1.116.50.in-addr.arpa domain name pointer ack.nmap.org.En modo detalle
┌──(nato㉿kali)-[~]
└─$ host -v nmap.org
Trying "nmap.org"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61082
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;nmap.org. IN A
;; ANSWER SECTION:
nmap.org. 5 IN A 50.116.1.184
Received 42 bytes from 192.168.23.2#53 in 8 ms
Trying "nmap.org"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19687
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;nmap.org. IN AAAA
Received 26 bytes from 192.168.23.2#53 in 28 ms
Trying "nmap.org"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39893
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;nmap.org. IN MX
;; ANSWER SECTION:
nmap.org. 5 IN MX 10 aspmx3.googlemail.com.
nmap.org. 5 IN MX 1 aspmx.l.google.com.
nmap.org. 5 IN MX 10 aspmx2.googlemail.com.
nmap.org. 5 IN MX 5 alt2.aspmx.l.google.com.
nmap.org. 5 IN MX 5 alt1.aspmx.l.google.com.
Received 159 bytes from 192.168.23.2#53 in 32 msEspecificar el tipo de consulta
Registro ns
Registro SOA
Registro TXT
Registro a
Registro aaaa
Registro mx
Registro CNAME
Forzar consultas
IPv4
IPv6
Consultar Registros SOA
Comprobar número de reintentos
Enumerar todos los hosts
Last updated