# Domain Name System (DNS)

## **Tipos comunes de registros DNS**

* A = registro que contiene la dirección IP de un dominio.
* AAAA = registro que contiene la dirección IPv6 de un dominio.
* CNAME = reenvía un dominio o subdominio a otro dominio, no proporciona una dirección IP.
* MX = dirige el correo a un servidor de correo electrónico.
* TXT = permite que un administrador pueda almacenar notas de texto en el registro.
* NS = almacena el servidor de nombres para una entrada DNS.
* SOA = almacena la información del administrador sobre un dominio.
* SRV = especifica un puerto para servicios específicos.
* PTR = proporciona un nombre de dominio en búsquedas inversas.

## **nslookup**

nslookup: Name System Lookup.

```shell
nslookup
set type=any
<domain-name>
```

```shell
nslookup
server <dns-server>
set type=any
<domain-name>
```

```shell
nslookup -q=ANY <domain-name> <dns-server>
```

* \<domain-name> = nombre de dominio.
* \<dns-server> = servidor DNS.

## **dig**

dig: Domain Information Groper.

```shell
dig any <domain-name>
```

```shell
dig any <domain-name> @<dns-server>
```

* \<domain-name> = nombre de dominio.
* \<dns-server> = servidor DNS.

## DNSdumpster

* <https://dnsdumpster.com/>

## DNSRecon

```shell
dnsrecon -d <domain-name>
```

## Nuclei

```sh
nuclei -u <domain-name> -t dns -ts -silent
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pentesting.mrw0l05zyn.cl/reconocimiento-y-recoleccion-de-informacion/domain-name-system-dns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
