UniFi Gateway - DNS
DNS provides various custom DNS record types that can be resolved by devices.
Requirements
- An independent UniFi Gateway or UniFi Cloud Gateway
- The UniFi Gateway is used as the DNS server on the virtual network(s)
DNS Record Types
Several different record types can be created:
- Host (A) - Resolve a domain name to an IPv4 address.
- Host (AAAA) - Resolve a domain name to an IPv6 address.
- Mail (MX) - Mail Exchange entry for a domain name.
- Text (TXT) - Text entry for a domain name.
- Service (SRV) - Service entry for a domain name.
-
Forward - Forward all queries for a specific domain to a different DNS server.
- When using forward, consider that the UniFi Gateway needs to be able to reach the DNS server. If the DNS server is reachable over a VPN Client connection, add a static route for the DNS server's IP address / subnet with the VPN server's IP address or VPN Client interface as the next hop.
Note: CNAME records are currently not available but will be added in a future release.