# DNS options

There are several options that can be set to configure the DNS server that is used.\
Besides forcing NetExec to use ipv6 there is an option to set the dns server manually, set a dns timeout or to configure using tcp for dns resolution:

```bash
nxc <protocol> <target(s)> -u username -p password --dns-server <dns-server ip>
nxc <protocol> <target(s)> -u username -p password --dns-timeout <seconds>
nxc <protocol> <target(s)> -u username -p password --dns-tcp    # Use TCP for DNS
nxc <protocol> <target(s)> -u username -p password -6           # Enforce ipv6

```


---

# 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://www.netexec.wiki/getting-started/dns-options.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.
