> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DNS Server for Hostname Resolution

> Configure a custom DNS server for DNS Hostname SmartGroup resolution

When a Distributed Cloud Firewall (DCF) rule attempts a DNS match because of the
included DNS Hostname SmartGroup, the Aviatrix Default DNS server is used to
resolve the DNS, unless you configure a custom DNS Server.

> [!NOTE]
>
> You should select the DNS server to use before [adding a DNS Hostname
> SmartGroup](https://docs.aviatrix.com/docs/cloud/resource-groups/smartgroup/smartgroups-reference.md#create-new-smartgroup-reference)
> to a DCF rule.

To select a DNS server:

1. In Aviatrix PaaS, go to *Groups > Settings*.
2. Select one of the following on the DNS Server for Hostname Resolution card:

* Gateway's Management DNS Server: This is the Aviatrix default DNS server.
* Custom DNS Servers: Enter one or more custom DNS server addresses (maximum is
  two) that will be updated for all enforcing gateways.

> [!NOTE]
>
> Ensure the correctness of the custom DNS server addresses before saving. Any
> valid IP address is accepted by this field, even if it is not the IP address
> of a DNS server.

2. Click *Save*.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.