HTTPS can expose a fake destination, but it does not secure the DNS records themselves. An attacker with a trusted certificate for the hijacked hostname may still establish an encrypted connection that passes ordinary browser checks.
Can HTTPS protect you from DNS hijacking?
HTTPS can protect you from many DNS redirection attacks, provided certificate checks work and you do not bypass warnings. Your browser checks the identity of the server it reaches, rather than accepting a DNS answer as sufficient proof.
If a false DNS answer sends you to an attacker’s server, that server still needs a certificate your browser accepts for the hostname you intended to visit. Without one, the HTTPS connection should fail validation.
A trusted certificate can sometimes be obtained through control of a domain’s DNS or validation infrastructure. HTTPS cannot, by itself, tell the rightful operator apart from an attacker who has acquired the required certificate and private key.
What is DNS hijacking?
The Domain Name System, or DNS, helps turn a hostname such as shop.example into an IP address a device can connect to. A recursive resolver looks up or retrieves that information; authoritative nameservers publish the domain’s records.
In a DNS hijack, an attacker changes the resolution path or records so traffic reaches an unintended destination. A compromised router, resolver, DNS-management account or domain registry can create different versions of this problem. Cache poisoning has a similar outcome but involves forged information in a resolver’s cache.
A copied login page may then appear at the hostname a visitor expected. Checking the spelling of the address helps against lookalike domains, but it does not reveal every attack against the real domain’s DNS.
Two checks with different jobs
DNS locates a destination. HTTPS checks the connection to that destination. Changing where a browser connects does not automatically give the attacker the certificate and key needed to impersonate the requested hostname.
How does HTTPS help when DNS points to the wrong server?
HTTPS uses Transport Layer Security (TLS) to protect a web connection against eavesdropping and tampering. In normal certificate-based web browsing, the server also presents a certificate and proves possession of the corresponding private key.
The browser checks the certificate’s trust chain, validity and identity. The TLS service-identity standard describes how that identity is matched to the intended service. For a website, the relevant name is the hostname the browser requested.
- You request an HTTPS websiteFor this example, imagine visiting
https://shop.example. The name remains the one the browser must authenticate. - DNS supplies an attacker-controlled addressThe browser connects there, but the attacker does not inherit the legitimate website’s certificate or private key.
- The browser checks the certificateA certificate for another hostname, an expired certificate or an untrusted certificate should fail normal validation.
- The connection is rejected or a warning appearsIf a browser permits an exception and you accept it, you remove an important part of this safeguard.
This is why DNS redirection alone is often insufficient to silently intercept a correctly validated HTTPS session. It can still cause an outage or connection failure.
When can HTTPS fail to protect you?
An attacker obtains a trusted certificate
Certificate authorities check domain control before issuing domain-validated certificates. Let’s Encrypt’s documentation, for example, describes checks involving a DNS TXT record or a file served from the domain.
If an attacker gains enough control over the relevant DNS or infrastructure, they may be able to satisfy a validation check. This is not automatic after every DNS attack: the outcome depends on the control obtained and the authority’s checks.
With an accepted certificate for the exact hostname and its private key, the attacker can establish their own TLS connection. Encryption then protects the traffic on that connection; it does not prove that the person operating the server is the rightful business.
You visit a different, malicious domain
A phishing site can obtain a certificate for its own domain. That is distinct from hijacking the genuine domain’s DNS. Chromium explains that an HTTPS indicator does not establish website trustworthiness. A secure connection can still lead to a fraudulent site.
You override warnings or your device’s trust is changed
Browser warnings deserve attention. A compromised device or an added trusted root certificate can also change which certificates it accepts. HTTPS depends on the client’s trust settings and validation remaining trustworthy.
| Scenario | Likely HTTPS outcome | What it means |
|---|---|---|
| False DNS answer; no acceptable certificate | Certificate validation fails. | The browser can detect the impersonation. |
| False DNS answer; accepted certificate and key | The connection may validate. | The attacker may impersonate the hostname. |
| Phishing on a different domain | HTTPS may work normally. | Encryption does not establish legitimacy. |
| Attacker only forwards encrypted traffic | TLS can remain end to end. | Forwarding packets alone does not decrypt them. |
HTTP Strict Transport Security (HSTS) strengthens HTTPS use. Once a browser knows a host’s HSTS policy, it uses HTTPS and must not let the user bypass certificate errors. Preloading can provide that protection before a first visit. HSTS does not independently identify an attacker presenting an otherwise accepted certificate.
What does Google’s recent DNS hijacking disclosure show?
On 6 October 2026, Google described hijacks involving .gh, .sl and .as, the country-code namespaces for Ghana, Sierra Leone and American Samoa.
Google said attackers compromised third-party registries, changed authoritative DNS records and obtained unauthorised HTTPS certificates covering several Google domains and domains belonging to other organisations. It said its own systems were not compromised and that it had no reason to believe the issuing certificate authorities had acted incorrectly.
Chrome blocked the identified certificates through CRLSets, and Google worked with the authorities to revoke certificates covering its properties. Google said Chrome users needed no action for those mitigations.
Why the distinction matters
This incident shows that HTTPS certificates can become part of a DNS hijack. Google also cautioned that browser-side interventions might not identify every affected domain and would not reliably protect users of other browsers.
How do DNSSEC, encrypted DNS and VPNs differ?
DNSSEC checks signed DNS data
DNSSEC adds authentication and integrity checks to DNS. With a valid chain of trust and working validation, a resolver can reject forged or altered signed answers.
It does not encrypt lookups. It also cannot guarantee that a legitimately signed record is safe if an attacker controls the signing keys or authorised management process. Unsigned domains do not gain the same assurance simply because a resolver supports DNSSEC.
DNS over HTTPS protects the connection to a resolver
DNS over HTTPS (DoH) encrypts DNS messages between a client and its chosen resolver. DNS over TLS (DoT) protects that connection using TLS as well. Correctly authenticated encrypted DNS helps against observation and alteration on that network path.
The resolver still needs to be trustworthy. Encrypting a false answer does not make it correct, and encrypted transport does not repair a domain’s compromised authoritative records. DoH and DNSSEC can be used together.
A VPN protects traffic carried through its tunnel
A VPN can reduce local-network interference when DNS requests travel through its encrypted tunnel. Protection depends on the app, routing, resolver and configuration; browser-level encrypted DNS can use a different resolver.
A VPN cannot fix a hijacked registry or guarantee that an upstream DNS answer is correct. HTTPS certificate validation still matters when the browser reaches the website. Choosing a VPN is therefore a separate decision from securing a domain’s DNS.
| Control | Primary role | Key limitation |
|---|---|---|
| HTTPS | Authenticates and encrypts a web connection. | Accepted attacker certificates can undermine impersonation checks. |
| HSTS | Enforces HTTPS and strict error handling. | Does not reject every unauthorised certificate. |
| DNSSEC | Validates signed DNS data. | Does not encrypt queries or secure stolen signing keys. |
| DoH / DoT | Protects transport to a resolver. | Does not guarantee a correct answer. |
| VPN | Encrypts traffic inside its tunnel. | Does not restore a hijacked domain. |
What should website visitors do?
Our practical checklist starts with respecting the checks your browser already performs:
- Keep your browser and operating system updated. Updates maintain their security features and trust infrastructure.
- Do not bypass certificate warnings to sign in or pay. Check the service through an independently known contact route.
- Use known addresses and check the hostname. This helps with lookalike phishing, although genuine-domain hijacks need other defences.
- Protect your device and router. Maintain updates, use strong administration credentials and investigate unexpected DNS-setting changes.
- Treat unusual login requests cautiously. If you entered a password on a suspicious page, change it through a known-good route and review active sessions.
What should domain owners do?
The NCSC’s DNS hijacking guidance identifies registrar security, DNS monitoring and certificate monitoring as important controls. A practical starting point is to:
- Enable multifactor authentication on registrar and DNS-provider accounts, and audit who can change records.
- Monitor nameserver, address and mail-record changes, plus unexpected certificate issuance in Certificate Transparency logs.
- Consider suitable registry-lock protections and keep domain contacts and recovery records current.
- Use DNSSEC where appropriate and secure its signing keys and management processes.
- Maintain a recovery plan with your registrar, DNS provider and certificate authorities.
If suspicious certificates were issued, restoring DNS alone is not sufficient. Investigate issuance, arrange revocation and assess the exposure during the hijack.
Frequently asked questions
Does HTTPS stop DNS hijacking?
HTTPS does not prevent DNS records from being changed. It can block access to an impersonating server if that server cannot present a trusted certificate for the exact hostname you requested. This protection depends on certificate validation working and warnings being respected.
Can a hijacked website still use HTTPS?
Yes. If an attacker obtains a trusted certificate for the hijacked hostname and controls its private key, the connection may pass ordinary certificate checks until the certificate is blocked, revoked or otherwise rejected. HTTPS can then encrypt your connection to the attacker.
Does DNS over HTTPS prevent all DNS hijacking?
No. DNS over HTTPS protects the connection to your chosen resolver. It does not guarantee that the resolver’s answer is correct or repair compromised authoritative DNS records.
Is DNSSEC the same as HTTPS?
No. DNSSEC authenticates signed DNS data when a valid chain of trust is checked. HTTPS protects a web connection. DNSSEC does not encrypt DNS queries, and HTTPS does not sign DNS records.
Can a VPN prevent DNS hijacking?
A correctly configured VPN can protect DNS traffic carried inside its tunnel from interference on the local network. It cannot guarantee correct answers from a compromised resolver or fix a hijacked domain’s authoritative records.
Does HSTS protect against an attacker with a valid certificate?
HSTS enforces HTTPS for a known HSTS host and prevents users from bypassing certificate errors. It does not independently recognise an attacker who presents an otherwise acceptable certificate for that hostname.
