CN111245972B - Domain name resolution method, device, medium and equipment - Google Patents

Domain name resolution method, device, medium and equipment Download PDF

Info

Publication number
CN111245972B
CN111245972B CN202010010131.3A CN202010010131A CN111245972B CN 111245972 B CN111245972 B CN 111245972B CN 202010010131 A CN202010010131 A CN 202010010131A CN 111245972 B CN111245972 B CN 111245972B
Authority
CN
China
Prior art keywords
domain name
dns
name resolution
server
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010010131.3A
Other languages
Chinese (zh)
Other versions
CN111245972A (en
Inventor
符立佳
苗辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Baishancloud Technology Co Ltd
Original Assignee
Guizhou Baishancloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Baishancloud Technology Co Ltd filed Critical Guizhou Baishancloud Technology Co Ltd
Priority to CN202010010131.3A priority Critical patent/CN111245972B/en
Publication of CN111245972A publication Critical patent/CN111245972A/en
Application granted granted Critical
Publication of CN111245972B publication Critical patent/CN111245972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a domain name resolution method, a device, a medium and equipment, which are used for reducing domain name resolution time and improving resolution efficiency. The method provided by the embodiment of the invention is applied to the authority server DNS of the registry, and comprises the following steps: receiving a domain name resolution request sent by a local domain name resolution server LDNS, wherein the domain name resolution request comprises a target domain name; querying an NS record, and determining a first domain name resolution server DNS with resolution authority for the target domain name as a target DNS; and sending the IP address of the target DNS to a local domain name resolution server LDNS. The domain name resolution efficiency is effectively improved, and the waiting time of netizens is reduced.

Description

Domain name resolution method, device, medium and equipment
The application is a split application of the application date 2016, 08 and 31, the application number 201610790427.5 and the invention and creation name of a CDN service processing method, related device and communication system.
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a CDN service processing method, related devices, and a communication system.
Background
The content delivery network (Content Delivery Network, abbreviated as CDN) is to add a new network architecture layer in the existing Internet to deliver the content of the website to the network edge closest to the user, so that the user can obtain the required content nearby, thereby solving the congestion condition of the Internet network and improving the response speed of the user for accessing the website.
In a general method, when a local domain name resolution server (Local Domain Name Server, abbreviated as LDNS) receives a domain name resolution request sent by a netizen client in a local area (e.g., beijing), the local domain name server (Local Domain Name Server, abbreviated as LDNS) sends the domain name resolution request to an authoritative domain name resolution server (Domain Name Server, abbreviated as DNS), during a process that the authoritative DNS sequentially accesses DNS levels through recursive resolution, the DNS feeds back an alias (cname) of the domain name to the LDNS, after the LDNS receives the cname, the LDNS obtains an IP address corresponding to the cname through recursive query again, and the LDNS feeds back the IP address to the netizen client, and the client accesses the IP address acquisition data. In the method, the final IP address is fed back to the client, at least two recursion resolutions are needed, the first time is that the authoritative DNS feeds back the alias (cname) of the domain name to the LDNS in the process of sequentially accessing each level of DNS through the recursion resolutions, and the second time is that the LDNS obtains the IP address corresponding to the cname through recursion inquiry after receiving the cname. The domain name resolution efficiency is lower, and the waiting time of netizens is increased.
Disclosure of Invention
The embodiment of the invention provides a processing method of CDN service, related equipment and a communication system. The method is used for reducing the domain name resolution time and improving the resolution efficiency.
In a first aspect, an embodiment of the present invention provides a method for processing a CDN service, where the method includes:
the method comprises the steps that a first domain name resolution server (DNS) receives a domain name resolution request of a local domain name resolution server (LDNS) of a target area, the domain name resolution request comprises a target domain name, the LDNS sends the domain name resolution request according to an IP address of the first DNS, the IP address of the first DNS is obtained by inquiring an NS record by an authoritative DNS of a registry and is sent to the LDNS, the NS record is used for indicating the first DNS with resolution authority for the target domain name, and the first DNS belongs to a CDN server of a first content distribution network.
The first DNS queries a domain name resolution record according to the target domain name to obtain an IP address of a first Web server in the target area, wherein the first Web server belongs to a first CDN server;
the first DNS sends the LDNS an IP address of the first Web server.
In one possible implementation, the NS record includes a hostname of the first DNS, the hostname having a mapping relationship with an IP address of the first DNS.
In a second aspect, an embodiment of the present invention provides a method for processing a CDN service, where the method includes:
the authority DNS of the registry receives a domain name resolution request sent by an LDNS of a target area, wherein the domain name resolution request comprises a target domain name;
the authoritative DNS of the registry queries an NS record according to the domain name resolution request to obtain the IP address of the first DNS, wherein the NS record is used for indicating the first DNS with resolution authority for the target domain name, and the first DNS belongs to a first CDN service provider;
the authority DNS of the registry sends an IP address of a first DNS to the LDNS according to the NS record, the IP address of the first DNS is used for sending a domain name resolution request to the first DNS by the LDNS, so that the first DNS queries a domain name resolution record according to the domain name resolution request to obtain an IP address of a first Web server in the target area, the first Web server belongs to a first CDN server, and the first DNS sends the IP address of the first Web server to the LDNS.
In one possible implementation, the method further includes:
when the first DNS fails, the authoritative DNS of the registry changes an NS record, and the changed NS record is used for indicating a second DNS with resolution authority for the target domain name, wherein the second DNS belongs to a second CDN server;
and the authoritative DNS of the registry sends the IP address of the second DNS to the LDNS according to the NS record.
In one possible implementation, the authoritative DNS for the registry alters NS records, including:
the authority DNS of the registry receives an externally input instruction;
and the authoritative DNS of the registry changes the NS record according to the instruction.
In one possible implementation, the NS record includes a plurality of DNS, the plurality of DNS belonging to different CDN servers, each DNS of the plurality of DNS having a different priority; the authoritative DNS for the registry alters NS records, including:
and the authority DNS switches the authority of domain name resolution from the first DNS to a second DNS through NS records according to the order of the priority from high to low, wherein the second DNS is the DNS with the highest priority level except the first DNS in the plurality of DNS.
In one possible implementation manner, the authoritative DNS of the registry queries an NS record according to the domain name resolution request to obtain the IP address of the first DNS, including:
the authoritative DNS of the registry queries NS records according to the domain name resolution request;
the authority DNS of the registry obtains a host name of the first DNS according to the NS record, wherein the host name and an IP address of the first DNS have a mapping relation;
and the authoritative DNS of the registry obtains the IP address of the first DNS according to the host name and the mapping relation.
In a third aspect, an embodiment of the present invention provides a domain name resolution server, including:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a domain name resolution request of a local domain name resolution server (LDNS) of a target area, the domain name resolution request comprises a target domain name, the domain name resolution request is sent by the LDNS according to an IP address of the domain name resolution server, the IP address is obtained after an authoritative DNS of a registry inquires an NS record and is sent to the LDNS, the NS record is used for indicating a first DNS with resolution authority for the target domain name, and the first DNS belongs to a first Content Distribution Network (CDN) server;
the query module is used for querying a domain name resolution record according to the target domain name received by the receiving module to obtain an IP address of a first Web server in the target area, wherein the first Web server belongs to a first CDN service provider;
and the sending module is used for sending the IP address of the first Web server inquired by the inquiring module to the LDNS.
In a fourth aspect, an embodiment of the present invention provides an authoritative domain name resolution server, including:
the receiving module is used for receiving a domain name resolution request sent by the LDNS of the target area, wherein the domain name resolution request comprises a target domain name;
the query module is used for querying an NS record according to the domain name resolution request received by the receiving module to obtain the IP address of the first DNS, wherein the NS record is used for indicating the first DNS with resolution authority for the target domain name, and the first DNS belongs to a first CDN service provider;
the sending module is configured to send, to the LDNS according to the NS record, the IP address of the first DNS queried by the query module, where the IP address of the first DNS is used for sending, by the LDNS, a domain name resolution request to the first DNS, so that the first DNS queries, according to the domain name resolution request, the domain name resolution record, and obtains an IP address of a first Web server in the target area, where the first Web server belongs to a first CDN server, and the first DNS sends, to the LDNS, the IP address of the first Web server.
In one possible implementation, the method further includes: a recording module;
the recording module is used for changing an NS record when the first DNS fails, wherein the changed NS record is used for indicating a second DNS with resolution authority for the target domain name, and the second DNS belongs to a second CDN service provider;
the sending module is further configured to send, to the LDNS, the IP address of the second DNS according to the NS record.
In one possible implementation, the method further includes: an input module and a recording module;
the input module is used for receiving an externally input instruction when the first DNS fails;
the recording module is further used for changing the NS record according to the instruction.
In one possible implementation, the NS record includes a plurality of DNS, the plurality of DNS belonging to different CDN servers, each DNS of the plurality of DNS having a different priority;
the recording module is further configured to switch the authority of domain name resolution from the first DNS to a second DNS through NS records according to the order of the priorities from high to low, where the second DNS is a DNS with a highest priority level except the first DNS in the multiple DNS.
In a fifth aspect, an embodiment of the present invention provides a communication system, including:
a first domain name resolution server DNS, an authoritative DNS of a registry, a local domain name resolution server LDNS, where the first DNS belongs to a first CDN server;
the method comprises the steps that an authoritative DNS receives a domain name resolution request sent by an LDNS of a target area, wherein the domain name resolution request comprises a target domain name;
the authority DNS queries an NS record according to the domain name resolution request to obtain the IP address of the first DNS, the NS record is used for indicating the first DNS with resolution authority for the target domain name,
the authoritative DNS of the registry sends an IP address of a first DNS to the LDNS according to the NS record;
the LDNS sends a domain name resolution request to the first DNS according to the IP address of the first DNS, wherein the domain name resolution request comprises a target domain name;
the first DNS queries a domain name resolution record according to the domain name resolution request to obtain an IP address of a first Web server in the target area, wherein the first Web server belongs to a first CDN server;
the first DNS sends the LDNS an IP address of the first Web server.
From the above technical solutions, the embodiment of the present invention has the following advantages:
the authoritative domain name resolution server DNS introduces CDN services by recording the DNS of the server's name NS domain name resolution authoritative to the first CDN server. The DNS of the first CDN server analyzes the target domain name according to the domain name analysis request to obtain the IP address of the Web server in the target area, so that the recursion analysis time of at least two times in the traditional method is effectively reduced, the domain name analysis efficiency is effectively improved while CDN service is introduced, and the waiting time of netizens is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate and explain the disclosure, and do not constitute a limitation on the disclosure. In the drawings:
fig. 1 is a schematic diagram of a communication system in an embodiment of the invention;
FIG. 2 is a schematic diagram of an embodiment of a method for processing CDN service according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another embodiment of a method for processing CDN service according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a first DNS switching when a first DNS fails in an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating the structure of one embodiment of a domain name resolution server according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating the architecture of one embodiment of an authoritative domain name resolution server in accordance with an embodiment of the present invention;
FIG. 7 is a schematic diagram of another embodiment of an authoritative domain name resolution server in an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another embodiment of an authoritative domain name resolution server in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a processing method of CDN service, related equipment and a communication system. The method is used for reducing the domain name resolution time and improving the resolution efficiency.
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides a processing method of CDN service, which is applied to a communication system. Referring to fig. 1, fig. 1 is a schematic diagram of a communication system. For ease of understanding, the communication system will be briefly described below:
the communication system includes: the system comprises a first domain name resolution server (DNS) 110, an authoritative DNS120 of a registry and a local domain name resolution server (LDNS) 130, wherein the first DNS110 belongs to a first CDN server and a client 140 of a target area. The client 140 of the target area (e.g., beijing) sends a domain name resolution request to the LDNS130, the domain name resolution request including a target domain name, which may be www.a.com, for example. The LDNS130 queries a local cache list, and if there is no www.a.com cache information in the local cache list, the LDNS130 sends a domain name resolution request to the authoritative DNS120, where the domain name resolution request includes the target domain name. The authoritative DNS queries an NS record according to the domain name resolution request to obtain the IP address of the first DNS110, where the NS record is used to indicate the first DNS110 having resolution authority for the target domain name. The authoritative DNS120 of the registry sends the IP address of the first DNS110 to the LDNS130 according to the NS record. The LDNS130 sends a domain name resolution request to the first DNS110 according to the IP address of the first DNS110, the domain name resolution request including the target domain name. The first DNS110 queries a domain name resolution record according to the domain name resolution request, to obtain the IP address of the first Web server 150 in the target area (beijing area). The first DNS110 sends the LDNS130 the IP address of the first Web server 150. LDNS130 feeds back the IP address of the first Web server to client 140 of the target area (e.g., beijing). The client 140 initiates a Web request to the first Web server 150 and retrieves the data.
Referring to fig. 2, an embodiment of the present invention provides a method for processing CDN services, including:
step 201, the LDNS sends a domain name resolution request to the authoritative DNS, where the domain name resolution request includes the target domain name.
A client of the target area (e.g., beijing) sends a domain name resolution request to the LDNS, the domain name resolution request including a target domain name, which may be www.a.com, for example. The LDNS queries a local cache list, and if the local cache list does not have the cache information of www.a.com, the LDNS sends a domain name resolution request to the authoritative DNS, wherein the domain name resolution request comprises a target domain name.
Step 202, the authoritative DNS queries an NS record according to the domain name resolution request, so as to obtain the IP address of the first DNS.
NS (Name Server) records refer to domain name server records that specify which DNS server the domain name is resolved by. The NS record includes a host name of the first DNS, where the host name has a mapping relationship with an IP address of the first DNS.
For example, NS is recorded as "a.com.cn.dns1.cdna.com".
The hostname "dns1.Cdn. Com".
The IP of the first DNS is "1.1.1.1".
When the domain name is registered at the registry, the authoritative DNS has been authoritative to the first DNS by the NS record to resolve the domain name, the first DNS being the DNS of the first CDN server. Therefore, the authoritative DNS receives the domain name resolution request, and queries the NS record according to the target domain name, to obtain the IP address of the first DNS. The specific method for obtaining the first DNS by the authoritative DNS may be: the authority DNS queries an NS record according to the domain name resolution request, obtains a host name of the first DNS according to the NS record, wherein the host name and an IP address of the first DNS have a mapping relation, and obtains the IP address of the first DNS according to the host name and the mapping relation.
Step 203, the authoritative DNS sends the IP address of the first DNS to the LDNS according to the NS record.
The authority DNS obtains the IP address of the first DNS with the resolution authority for the target domain name by inquiring the NS record, and feeds back the IP address of the first DNS to the LDNS.
Step 204, the LDNS sends a domain name resolution request to the first DNS according to the IP address of the first DNS, where the domain name resolution request includes the target domain name.
And the first DNS queries a domain name resolution record according to the domain name resolution request to obtain the IP address of the first Web server corresponding to the target domain name in the target area (Beijing area). The target domain name has a mapping relationship with the IP address of the web server.
Step 205, the first DNS sends the IP address of the first Web server to the LDNS. So that the client can directly access the second Web server through the IP address of the Web server to acquire data.
For example, the resolution record of the first DNS includes, as shown in table 1 below:
TABLE 1
In the embodiment of the invention, the authority DNS grants the resolution authority of the target domain name to the first DNS of the CDN server through the NS record when the registry is registered, so that CDN service is directly introduced without setting a cname. The DNS of the first CDN server analyzes the target domain name according to the domain name analysis request to obtain the IP address of the Web server in the target area, so that the recursion analysis time of at least two times in the traditional method is effectively reduced, the domain name analysis efficiency is effectively improved while CDN service is introduced, and the waiting time of netizens is reduced.
In the embodiment of the invention, as no cross-domain cname exists, the service domain name cname does not need to be given to the CDN to accelerate the domain name, and the information of the service provider is not revealed. For example, if the target domain name is www.a.com, in the conventional method, cname is "www.a.nn.com", and in www.a.nn.com, "nn" is the name of the CDN server, from which it is easy to know which clients the CDN server serves, and the business information is easy to leak. In the embodiment of the invention, the CDN service is not introduced in a cname mode, but is directly authorized to the DNS of the CDN service provider through the NS record by the authoritative DNS, so that the information of the CDN service provider can be effectively protected.
Optionally, if the first DNS fails, the method for processing CDN services provided in the embodiment of the present invention may further perform real-time handover. On the basis of the corresponding embodiment of fig. 2, when the first DNS fails, the method further includes: when the first DNS fails, the authoritative DNS of the registry changes an NS record, where the changed NS record is used to indicate a second DNS with resolution authority for the target domain name, and the second DNS belongs to a second CDN server. And the authoritative DNS of the registry sends the IP address of the second DNS to the LDNS according to the NS record.
It will be appreciated that when the authority DNS determines that the first DNS fails, the authority DNS changes NS records in real time, and the second DNS performs a domain name resolution function, where the second DNS resolution record includes a mapping relationship between the target domain name and the IP address of the web server. The steps performed by the first DNS in the corresponding embodiment of fig. 2 are performed by the second DNS instead of the first DNS. Specifically, referring to fig. 3, another embodiment of a method for processing CDN services according to the present invention further includes:
step 301, when the first DNS fails, the authoritative DNS of the registry changes an NS record, where the changed NS record is used to indicate a second DNS with resolution authority for the target domain name, and the second DNS belongs to a second CDN server.
As will be appreciated in conjunction with fig. 4, fig. 4 is a diagram of an NS record in which a primary domain name resolution server and a backup domain name resolution server are pre-configured in one possible implementation. Wherein the first DNS is a primary domain name resolution server and the second DNS is a backup domain name resolution server. When the first DNS fails, the authoritative DNS of the registry switches the main domain name resolution server to the standby domain name resolution server, namely, switches from the first DNS to the second DNS, so as to achieve the purpose of real-time switching.
In one possible implementation, when the first DNS fails, the authoritative DNS of the registry receives an instruction for external input; and the authoritative DNS changes an NS record according to the instruction, and the changed NS record is used for indicating a second DNS with resolution authority for the target domain name, wherein the second DNS belongs to a second CDN service provider.
In another possible implementation manner, when the first DNS fails, the authoritative DNS switches the authority of domain name resolution from the first DNS to a target DNS through NS records according to the order of the priorities from high to low, where the target DNS is a DNS with the highest priority level except the first DNS in the DNS. For example, the NS records 4 DNS, and the 4 DNS may belong to different servers, and the 4 DNS is specifically a first DNS, a second DNS, a third DNS, and a fourth DNS. The priorities of the 4 DNS are shown in table 2 below:
TABLE 2
DNS Priority level Service provider
First DNS 1 First service provider
Second DNS 2 Second service provider
Third DNS 3 Third service provider
Fourth DNS 4 Fourth service provider
If the first DNS fails, the authority DNS grants the authority of domain name resolution to the second DNS through NS according to the order of priority from high to low.
It can be understood with reference to fig. 4, and fig. 4 is a schematic diagram of DNS switching when the first DNS fails. If the first DNS (corresponding to DNS1 in fig. 4) of the first CDN server (corresponding to cdnA in fig. 4) fails, the authoritative DNS of the registry is authorized to the second DNS (corresponding to DNS2 in fig. 4) by the NS record, and the second DNS belongs to the second CDN server (corresponding to cdnB in fig. 4).
The modified NS record is: for example, NS is recorded as "a.com.cn.dns2.cdnb.com".
The hostname "dns2.Cdn. Com".
The IP of the second DNS is "3.3.3.3".
Step 302, the LDNS sends a domain name resolution request to the authoritative DNS, where the domain name resolution request includes the target domain name.
This step is understood in conjunction with step 201 in the corresponding embodiment of fig. 2, and is not described herein.
Step 303, the authoritative DNS queries an NS record according to the domain name resolution request, so as to obtain the IP address of the second DNS.
This step is understood in conjunction with step 202 in the corresponding embodiment of fig. 2, and is not described herein.
As understood in connection with fig. 4, the IP address of the second DNS is "3.3.3.3".
Step 304, the authority DNS sends the IP address of the second DNS to the LDNS according to the NS record.
This step is understood in conjunction with step 203 in the corresponding embodiment of fig. 2, and is not described herein.
Step 305, the LDNS sends a domain name resolution request to the second DNS according to the IP address of the second DNS, where the domain name resolution request includes the target domain name.
This step is understood in conjunction with step 204 in the corresponding embodiment of fig. 2, and is not described herein.
Step 306, the second DNS sends the IP address of the second Web server to the LDNS. So that the client can directly access the second Web server through the IP address of the Web server to acquire data. The second web server belongs to a second facilitator.
This step is understood in conjunction with step 205 in the corresponding embodiment of fig. 2, and is not described herein.
As shown in fig. 4. For example, the IP address of the second web server in beijing area is: "111.111.111.111".
In the embodiment of the invention, when the first DNS fails, the first DNS is the DNS currently working, and the authoritative DNS can switch the DNS in real time through the NS records, so that the traditional mode is saved, if the DNS fails, the waiting time to live (abbreviated as TTL) is needed, the NS records can be updated in real time, and the failure switching efficiency is greatly improved.
Referring to fig. 5, an embodiment of the present invention further provides a domain name resolution server 500, including:
the system comprises a receiving module, a receiving module and a Content Delivery Network (CDN) module, wherein the receiving module is used for receiving a domain name resolution request of a local domain name resolution server (LDNS) of a target area, the domain name resolution request comprises a target domain name, the LDNS sends the domain name resolution request according to an IP address of the domain name resolution server, the IP address is obtained after an authoritative DNS of a registry inquires an NS record and sends the NS record to the LDNS, the NS record is used for indicating a first DNS with resolution authority for the target domain name, and the first DNS belongs to a CDN server of a first content delivery network.
And the query module is used for querying the domain name resolution record according to the target domain name received by the receiving module to obtain the IP address of a first Web server in the target area, wherein the first Web server belongs to a first CDN service provider.
And the sending module is used for sending the IP address of the first Web server inquired by the inquiring module to the LDNS.
Referring to fig. 6, an embodiment of the present invention further provides an authoritative domain name resolution server 600, including:
the receiving module is used for receiving a domain name resolution request sent by the LDNS of the target area, wherein the domain name resolution request comprises a target domain name.
The query module is used for querying an NS record according to the domain name resolution request received by the receiving module to obtain the IP address of the first DNS, wherein the NS record is used for indicating the first DNS with resolution authority for the target domain name, and the first DNS belongs to a first CDN service provider;
the query module is also specifically configured to:
inquiring an NS record according to the domain name resolution request; obtaining a host name of the first DNS according to the NS record, wherein the host name and an IP address of the first DNS have a mapping relation; and obtaining the IP address of the first DNS according to the host name and the mapping relation.
The sending module is configured to send, to the LDNS according to the NS record, the IP address of the first DNS queried by the query module, where the IP address of the first DNS is used for sending, by the LDNS, a domain name resolution request to the first DNS, so that the first DNS queries, according to the domain name resolution request, the domain name resolution record, and obtains an IP address of a first Web server in the target area, where the first Web server belongs to a first CDN server, and the first DNS sends, to the LDNS, the IP address of the first Web server.
On the basis of the embodiment corresponding to fig. 6, referring to fig. 7, an embodiment of the present invention further provides an authoritative domain name resolution server 700, which includes:
the recording module is used for changing an NS record when the first DNS fails, wherein the changed NS record is used for indicating a second DNS with resolution authority for the target domain name, and the second DNS belongs to a second CDN service provider;
the sending module is further configured to send, to the LDNS, the IP address of the second DNS according to the NS record.
Based on the embodiment corresponding to fig. 6, referring to fig. 8, an embodiment of the present invention further provides an authoritative domain name resolution server 800, which includes:
the input module is used for receiving an externally input instruction when the first DNS fails;
the recording module is further configured to change an NS record according to the instruction, where the changed NS record is used to indicate a second DNS with resolution authority for the target domain name, and the second DNS belongs to a second CDN server;
the sending module is further configured to send, to the LDNS, the IP address of the second DNS according to the NS record.
Optionally, the NS record includes a plurality of DNS, the plurality of DNS belonging to different CDN servers, each DNS of the plurality of DNS having a different priority.
The recording module is further configured to switch, when the first DNS fails, authority of domain name resolution from the first DNS to a target DNS through NS records according to the order of the priority from high to low, where the target DNS is a DNS with a highest priority level except the first DNS in the multiple DNS.
The sending module is further configured to send, to the LDNS, the IP address of the target DNS according to the NS record.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. A domain name resolution method applied to an authoritative server DNS of a registry, comprising:
receiving a domain name resolution request sent by a local domain name resolution server LDNS, wherein the domain name resolution request comprises a target domain name;
querying an NS record, and determining an IP address of a first domain name resolution server (DNS) with resolution authority for the target domain name, wherein the first domain name resolution server (DNS) is a DNS of a first CDN server, the NS record comprises a host name of the first domain name resolution server (DNS), and the host name has a mapping relation with the IP address of the first domain name resolution server (DNS);
and sending the IP address of the first domain name resolution server (DNS) to a local domain name resolution server (LDNS) so that the local domain name resolution server (LDNS) sends a domain name resolution request to the first domain name resolution server (DNS), the first domain name resolution server (DNS) resolves the target domain name, and a WEB server corresponding to the target domain name in the target area is determined.
2. The domain name resolution method according to claim 1, further comprising:
receiving a registration request of a target domain name;
the resolution authority of the target domain name is authorized to n domain name resolution servers (DNS), wherein n is an integer more than or equal to 2;
and recording the host names of the n domain name resolution servers (DNS) and the mapping relation between the host names and the IP addresses of the domain name resolution servers (DNS) in an NS record.
3. The domain name resolution method according to claim 2, wherein the n DNS nameservers are provided with priorities, the first DNS nameserver is highest in priority, and when the first DNS nameserver fails, the DNS nameserver with the highest priority among the n DNS nameservers except the first DNS nameserver is determined as the target DNS.
4. The domain name resolution method according to claim 2, wherein the n domain name resolution servers DNS belong to one or more CDN vendors.
5. A domain name resolution method applied to a domain name resolution server DNS, comprising:
receiving a domain name resolution request sent by a local domain name resolution server (LDNS) of a target area, wherein the domain name resolution request comprises a target domain name, a domain name resolution server (DNS) is a DNS of a first CDN server, and an IP address of the domain name resolution server (DNS) is sent to the local domain name resolution server (LDNS) by inquiring an NS record by an authoritative server (DNS) of a registry;
analyzing the target domain name and determining a WEB server corresponding to the target domain name in a target area;
and sending the IP address of the WEB server to the local domain name analysis server.
6. The domain name resolution method is applied to a local domain name resolution server LDNS, and is characterized by comprising the following steps:
receiving an analysis request of a target domain name;
sending the resolution request to an authoritative DNS of a registry, wherein the domain name request comprises a target domain name, so that the authoritative DNS of the registry inquires an NS record, and the IP address of the target DNS is determined, and the target DNS is the DNS of a CDN server;
receiving an IP address of a target DNS sent by an authoritative DNS of the registry;
sending the target domain name resolution request to the target DNS;
receiving an IP address of a WEB server sent by the target DNS;
and sending the IP address of the WEB server to a client of the target area.
7. A domain name resolution device applied to an authoritative server DNS of a registry, comprising:
the first receiving module is used for receiving a domain name resolution request sent by a local domain name resolution server LDNS, wherein the domain name resolution request comprises a target domain name;
the query module is used for querying an NS record, determining an IP address of a first domain name resolution server (DNS) with resolution authority for the target domain name, wherein the first domain name resolution server (DNS) is a DNS of a first CDN server, the NS record comprises a host name of the first domain name resolution server (DNS), and the host name has a mapping relation with the IP address of the first domain name resolution server (DNS);
the first sending module is configured to send the IP address of the first domain name resolution server DNS to a local domain name resolution server LDNS, so that the local domain name resolution server LDNS sends a domain name resolution request to the first domain name resolution server DNS, and the first domain name resolution server DNS resolves the target domain name to determine a WEB server corresponding to the target domain name in the target area.
8. The domain name resolution device according to claim 7, further comprising:
a registration request receiving module for receiving a registration request of a target domain name;
the authorization module is used for authorizing the resolution authority of the target domain name to n domain name resolution servers (DNS);
and the recording module is used for recording the host names of the n domain name resolution servers (DNS), and the mapping relation between the host names and the IP addresses of the domain name resolution servers (DNS) in an NS record.
9. The domain name resolution device according to claim 8, wherein the n DNS nameservers are provided with priorities, the first DNS nameserver is highest in priority, and when the first DNS nameserver fails, the DNS nameserver with the highest priority among the n DNS nameservers except the first DNS nameserver is determined as the target DNS.
10. The domain name resolution device according to claim 8, wherein the n domain name resolution servers DNS belong to one or more CDN vendors.
11. A domain name resolution device applied to a domain name resolution server DNS, comprising:
the second receiving module is used for receiving a domain name resolution request sent by a local domain name resolution server (LDNS) of a target area, wherein the domain name resolution request comprises a target domain name, the domain name resolution server (DNS) is a DNS of a CDN server, and an IP address of the domain name resolution server (DNS) is sent to the local domain name resolution server (LDNS) by inquiring an NS record by an authoritative server (DNS) of a registry;
the analysis module is used for analyzing the target domain name and determining a WEB server corresponding to the target domain name in the target area;
and the second sending module is used for sending the IP address of the WEB server to the local domain name analysis server.
12. A domain name resolution device applied to a local domain name resolution server LDNS, comprising:
the third receiving module is used for receiving an analysis request of the target domain name;
the third sending module is used for sending the resolution request to an authoritative DNS of a registry, wherein the domain name request comprises a target domain name, so that the authoritative DNS of the registry inquires NS records, the IP address of the target DNS is determined, and the target DNS is the DNS of a CDN server;
a fourth receiving module, configured to receive an IP address of a target DNS sent by an authoritative DNS of the registry;
a fourth sending module, configured to send the target domain name resolution request to the target DNS;
a fifth receiving module, configured to receive an IP address of a WEB server sent by the target DNS;
and the fifth sending module is used for sending the IP address of the WEB server to the client side of the target area.
13. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed, implements the steps of the method according to any one of claims 1-6.
14. A computer device comprising a processor, a memory and a computer program stored on the memory, characterized in that the processor implements the steps of the method according to any of claims 1-6 when the computer program is executed.
CN202010010131.3A 2016-08-31 2016-08-31 Domain name resolution method, device, medium and equipment Active CN111245972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010010131.3A CN111245972B (en) 2016-08-31 2016-08-31 Domain name resolution method, device, medium and equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610790427.5A CN106375492B (en) 2016-08-31 2016-08-31 CDN service processing method, related equipment and communication system
CN202010010131.3A CN111245972B (en) 2016-08-31 2016-08-31 Domain name resolution method, device, medium and equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201610790427.5A Division CN106375492B (en) 2016-08-31 2016-08-31 CDN service processing method, related equipment and communication system

Publications (2)

Publication Number Publication Date
CN111245972A CN111245972A (en) 2020-06-05
CN111245972B true CN111245972B (en) 2023-07-28

Family

ID=57900223

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010010131.3A Active CN111245972B (en) 2016-08-31 2016-08-31 Domain name resolution method, device, medium and equipment
CN201610790427.5A Active CN106375492B (en) 2016-08-31 2016-08-31 CDN service processing method, related equipment and communication system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201610790427.5A Active CN106375492B (en) 2016-08-31 2016-08-31 CDN service processing method, related equipment and communication system

Country Status (2)

Country Link
CN (2) CN111245972B (en)
WO (1) WO2018041212A1 (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245972B (en) * 2016-08-31 2023-07-28 贵州白山云科技股份有限公司 Domain name resolution method, device, medium and equipment
CN106953940B (en) * 2017-04-13 2018-11-20 网宿科技股份有限公司 Dns server and configuring load application method, network system, domain name analytic method and system
CN107707683B (en) * 2017-05-22 2018-06-08 贵州白山云科技有限公司 A kind of method and apparatus for reducing DNS message lengths
CN107222492A (en) * 2017-06-23 2017-09-29 网宿科技股份有限公司 A kind of DNS anti-attack methods, equipment and system
CN107124483A (en) * 2017-06-26 2017-09-01 广州市百果园信息技术有限公司 Domain name analytic method and server
CN108471458A (en) * 2018-07-10 2018-08-31 北京云枢网络科技有限公司 authoritative DNS service providing method and system
CN109040052B (en) * 2018-07-26 2021-06-15 平安科技(深圳)有限公司 Information processing method, terminal and computer readable medium
CN112769967B (en) * 2019-10-21 2023-06-27 阿里巴巴集团控股有限公司 Domain name resolution processing method and device and electronic equipment
CN111082977B (en) * 2019-11-29 2023-04-07 北京金山云网络技术有限公司 Method and device for acquiring IP address and terminal equipment
CN113067909B (en) * 2020-01-02 2023-04-07 中国移动通信有限公司研究院 Edge node addressing method, device, equipment and storage medium
CN111541793B (en) * 2020-04-03 2021-10-22 北京市天元网络技术股份有限公司 Content distribution network scheduling process analysis method and device and electronic equipment
CN111917898B (en) * 2020-07-24 2021-08-27 网宿科技股份有限公司 Resource scheduling policy adjusting method and device
CN112261174A (en) * 2020-10-21 2021-01-22 北京云联壹云技术有限公司 Multi-cloud-fusion DNS (Domain name Server) analysis method and device
CN113301176B (en) * 2020-11-12 2023-04-07 阿里巴巴集团控股有限公司 Domain name resolution method and device for content distribution network, electronic equipment and medium
CN112632485A (en) * 2021-01-04 2021-04-09 中国电子信息产业集团有限公司第六研究所 DNS (Domain name System) system based authority management and control method and system
CN113382093B (en) * 2021-05-14 2022-08-26 贵州白山云科技股份有限公司 Domain name resolution method, electronic device and system
CN115442329B (en) * 2021-06-04 2024-02-23 贵州白山云科技股份有限公司 Domain name information query method, system, device, equipment and storage medium
CN113364873A (en) * 2021-06-08 2021-09-07 中国联合网络通信集团有限公司 Traffic scheduling method and equipment
CN113783975A (en) * 2021-09-24 2021-12-10 中国第一汽车股份有限公司 Request management method, device, medium and equipment based on local DNS (Domain name Server)
CN114143332A (en) * 2021-11-03 2022-03-04 阿里巴巴(中国)有限公司 Content delivery network CDN-based processing method, electronic device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431539A (en) * 2008-12-11 2009-05-13 华为技术有限公司 Domain name resolution method, system and apparatus
CN101834910A (en) * 2007-04-04 2010-09-15 华为技术有限公司 Domain name resolution method and device
CN101917493A (en) * 2010-08-18 2010-12-15 中兴通讯股份有限公司 Iterative query method and system of server
CN102668518A (en) * 2011-12-02 2012-09-12 华为技术有限公司 Content distribution network routing method, system, and user terminal
CN104113447A (en) * 2014-07-10 2014-10-22 北京蓝汛通信技术有限责任公司 Method, device and system for monitoring domain name resolution pollution
CN105357328A (en) * 2015-09-28 2016-02-24 互联网域名系统北京市工程研究中心有限公司 DNS method, DNS recursive server and DNS system
CN105635342A (en) * 2016-01-26 2016-06-01 华为技术有限公司 Connection building method, domain name system and storage nodes

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101419436B1 (en) * 2012-12-14 2014-08-13 (주)씨디네트웍스 Method and apparatus for Domain name service
CN111245972B (en) * 2016-08-31 2023-07-28 贵州白山云科技股份有限公司 Domain name resolution method, device, medium and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834910A (en) * 2007-04-04 2010-09-15 华为技术有限公司 Domain name resolution method and device
CN101431539A (en) * 2008-12-11 2009-05-13 华为技术有限公司 Domain name resolution method, system and apparatus
CN101917493A (en) * 2010-08-18 2010-12-15 中兴通讯股份有限公司 Iterative query method and system of server
CN102668518A (en) * 2011-12-02 2012-09-12 华为技术有限公司 Content distribution network routing method, system, and user terminal
CN104113447A (en) * 2014-07-10 2014-10-22 北京蓝汛通信技术有限责任公司 Method, device and system for monitoring domain name resolution pollution
CN105357328A (en) * 2015-09-28 2016-02-24 互联网域名系统北京市工程研究中心有限公司 DNS method, DNS recursive server and DNS system
CN105635342A (en) * 2016-01-26 2016-06-01 华为技术有限公司 Connection building method, domain name system and storage nodes

Also Published As

Publication number Publication date
CN106375492B (en) 2020-02-11
CN111245972A (en) 2020-06-05
WO2018041212A1 (en) 2018-03-08
CN106375492A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN111245972B (en) Domain name resolution method, device, medium and equipment
CN111541796B (en) CDN access flow scheduling method, device, communication system and storage medium
US11115500B2 (en) Request routing utilizing client location information
US10911399B2 (en) Robust domain name resolution
US10148612B2 (en) Method and system for increasing speed of domain name system resolution within a computing device
US20180227269A1 (en) Correlating nameserver IPv6 and IPv4 addresses
US20230216884A1 (en) Method for minimizing the risk and exposure duration of improper or hijacked dns records
US8606926B2 (en) Recursive DNS nameserver
CN108737515B (en) Request routing in a networked environment
EP2356577B1 (en) Request routing and updating routing information utilizing client location information
US9712422B2 (en) Selection of service nodes for provision of services
US9264358B2 (en) Alias resource record sets
EP2611116B1 (en) Providing privacy enhanced resolution system in the domain name system
CN110933156A (en) Domain name resolution method and device
CN111447297B (en) IPv4 and IPv6 DNS unified access management method and system
CN114866508A (en) Domain name resolution method, and data processing method and device based on domain name
Kurapati et al. DHCPv4 lease query by relay agent remote ID
CN115701067A (en) Method, device and system for switching edge nodes of user side
Kurapati et al. RFC 6148: DHCPv4 Lease Query by Relay Agent Remote ID

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40030918

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant