Domain Name Query Method and Related Device
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorJiankang Su
Life of this patent
Estimating the term…
Abstract
A domain name query method and a related device. The method includes: An HTTPDNS server receives an HTTP request packet sent by a terminal device; the HTTPDNS server constructs a DNS query packet based on the HTTP request packet, and sends the DNS query packet to an authoritative DNS server; receives a DNS reply packet sent by the authoritative domain name server; and constructs an HTTP reply packet based on the DNS reply packet, and sends the HTTP reply packet to the terminal device, where the HTTP reply packet carries the IP address of the to-be-accessed site.
Claims16
A domain name query method, comprising:
- receiving, by a hypertext transfer protocol domain name system (HTTPDNS) server, a hypertext transfer protocol (HTTP) request packet sent by a terminal device, wherein the HTTP request packet carries a to-be-accessed domain name and scheduling information of the terminal device;
- constructing, by the HTTPDNS server, a domain name system DNS query packet based on the HTTP request packet, and sending the DNS query packet to an authoritative domain name server, wherein the DNS query packet carries the to-be-accessed domain name and the scheduling information;
- receiving, by the HTTPDNS server, a DNS reply packet sent by the authoritative domain name server, wherein the DNS reply packet carries an IP address of a to-be-accessed site, and the to-be-accessed site is an edge cache node that is selected by the authoritative domain name server from a plurality of sites of the to-be-accessed domain name and that corresponds to the scheduling information;
- and
- constructing, by the HTTPDNS server, an HTTP reply packet based on the DNS reply packet, and sending the HTTP reply packet to the terminal device, wherein the HTTP reply packet carries the IP address of the to-be-accessed site.
A domain name query method, comprising:
- receiving, by an authoritative domain name server, a DNS query packet sent by an HTTPDNS server, wherein the DNS query packet carries a to-be-accessed domain name and scheduling information;
- selecting, by the authoritative domain name server based on the scheduling information, an edge cache node corresponding to the scheduling information from a plurality of edge cache nodes of the to-be-accessed domain name as a to-be-accessed site;
- and
- sending, by the authoritative domain name server, a DNS reply packet to the HTTPDNS server, wherein the DNS replay packet carries an IP address of the to-be-accessed site.
An HTTPDNS server, comprising a processor, a memory, wherein the memory is configured to store an instruction, and the processor is configured to invoke the instruction in the memory to:
- receive an HTTP request packet sent by a terminal device, wherein the HTTP request packet carries a to-be-accessed domain name and scheduling information of the terminal device;
- construct a DNS query packet based on the HTTP request packet;
- send the DNS query packet to an authoritative domain name server, wherein the DNS query packet carries the to-be-accessed domain name and the scheduling information;
- receive a DNS reply packet sent by the authoritative domain name server, wherein the DNS reply packet carries an IP address of a to-be-accessed site, and the to-be-accessed site is an edge cache node that is selected by the authoritative domain name server from a plurality of edge cache nodes of the to-be-accessed domain name and that corresponds to the scheduling information;
- construct an HTTP reply packet based on the DNS reply packet;
- and
- send the HTTP reply packet to the terminal device, wherein the HTTP reply packet carries the IP address of the to-be-accessed site.
An authoritative domain name server, comprising a processor, a memory, wherein the memory is configured to store an instruction, and the processor is configured to invoke the instruction in the memory to:
- receive a DNS query packet sent by an HTTPDNS server, wherein the DNS query packet carries a to-be-accessed domain name and scheduling information;
- select, based on the scheduling information, an edge cache node corresponding to the scheduling information from a plurality of edge cache nodes of the to-be-accessed domain name as a to-be-accessed site;
- and
- send a DNS reply packet to the HTTPDNS server, wherein the DNS reply packet carries an IP address of the to-be-accessed site.
Dependencies are inferred from the claim text.