Use built-in authoritative zone in HTTPDNS to recover from public DNS resolution failures

Updated at:

The Authoritative Zone feature of Alibaba Cloud HTTPDNS lets you fail over DNS resolution for faulty domain names and restore your services when public DNS resolution is unavailable for your app or IoT devices.

Use cases

Public DNS resolution fails for your service domain names or for third-party domain names that your services depend on:

  • The domain name is hijacked on the public network.

  • The ISP recursive DNS is unavailable.

  • The public authoritative DNS that hosts the domain name fails.

How it works

Failover and recovery within seconds

When public DNS resolution fails for a critical service domain name or public domain name that your app or IoT devices depend on, the clients cannot obtain the IP address of the domain name. In this case, use the Authoritative Zone feature to restore DNS resolution:

  • Quick switchover: When the failure occurs, add DNS records for the faulty domain name to the authoritative zone of Alibaba Cloud HTTPDNS.

  • Instant recovery: Because the built-in authoritative zone is an internal priority rule within Alibaba Cloud HTTPDNS, the change takes effect immediately for all devices that send DNS queries to Alibaba Cloud HTTPDNS over an encrypted protocol with your Account ID. Traffic is quickly redirected, so your services recover after the switchover.

图片 1

Prioritized internal matching

When an app or IoT device sends a DNS query to Alibaba Cloud HTTPDNS, the system first checks whether the domain name is available in the authoritative zone of Alibaba Cloud HTTPDNS.

  • Available: If the requested domain name matches a record configured in the built-in authoritative zone, Alibaba Cloud HTTPDNS returns the IP address configured in the authoritative zone to the device. This bypasses the traditional recursive query and avoids network latency and cache refresh delays.

  • Not available: For a domain name that is not configured in the authoritative zone, Alibaba Cloud HTTPDNS acts as a recursive resolver and performs a standard recursive query (root nameserver → TLD nameservers → authoritative nameservers) to obtain and return the IP address.

Prerequisites

Before you start, make sure the following conditions are met:

  • Alibaba Cloud HTTPDNS is activated.

  • Your app or IoT devices are connected to Alibaba Cloud HTTPDNS over an encrypted protocol.

  • You have obtained the dedicated Account ID, which is used to set the effective scope of DNS records.

If the service has not been activated or encrypted-protocol access has not been completed, start from Step 1. If access is already completed, start from Step 2.

Procedure

Step 1: Access Alibaba Cloud HTTPDNS

  1. Activate the service on the Alibaba Cloud DNS-HTTPDNS page.

  2. Go to HTTPDNS > Access Configuration > Create AccessKey Pair to add an AccessKey pair, and select Method 1: SDK-based access. For more information, see Access configuration.

Step 2: Configure the authoritative zone

Add the faulty domain name to the built-in authoritative zone and point it to the target IP address.

  1. Add a domain name: On the HTTPDNS - Authoritative Zone page, click Add Zone to add the faulty domain name.

  2. Add DNS records: In the Actions column, click Settings. On the settings page, click Add Record and use the target IP address of the faulty domain name as the record value.

    Note

    If you are not sure of the target IP address for the affected domain, use the HTTPDNS query logs feature to find the historical normal response IP address for that domain, and use it as the record value.

  3. Set the effective scope: Click Effective Scope in the Actions column of the target domain name. On the Zone Settings page, select your Account ID as the effective scope, and submit the form.

Step 3: Verify resolution recovery

Confirm from both DNS traffic analysis and your own services that resolution has recovered.

  1. Analyze resolution traffic:

    1. Go to HTTPDNS - Query Logs.

    2. Check whether the Resolution Result of the faulty domain name has returned to normal. If the response IP address is the one configured in built-in authoritative zone, the configuration has taken effect.

  2. Check your services: Verify that the failure has been resolved and that your services are restored.

Important

After public DNS resolution is restored, evaluate whether to update or clean up the DNS record in the HTTPDNS authoritative zone. If it is kept for a long time, DNS queries for that domain will continue to return the IP configured in that record.