> For the complete documentation index, see [llms.txt](https://www.marialc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.marialc.com/pentesterlab-labs/recon-badge/recon_16-bind-version.md).

# recon\_16 (bind version)

View the exercise here: [PentesterLab: Recon 16](https://pentesterlab.com/exercises/recon_16/course)

### **OBJECTIVE**

For this challenge, your goal is to get the version of bind used by **z.hackycorp.com**.

### **BIND**

[Bind](https://www.isc.org/bind/) is one of the most common DNS servers used. If you know how to ask, it will reveal its version.

### **SOLUTION**

{% hint style="success" %}

```bash
dig @z.hackycorp.com version.bind CHAOS TXT
```

* **`dig`**: The tool used for querying DNS.
* **`@z.hackycorp.com`**: Specifies the DNS server (`z.hackycorp.com`) to query.
* **`version.bind`**: This asks for the version of the DNS server.
* **`CHAOS`**: The DNS class used for special queries like retrieving server information (in this case, the version).
* **`TXT`**: Requests the response as a text record (where the version info is stored).
  {% endhint %}

<figure><img src="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2Fy1lVWAQDo1WW6q1ppmAD%2Fimage.png?alt=media&amp;token=b9f4e32b-cd9e-4dc2-9299-9842e461f7f5" alt="" width="563"><figcaption></figcaption></figure>
