CN115297086A - Domain name address resolution method, device, equipment and medium - Google Patents
Domain name address resolution method, device, equipment and medium Download PDFInfo
- Publication number
- CN115297086A CN115297086A CN202210925862.XA CN202210925862A CN115297086A CN 115297086 A CN115297086 A CN 115297086A CN 202210925862 A CN202210925862 A CN 202210925862A CN 115297086 A CN115297086 A CN 115297086A
- Authority
- CN
- China
- Prior art keywords
- address
- domain name
- client
- service
- monitoring
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000012544 monitoring process Methods 0.000 claims abstract description 63
- 238000012546 transfer Methods 0.000 claims description 13
- 239000004973 liquid crystal related substance Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000011084 recovery Methods 0.000 description 3
- 238000011144 upstream manufacturing Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a domain name address resolution method, a device, equipment and a medium, comprising the following steps: receiving a domain name resolution request sent by a client; determining an IP address set corresponding to a target domain name contained in the domain name resolution request; monitoring the service state of a first IP address in the IP address set; if the first IP address can not provide the access service, determining a second IP address capable of providing the access service from the IP address set; and returning the second IP address to the client so that the client can access the second IP address. The method and the device perform service state monitoring on the first IP address in the IP address set corresponding to the target domain name which the client wants to access, set a weight proportion based on the multi-source IP service capability of the domain name, and adjust the source IP addresses to be the first IP probability of the top, so that the probability and the access efficiency of the client successfully accessing the WEB service end are improved, and meanwhile, load balancing guide flow is realized and user experience is also improved through the adjustment of the first IP probability of the domain name.
Description
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method, an apparatus, a device, and a medium for domain name address resolution.
Background
A DNS (Domain Name Server) is a Server that resolves a Domain Name and an IP address corresponding to the Domain Name. The DNS stores a domain name and an IP address corresponding to the domain name, responds to a client request and returns corresponding information of the corresponding domain name and the IP address, and the client accesses corresponding WEB services according to the domain name resolution record IP.
That is to say, in the related art, the DNS is only responsible for forwarding and feeding back domain name resource record information, and an IP address that the DNS may return to the client guides the client to a WEB server having redundancy and weak disaster recovery service capability, which may result in low access efficiency and poor user experience.
Disclosure of Invention
By providing the domain name address resolution method, the domain name address resolution device, the domain name address resolution equipment and the domain name address resolution medium, the technical problem that in the prior art, the IP address possibly returned to the client by the DNS guides the client to the WEB server with redundancy and weak disaster recovery service capability is solved, and the technical effects of improving the access efficiency and improving the user experience are achieved.
In a first aspect, the present application provides a domain name address resolution method, including:
receiving a domain name resolution request sent by a client;
determining an IP address set corresponding to a target domain name contained in the domain name resolution request;
monitoring the service state of a first IP address in the IP address set;
if the first IP address can not provide the access service, determining a second IP address capable of providing the access service from the IP address set; the first IP address is different from the second IP address;
and returning the second IP address to the client so that the client can access the second IP address.
Further, the monitoring the service status of the first IP address in the IP address set includes:
taking the IP address with the highest preset weight in the IP address set as the first IP address; the IP address with the highest preset weight in the IP address set is determined according to the bearing capacity of the number of clients accessed in real time;
and monitoring the service state of the first IP address.
Further, the determining a second IP address capable of providing an access service from the IP address set includes:
and according to the sequence of the preset weights of other IP addresses except the first IP address in the IP address set from high to low, sequentially monitoring the service state of each IP address until a certain IP address can provide access service, and taking the certain IP address capable of providing the access service as the second IP address.
Further, the monitoring the service status of the first IP address in the IP address set includes:
monitoring the service state of the first IP address by adopting an Internet packet search device; alternatively, the first and second electrodes may be,
monitoring the service state of the first IP address by adopting a hypertext transfer protocol; alternatively, the first and second electrodes may be,
and monitoring the service state of the first IP address by adopting a hypertext transfer security protocol.
Further, if the first IP address cannot provide the access service, the method further includes:
removing the first IP address from the IP address set to obtain an updated IP address set;
and re-determining the preset weight corresponding to each IP address in the updated IP address set.
In a second aspect, the present application provides a domain name address resolution apparatus, including:
the domain name resolution request receiving module is used for receiving a domain name resolution request sent by a client;
an IP address set determining module, configured to determine an IP address set corresponding to a target domain name included in the domain name resolution request;
the state monitoring module is used for monitoring the service state of the first IP address in the IP address set;
a second IP address determining module, configured to determine, if the first IP address cannot provide the access service, a second IP address that can provide the access service from the IP address set; the first IP address is different from the second IP address;
and the feedback module is used for returning the second IP address to the client so that the client can access the second IP address.
Further, the status monitoring module includes:
a first IP address determining submodule, configured to use an IP address with a highest preset weight in the IP address set as the first IP address; the IP address with the highest preset weight in the IP address set is determined according to the bearing capacity of the number of clients accessed in real time;
and the state monitoring submodule is used for monitoring the service state of the first IP address.
Further, the second IP address determining module includes:
and the second IP address determining submodule is used for sequentially monitoring the service state of each IP address according to the sequence from high to low of the preset weight of other IP addresses except the first IP address in the IP address set until a certain IP address can provide access service, and taking the certain IP address which can provide the access service as the second IP address.
In a third aspect, the present application provides an electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute to implement a domain name address resolution method as provided in the first aspect.
In a fourth aspect, the present application provides a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of implementing domain name address resolution as provided in the first aspect.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
after receiving a domain name resolution request sent by a client, the embodiment of the application can determine an IP address set corresponding to a target domain name contained in the domain name resolution request, perform service state monitoring on a first IP address in the IP address set, determine a second IP address capable of providing access service from the IP address set if the first IP address cannot provide the access service, and return the second IP address to the client so that the client can access the second IP address. Therefore, the method and the device for monitoring the service state of the WEB server side perform service state monitoring on the first IP address in the IP address set corresponding to the target domain name which the client side wants to access, when the first IP address can provide access service, the first IP address is returned to the client side for use, if the first IP address cannot provide the access service, the second IP address which can be accessed is determined again from the rest IP addresses, and the second IP address is returned to the client side for use, so that the probability and the access efficiency of the client side for successfully accessing the WEB server side are improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a domain name address resolution method provided in the present application;
fig. 2 is a schematic structural diagram of a domain name address resolution device provided in the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The embodiment of the application provides a domain name address resolution method, and solves the technical problem that in the prior art, a client is guided to a WEB server with redundancy and weak disaster recovery service capability by an IP address which is possibly returned to the client by a DNS (domain name server).
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
a method of domain name address resolution, the method comprising: receiving a domain name resolution request sent by a client; determining an IP address set corresponding to a target domain name contained in the domain name resolution request; monitoring the service state of a first IP address in the IP address set; if the first IP address cannot provide the access service, determining a second IP address capable of providing the access service from the IP address set; the first IP address is different from the second IP address; and returning the second IP address to the client so that the client can access the second IP address.
In this embodiment, after receiving a domain name resolution request sent by a client, an IP address set corresponding to a target domain name included in the domain name resolution request may be determined, a service state of a first IP address in the IP address set is monitored, if the first IP address cannot provide an access service, a second IP address capable of providing the access service is determined from the IP address set, and the second IP address is returned to the client, so that the client accesses the second IP address. It can be seen that, in this embodiment, service state monitoring is performed on a first IP address in an IP address set corresponding to a target domain name that a client wants to access, when the first IP address can provide access service, the first IP address is returned to the client for use, and if the first IP address cannot provide access service, a second IP address that can be accessed is determined again from the remaining IP addresses, and the second IP address is returned to the client for use, so that probability of successful access to a WEB service end and access efficiency of the client are improved, and user experience is also improved.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The present embodiment provides a domain name address resolution method as shown in fig. 1, which includes steps S11 to S15.
Step S11, receiving a domain name resolution request sent by a client; the client domain name resolution request supports double stacks, namely IPv4/IPv6 request and resolution service;
step S12, determining an IP address set corresponding to a target domain name contained in the domain name resolution request;
step S13, monitoring the service state of the first IP address in the IP address set;
step S14, if the first IP address can not provide the access service, determining a second IP address which can provide the access service from the IP address set; the first IP address is different from the second IP address;
and step S15, returning the second IP address to the client so that the client can access the second IP address.
The method provided by the embodiment can be applied to a DNS server, an authoritative DNS and a cache DNS.
In step S11, a domain name resolution request sent by the client is received. The client domain name resolution request supports dual stacks, namely IPv4/IPv6 request and resolution service;
the client sends a domain name resolution request to the DNS, wherein the domain name resolution request comprises a target domain name.
Regarding step S12, the IP address set corresponding to the target domain name included in the domain name resolution request is determined.
After receiving the domain name resolution request, the DNS server acquires a target domain name from the domain name resolution request. And according to the target domain name, determining an IP address set corresponding to the target domain name from a comparison table of the domain name and the IP address. Typically, a target domain name may correspond to one or more IP addresses, and different IP addresses may be served by different servers.
With respect to step S13, service status monitoring is performed on a first IP address in the set of IP addresses.
In the related art, the DNS servers can be divided into an authoritative DNS and a forwarding DNS, where the authoritative DNS refers to a server that has the right to modify the relationship between the domain name and the IP address, and the forwarding DNS can only forward the relationship between the domain name and the IP address, but not modify it.
In addition, the DNS can inquire local authoritative domain name resource records and cache resource records according to a domain name resolution request of the client, if the local authoritative domain name resource records and the cache resource records are hit, the local authoritative domain name resource records and the cache resource records are directly fed back to the client, if the local authoritative domain name resource records and the cache resource records are not hit, the domain name resolution request is forwarded to an upstream DNS, and when the feedback resource records are obtained from the upstream DNS, the local authoritative domain name resource records and the cache resource records are fed back to the client.
It can be seen that, the DNS server in the related art can only resolve or forward the relationship between the domain name and the IP address, and does not identify and determine the validity of the domain name resource, and if the WEB server corresponding to the IP address fails, the DNS server does not know that the WEB server has failed, and then still sends the corresponding IP address to the client, so that the client cannot successfully access the corresponding WEB server.
In order to solve the problem, in this embodiment, a first IP address is determined from the IP address set, and a service state of the first IP address is monitored, and when the first IP address can provide access service normally, the DNS server returns the first IP address to the client, so that the client can access the WEB service. When the first IP address cannot normally provide the access service, step S14 is performed.
The first IP address may be an IP address with a highest preset weight in the IP address set. In general, the authoritative DNS may set the preset weight, and the preset weight of each IP address may be set according to an actual situation, which is not limited in this embodiment. The IP address with the highest preset weight in the IP address set can be determined according to the number of clients accessed in real time. That is, the IP address with the highest preset weight in the IP address set can be adjusted according to the number of clients accessing in real time, so as to provide a relatively stable IP address for the client when the next client accesses. For example, the IP address set includes 3 IP addresses, which are 1.1.1.1,2.2.2.2,3.3.3.3, and the corresponding preset weight is 4. Then the IP address with the highest preset weight is 1.1.1.1, which can be used as the first IP address. When the number of client accesses of 1.1.1.1,2.2.2.2,3.3.3.3 is 100. At this time, when the next client accesses, 2.2.2.2 may be taken as the first IP address.
Of course, the first IP address may also be determined as follows: and sorting the historical access records of all the IP addresses in the IP address set, and determining the successful access probability of all the IP addresses, wherein the first IP address can be the IP address with the highest successful access probability in all the IP addresses.
In addition, the service status monitoring is performed on the first IP address in the IP address set in the following three ways.
And (mode 1) monitoring the service state of the first IP address by adopting an Internet packet searching device.
And (mode 2) monitoring the service state of the first IP address by adopting a hypertext transfer protocol.
And (mode 3) monitoring the service state of the first IP address by adopting a hypertext transfer security protocol.
An Internet Packet explorer, namely ping (Packet Internet Groper), is a program that can be used to test the network connection amount, and mainly judges whether the network is unblocked based on the network layer.
The hypertext Transfer Protocol (HTTP) is a simple request-response Protocol, which generally operates in an application layer and can be used to implement information transmission between a client and a server.
The hypertext Transfer Protocol over secure HTTP Layer is an HTTP channel targeted for security, and the security of a transmission process is ensured through transmission encryption and identity authentication on the basis of HTTP. HTTPS typically runs at the application layer and may be used to enable information transfer between a client and a server.
The service state is monitored through ping, whether a network layer between the client and the server is unblocked can be determined, and when the network layer between the client and the server is unblocked, the application layer between the client and the server cannot be guaranteed to be unblocked. Monitoring the service state through the HTTP or HTTPs can determine whether the application layer between the client and the server is clear, and if the application layer is clear, it means that the network layer is necessarily clear.
Therefore, under a better condition, the service state of the first IP address can be monitored by adopting a hypertext transfer protocol or a hypertext transfer security protocol, and the accuracy of monitoring the service state of the first IP address can be improved.
With respect to step S14, if the first IP address cannot provide the access service, determining a second IP address capable of providing the access service from the IP address set; the first IP address is different from the second IP address.
When it is determined that the first IP address cannot provide access service, meaning that the client cannot successfully access the corresponding WEB service even if the first IP address is returned to the client, the first IP address may be removed from the IP address set at this time, so as to obtain an updated IP address set; and re-determining the preset weight corresponding to each IP address in the updated IP address set.
For example, the IP address set includes 3 IP addresses, which are 1.1.1.1,2.2.2.2,3.3.3.3, and the corresponding preset weight is 4. Then the IP address with the highest preset weight is 1.1.1.1, which can be used as the first IP address. When the first IP address, i.e. 1.1.1.1, cannot provide the access service, the first IP address is removed, the updated IP address set includes 2 IP addresses 2.2.2.2,3.3.3.3, respectively, and the updated preset weight is 2:1 (obtained according to 4:2).
And according to the sequence of the preset weights of other IP addresses except the first IP address in the IP address set from high to low, sequentially monitoring the service state of each IP address until a certain IP address can provide access service, and taking the certain IP address capable of providing the access service as the second IP address.
The other IP addresses in the set of IP addresses except the first IP address may constitute an updated set of IP addresses. And determining the preset weight of each IP address according to the updated IP address set, sequencing the IP addresses from high to low, sequentially monitoring the service state of each IP address until the IP address capable of providing the access service appears, and recording the IP address capable of providing the access service as a second IP address.
For example, the updated IP address set includes 2 IP addresses, which are 2.2.2.2,3.3.3.3 respectively, the updated preset weight is 2:1, the service status of 2.2.2.2 is monitored first, and if 2.2.2.2 can provide access service normally, 2.2.2.2 is used as the second IP address. If 2.2.2.2 can not provide access service normally, the service status monitoring is continued to be carried out on 3.3.3.3, and if 3.3.3.3 can provide access service normally, 3.3.3 is taken as the second IP address. And if 3.3.3.3 cannot provide the access service normally, feeding back characters such as WEB service end faults and the like to the client so as to remind a user of the client that the user cannot access the target domain name normally.
Regarding step S15, the second IP address is returned to the client for the client to access the second IP address.
And after the second IP address is determined, the second IP address corresponding to the target domain name can be returned to the client, so that the client can access the WEB server of the second IP address.
It should be noted that the method provided by the present embodiment can be applied to a DNS server. The DNS server may be an authoritative DNS and a forwarding DNS, and when applied to the authoritative DNS server, may be executed according to the above steps S11 to S15. When the method is applied to the forwarding DNS server, the forwarding DNS server can obtain the IP address set from the authoritative DNS server, and then the steps S11 to S15 are performed, and the IP address which can finally provide the access service is returned to the client.
To sum up, after receiving the domain name resolution request sent by the client, the embodiment may determine an IP address set corresponding to a target domain name included in the domain name resolution request, perform service state monitoring on a first IP address in the IP address set, determine, if the first IP address cannot provide access service, a second IP address capable of providing the access service from the IP address set, and return the second IP address to the client, so that the client accesses the second IP address. It can be seen that, in this embodiment, service state monitoring is performed on a first IP address in an IP address set corresponding to a target domain name that a client wants to access, when the first IP address can provide access service, the first IP address is returned to the client for use, and if the first IP address cannot provide access service, a second IP address that can be accessed is determined again from the remaining IP addresses and is returned to the client for use, so that the probability and the access efficiency of the client that successfully accesses a WEB service end are improved, and user experience is also improved.
Based on the same inventive concept, the present embodiment provides a domain name address resolution device as shown in fig. 2, where the device includes:
a domain name resolution request receiving module 21, configured to receive a domain name resolution request sent by a client;
an IP address set determining module 22, configured to determine an IP address set corresponding to a target domain name included in the domain name resolution request;
a status monitoring module 23, configured to perform service status monitoring on a first IP address in the IP address set;
a second IP address determining module 24, configured to determine, if the first IP address cannot provide the access service, a second IP address that can provide the access service from the IP address set; the first IP address is different from the second IP address;
and a feedback module 25, configured to return the second IP address to the client, so that the client accesses the second IP address.
Further, the status monitoring module 23 includes:
a first IP address determining submodule, configured to use an IP address with a highest preset weight in the IP address set as the first IP address; the IP address with the highest preset weight in the IP address set is determined according to the bearing capacity of the number of clients accessed in real time;
and the state monitoring submodule is used for monitoring the service state of the first IP address.
Further, the second IP address determining module 24 includes:
and the second IP address determining submodule is used for sequentially monitoring the service state of each IP address according to the sequence from high to low of the preset weight of other IP addresses except the first IP address in the IP address set until a certain IP address can provide access service, and taking the certain IP address which can provide the access service as the second IP address.
Further, the status monitoring module 23 includes:
the first monitoring submodule is used for monitoring the service state of the first IP address by adopting an Internet packet seeker; alternatively, the first and second electrodes may be,
the second monitoring submodule is used for monitoring the service state of the first IP address by adopting a hypertext transfer protocol; alternatively, the first and second electrodes may be,
and the third monitoring submodule is used for monitoring the service state of the first IP address by adopting a hypertext transfer security protocol.
Further, the apparatus further comprises:
an IP address set updating module, configured to remove the first IP address from the IP address set if the first IP address cannot provide access service, to obtain an updated IP address set;
and the preset weight updating module is used for re-determining the preset weight corresponding to each IP address in the updated IP address set.
Based on the same inventive concept, the present embodiment provides an electronic device as shown in fig. 3, including:
a processor 31;
a memory 32 for storing instructions executable by the processor 31;
wherein the processor 31 is configured to execute to implement a domain name address resolution method as provided in the foregoing.
Based on the same inventive concept, the present embodiment provides a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor 31 of an electronic device, enable the electronic device to perform a method of implementing domain name address resolution as provided above.
Since the electronic device described in this embodiment is an electronic device used for implementing the method for processing information in this embodiment, a person skilled in the art can understand the specific implementation manner of the electronic device of this embodiment and various variations thereof based on the method for processing information described in this embodiment, and therefore, how to implement the method in this embodiment by the electronic device is not described in detail here. Electronic devices used by those skilled in the art to implement the method for processing information in the embodiments of the present application are all within the scope of the present application.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
in this embodiment, after receiving a domain name resolution request sent by a client, an IP address set corresponding to a target domain name included in the domain name resolution request may be determined, service state monitoring may be performed on a first IP address in the IP address set, if the first IP address cannot provide access service, a second IP address capable of providing access service is determined from the IP address set, and the second IP address is returned to the client, so that the client accesses the second IP address. It can be seen that, in this embodiment, service state monitoring is performed on a first IP address in an IP address set corresponding to a target domain name that a client wants to access, when the first IP address can provide access service, the first IP address is returned to the client for use, and if the first IP address cannot provide access service, a second IP address that can be accessed is determined again from the remaining IP addresses, and the second IP address is returned to the client for use, so that probability of successful access to a WEB service end and access efficiency of the client are improved, and user experience is also improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method for domain name address resolution, the method comprising:
receiving a domain name resolution request sent by a client;
determining an IP address set corresponding to a target domain name contained in the domain name resolution request;
monitoring the service state of a first IP address in the IP address set;
if the first IP address cannot provide the access service, determining a second IP address capable of providing the access service from the IP address set; the first IP address is different from the second IP address;
and returning the second IP address to the client so that the client can access the second IP address.
2. The method of claim 1, wherein the service status monitoring of the first IP address in the set of IP addresses comprises:
taking the IP address with the highest preset weight in the IP address set as the first IP address; the IP address with the highest preset weight in the IP address set is determined according to the bearing capacity of the number of clients accessed in real time;
and monitoring the service state of the first IP address.
3. The method of claim 1, wherein said determining a second IP address from the set of IP addresses that can provide access services comprises:
and according to the sequence of the preset weights of other IP addresses except the first IP address in the IP address set from high to low, sequentially monitoring the service state of each IP address until a certain IP address can provide access service, and taking the certain IP address capable of providing the access service as the second IP address.
4. The method of claim 1, wherein the service status monitoring of the first IP address in the set of IP addresses comprises:
monitoring the service state of the first IP address by adopting an Internet packet search device; alternatively, the first and second electrodes may be,
monitoring the service state of the first IP address by adopting a hypertext transfer protocol; alternatively, the first and second liquid crystal display panels may be,
and monitoring the service state of the first IP address by adopting a hypertext transfer security protocol.
5. The method of claim 1, wherein if the first IP address fails to provide access services, the method further comprises:
removing the first IP address from the IP address set to obtain an updated IP address set;
and re-determining the preset weight corresponding to each IP address in the updated IP address set.
6. A domain name address resolution apparatus, the apparatus comprising:
the domain name resolution request receiving module is used for receiving a domain name resolution request sent by a client;
an IP address set determining module, configured to determine an IP address set corresponding to a target domain name included in the domain name resolution request;
the state monitoring module is used for monitoring the service state of the first IP address in the IP address set;
a second IP address determining module, configured to determine, if the first IP address cannot provide the access service, a second IP address that can provide the access service from the IP address set; the first IP address is different from the second IP address;
and the feedback module is used for returning the second IP address to the client so that the client can access the second IP address.
7. The apparatus of claim 6, wherein the condition monitoring module comprises:
a first IP address determining submodule, configured to use an IP address with a highest preset weight in the IP address set as the first IP address; the IP address with the highest preset weight in the IP address set is determined according to the bearing capacity of the number of clients accessed in real time;
and the state monitoring submodule is used for monitoring the service state of the first IP address.
8. The apparatus of claim 6, wherein the second IP address determination module comprises:
and the second IP address determining submodule is used for sequentially monitoring the service state of each IP address according to the sequence from high to low of the preset weight of other IP addresses except the first IP address in the IP address set until a certain IP address can provide access service, and taking the certain IP address which can provide the access service as the second IP address.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute to implement a domain name address resolution method as claimed in any one of claims 1 to 5.
10. A non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform implementing a domain name address resolution method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210925862.XA CN115297086A (en) | 2022-08-03 | 2022-08-03 | Domain name address resolution method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210925862.XA CN115297086A (en) | 2022-08-03 | 2022-08-03 | Domain name address resolution method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115297086A true CN115297086A (en) | 2022-11-04 |
Family
ID=83825385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210925862.XA Pending CN115297086A (en) | 2022-08-03 | 2022-08-03 | Domain name address resolution method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115297086A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104168326A (en) * | 2014-08-27 | 2014-11-26 | 福建星网视易信息系统有限公司 | Server load balancing method and system |
CN107547653A (en) * | 2017-09-11 | 2018-01-05 | 华北水利水电大学 | A kind of distributed file storage system |
US20210075762A1 (en) * | 2019-09-05 | 2021-03-11 | Wangsu Science & Technology Co., Ltd. | Dns resolution method, authoritative dns server and dns resolution system |
CN112954089A (en) * | 2021-04-12 | 2021-06-11 | 平安科技(深圳)有限公司 | Method, device and equipment for analyzing data and storage medium |
CN113037680A (en) * | 2019-12-09 | 2021-06-25 | 中盈优创资讯科技有限公司 | Application server access method and device based on domain name resolution result |
CN113489691A (en) * | 2021-06-22 | 2021-10-08 | 腾讯科技(深圳)有限公司 | Network access method, device, computer readable medium and electronic equipment |
CN114513487A (en) * | 2020-10-28 | 2022-05-17 | 武汉斗鱼网络科技有限公司 | Method and device for accelerating domain name resolution, electronic equipment and computer readable storage medium |
-
2022
- 2022-08-03 CN CN202210925862.XA patent/CN115297086A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104168326A (en) * | 2014-08-27 | 2014-11-26 | 福建星网视易信息系统有限公司 | Server load balancing method and system |
CN107547653A (en) * | 2017-09-11 | 2018-01-05 | 华北水利水电大学 | A kind of distributed file storage system |
US20210075762A1 (en) * | 2019-09-05 | 2021-03-11 | Wangsu Science & Technology Co., Ltd. | Dns resolution method, authoritative dns server and dns resolution system |
CN113037680A (en) * | 2019-12-09 | 2021-06-25 | 中盈优创资讯科技有限公司 | Application server access method and device based on domain name resolution result |
CN114513487A (en) * | 2020-10-28 | 2022-05-17 | 武汉斗鱼网络科技有限公司 | Method and device for accelerating domain name resolution, electronic equipment and computer readable storage medium |
CN112954089A (en) * | 2021-04-12 | 2021-06-11 | 平安科技(深圳)有限公司 | Method, device and equipment for analyzing data and storage medium |
CN113489691A (en) * | 2021-06-22 | 2021-10-08 | 腾讯科技(深圳)有限公司 | Network access method, device, computer readable medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10200402B2 (en) | Mitigating network attacks | |
US9525730B2 (en) | Method and apparatus for processing server load balancing by using the result of hash function | |
EP2695358B1 (en) | Selection of service nodes for provision of services | |
CN109302498B (en) | Network resource access method and device | |
US6813635B1 (en) | System and method for distributing load among redundant independent stateful world wide web server sites | |
US7543069B2 (en) | Dynamically updating session state affinity | |
US9578040B2 (en) | Packet receiving method, deep packet inspection device and system | |
EP3557843B1 (en) | Content delivery network (cdn) bot detection using compound feature sets | |
US20110320522A1 (en) | Context-specific network resource addressing model for distributed services | |
US20070094361A1 (en) | Multipath routing process | |
CN109587290B (en) | Domain name resolution method and related device | |
CN107707631B (en) | Data acquisition method and device | |
CN104980478A (en) | Cache sharing method, devices and system in content delivery network | |
CN109067936A (en) | A kind of method and device of domain name mapping | |
CN107580021A (en) | A kind of method and apparatus of file transmission | |
CN109634753A (en) | Switch data processing method, device, terminal and the storage medium of browser kernel | |
US10404651B2 (en) | Domain name system network traffic management | |
US20140317289A1 (en) | Dynamically affinitizing users to a version of a website | |
EP2887620B1 (en) | Session Initiation Protocol Messaging | |
CN115297086A (en) | Domain name address resolution method, device, equipment and medium | |
CN108366097A (en) | Resource access control method and system | |
US11658995B1 (en) | Methods for dynamically mitigating network attacks and devices thereof | |
CN109788083B (en) | Application downloading method and device, storage medium and electronic device | |
US8996607B1 (en) | Identity-based casting of network addresses | |
CN115396398B (en) | Derived domain name access method, system, device, storage medium and program product |
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 |