> For the complete documentation index, see [llms.txt](https://b4zh.gitbook.io/b4zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://b4zh.gitbook.io/b4zh/nmap-1/hostdiscovery-2.md).

# HOSTDISCOVERY 2

## &#x20;Parámetros

`-PO` = Permite enviar peticiones de tipo PING a través de múltiples protocolos. Los argumentos que recibe este parámetro son los identificadores numéricos de cada protocolo asignados por la IANA:

```
ICMP (INTERNET CONTROL MESSAGE PROTOCOL) = 1
IGMP (INTERNET GROUP MANAGEMENT PROTOCOL) = 2
TCP (TRANSMISSION CONTROL PROTOCOL) = 6
EGP (EXTERIOR GATEWAY PROTOCOL) = 8
UDP (USER DATAGRAM PROTOCOL) = 17
IPv6 (INTERNET PROTOCOL version 6) = 41
ESP (ENCAPSULATING SECURITY PAYLOAD) = 50
AH (AUTHENTICATION HEADER) = 51
ICMPv6 (Internet Control Message Protocol for IPv5) = 58
OSPF (Open Shortest Path First) = 89
SCTP (Stream Control Transmission Protocol) = 132
```

```bash
nmap -PO1,6 172.18.0.0/24
```

***

`-n` = desactiva la resolución DNS. Usado para mejorar la velocidad del escaneo.

```bash
nmap -n 172.18.0.0/24
```

`-R` = forzamos la resolución DNS (Default?).

```bash
nmap -R 172.18.0.3
```

***

`--dns-servers` = indicarle a nmap que servidores DNS queremos usar cuando intente resolver nombres DNS.

```bash
nmap --dns-servers 1.1.1.1 scanme.nmap.org
```

***

`--system-dns` = nmap hace la resolución a través del servidor DNS local del SO.

```bash
nmap --system-dns 172.18.0.3
```

***

`--traceroute` = permite ver la ruta que toman los paquetes hasta llegar al objetivo.

```bash
nmap --traceroute scanme.nmap.org
```
