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

# Configure DNS over HTTPS and DNS over TLS

> Set up DNS over HTTPS and DNS over TLS with Gcore Public DNS using the DoH URL and DoT hostname gcoredns.com.

Without encrypted DNS, anyone on the network path — a public Wi-Fi operator, ISP, or network attacker — can observe which domains are queried and forge responses. [Gcore Public DNS](/dns/public-dns) supports two encrypted protocols that prevent this. DNS queries are anonymized and processed under EU jurisdiction, and are not shared with third parties except as required by law.

* **DoH** uses HTTPS on port `443`. Because it shares the port with regular web traffic, it works on networks that block non-standard ports.
* **DoT** uses a dedicated TLS connection on port `853`. It is easier to monitor or filter at the network boundary and to configure at the OS and router level.

## Resolver endpoints

Use the following addresses to configure DoH or DoT.

| Protocol | Value |
| - | - |
| DoH URL | `https://gcoredns.com/dns-query` |
| DoT hostname | `gcoredns.com` |
| DoT port | `853` (TCP) |
| DoT URI | `tls://gcoredns.com` |
| Android Private DNS | `gcoredns.com` |

## Configure DoH or DoT
