CN110086893A - Domain name analytic method, device and computer readable storage medium - Google Patents
Domain name analytic method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN110086893A CN110086893A CN201910269153.9A CN201910269153A CN110086893A CN 110086893 A CN110086893 A CN 110086893A CN 201910269153 A CN201910269153 A CN 201910269153A CN 110086893 A CN110086893 A CN 110086893A
- Authority
- CN
- China
- Prior art keywords
- domain name
- address
- web server
- new record
- server
- 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
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/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
Abstract
The present invention relates to a kind of safe practices, disclose a kind of domain name analytic method, it include: the domain name that monitoring is added on domain name resolution server, Web agreement, port, the frequency of monitoring is set, at least two solution new records are added in the domain name of monitoring, domain name is directed toward an IP address in every solution new record, and the priority level in each solution new record is set, select one in the solution new record, the IP address in new record, which is solved, to this using a client sends data, and it monitors the corresponding server of the IP address and sends back the access state code come, according to solution new record the corresponding server of IP address send back come access state code, identify the server of delay machine, and next solution new record is automatically selected according to set priority level, with by web page access with being switched to spare IP On the corresponding server in location.The present invention also proposes a kind of domain name mapping device and a kind of computer readable storage medium.The present invention realizes the efficient parsing of domain name.
Description
Technical field
The present invention relates to the domain name solutions that security technology area more particularly to a kind of knowledge based content and user behavior cooperate with
Analyse method, apparatus and computer readable storage medium.
Background technique
Domain name mapping is that domain name is directed toward web space IP, allows people that net is accessed with can be convenient by the domain name registered
A kind of service stood.IP address is that the numeric address of website is identified on network, is remembered for convenience, IP is replaced using domain name
Location identifies site address.Domain name mapping is exactly conversion process of the domain name to IP address.The parsing work of domain name is complete by dns server
At.During domain name mapping the operation of server be not stabilization do not go wrong, once server delay machine will will lead to
User can not access, or even result in greater loss.So the necessity that the detection of server delay machine and delay machine automatically switch is not sayed
And it explains.
Summary of the invention
The present invention provides a kind of domain name analytic method, device and computer readable storage medium, main purpose and is to work as
User shows efficient analytic method when carrying out domain name mapping, to user.
To achieve the above object, a kind of domain name analytic method provided by the invention, comprising:
A, domain name, the Web agreement, port that monitoring is added in domain name resolution server, are arranged the frequency of monitoring;
B, it adds at least two solution new records in the domain name of monitoring, domain name is directed toward one in every solution new record
IP address, and the priority level of each solution new record is set;
C, wherein one in the solution new record is selected according to the priority level, is solved using a client to this
IP address in new record sends data, and monitors the corresponding Web server of the IP address and send back the access state code come;
D, according to the Web server send back come access state code, identify the Web server whether delay machine, and
In the case where the server delay machine, next solution new record is automatically selected according to set priority level, by data access
It is switched on the corresponding server of secondary ip address, and repeats the step c and d, until having identified not no delay machine
Server.
Optionally, two parsings are recorded as two A records, and the A record is for specifying the corresponding IP of domain name
Address record.
Optionally, the step c further comprises:
Using TCP socket by the interface of the client and the corresponding Web service of IP address in the solution new record
Connection is established in the port of device;
The input data of the client is input in the Web server by the TCP socket, and according to institute
IP address Location Request resource is stated, data parsing is carried out, obtains conditional access code, the access state code is passed through into the TCP
Socket returns in the client.
Optionally, described to set up the connection of TCP socket and include:
The client sends synchronizing sequence number message to the corresponding Web service of IP address in the solution new record
Device, into synchronizing sequence number transmission state;
After the Web server receives the synchronizing sequence number message, a synchronizing sequence number confirmation character is responded
Message, into synchronizing sequence number return state;
The client receives the synchronizing sequence number confirmation character message of Web server, responds a confirmation character report
Text has been successfully established TCP socket between TCP Client and the Web server and has connected into the state of determination.
Optionally, the step d is further, comprising:
Obtain the access state code that the corresponding Web server of IP address of the solution new record is sent;
The access state code is parsed, by parse obtained Web server send back come access shape
When state code is pre-set categories, judge that current selection parses the corresponding Web server of IP address recorded delay machine, and cut automatically
It changes in spare solution new record IP address.
In addition, to achieve the above object, the present invention also provides a kind of domain name mapping device, which includes memory and place
Device is managed, is stored with the domain name mapping program that can be run on the processor, domain name analysis program quilt in the memory
The processor realizes following steps when executing:
A, domain name, the Web agreement, port that monitoring is added in domain name resolution server, are arranged the frequency of monitoring;
B, it adds at least two solution new records in the domain name of monitoring, domain name is directed toward one in every solution new record
IP address, and the priority level of each solution new record is set;
C, wherein one in the solution new record is selected according to the priority level, is solved using a client to this
IP address in new record sends data, and monitors the corresponding Web server of the IP address and send back the access state code come;
D, according to the Web server send back come access state code, identify the Web server whether delay machine, and
In the case where the server delay machine, next solution new record is automatically selected according to set priority level, by data access
It is switched on the corresponding server of secondary ip address, and repeats the step c and d, until having identified not no delay machine
Server.
Optionally, two parsings are recorded as two A records, and the A record is for specifying the corresponding IP of domain name
Address record.
Optionally, the step c further comprises:
Using TCP socket by the interface of the client and the corresponding Web service of IP address in the solution new record
Connection is established in the port of device;
The input data of the client is input in the Web server by the TCP socket, and according to institute
IP address Location Request resource is stated, data parsing is carried out, obtains conditional access code, the access state code is passed through into the TCP
Socket returns in the client.
Optionally, the step d further comprises:
Obtain the access state code that the corresponding Web server of IP address of the solution new record is sent;
The access state code is parsed, by parse obtained Web server send back come access shape
When state code is pre-set categories, judge that current selection parses the corresponding Web server of IP address recorded delay machine, and cut automatically
It changes in spare solution new record IP address.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Domain name mapping program is stored on storage medium, domain name analysis program can be executed by one or more processor, with reality
Now the step of domain name analytic method as described above.
Domain name analytic method, device and computer readable storage medium proposed by the present invention, user pass through addition monitoring
Domain name addresses adds domain name solution new record, and the dynamic domain name of domain name mapping record may be implemented in monitoring service status code
With IP Host map, the efficient access of domain name is realized.Even if certain host delay machine under cluster environment, can quickly be cut by monitoring
Change spare IP host, the normal access of fast quick-recovery domain name.
Detailed description of the invention
Fig. 1 is the flow diagram for the domain name analytic method that one embodiment of the invention provides;
Fig. 2 is the schematic diagram of internal structure for the domain name mapping device that one embodiment of the invention provides;
The module diagram of domain name mapping program in the domain name mapping device that Fig. 3 provides for one embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of domain name analytic method.It is the domain name mapping that one embodiment of the invention provides shown in referring to Fig.1
The flow diagram of method.This method can be executed by a device, which can be by software and or hardware realization.
In the present embodiment, domain name analytic method includes:
S1, the domain name that monitoring is added on domain name resolution server, Web agreement, port, are arranged the frequency of monitoring.
Domain name resolution server (Domain Name System or Domain Name Service abbreviation DNS) is used
In being parsed to domain name and be converted to corresponding IP address.Servers-all in network is preserved in domain name server
Domain name and corresponding IP address, and domain name can be converted to corresponding IP address.Domain name (Domain Name), also referred to as net
Domain is used for by a string with the title of a certain server or server group on the Internet that the name separated forms is put
The electronic bearing (sometimes referred to as geographical location) of identification server when data are transmitted.The IP is English Internet
The abbreviation of Protocol means " agreement interconnected between network ", is to be communicated and set for computer network interconnection
The agreement of meter.
The Web agreement is exactly the agreement used in a network, the required Web protocol specification abided by, packet in Web exploitation
It includes, but is not limited to, HTTP, HTTPS, FTP etc., for mutually transferring file between computer or server at two.This hair
In bright preferred embodiment, the Web agreement is primarily referred to as HTTP HTTPS agreement, wherein the http protocol refers to one
The transport protocol of kind object web page, the HTTPS agreement is to be the safe version of HTTP safely for the channel HTTP of target.
In present case preferred embodiment, the port is the end that the corresponding Web server of domain name of the monitoring is opened
Slogan is defaulted as 80, for the delay machine detection to the Web server.
In present pre-ferred embodiments, the monitoring frequency can be set to 1 minute/time, 3 minutes/time, 6 minutes/time
Deng for carrying out the frequency of delay machine detection to the corresponding server of the domain name of the monitoring.
S2, at least two solution new records are added in the domain name of the monitoring, refer to domain name in every solution new record
To an IP address, and the priority level of each solution new record is set.
In present pre-ferred embodiments, the parsing added in domain name is recorded as two A (Address) records, institute
A record is stated for specifying the corresponding IP address record of domain name.
For example, first in two of above-mentioned addition solution new records can be with are as follows: www.password.com goes to IP and is
192.128.1.0, Article 2 can be with are as follows: it is 168.128.0.1 that ftp.password.com, which goes to IP, and is arranged described first
The priority of solution new record is higher than Article 2 solution new record.
S3, wherein one in the solution new record is selected according to the priority level, solves the IP in new record to this
Address sends data, and monitors the corresponding server of the IP address and send back the access state code come.
According to above-mentioned example, according to above-mentioned first of the solution new record priority of setting selection in present pre-ferred embodiments
New record is solved, and sends data in the IP address solved in new record to this first.
Before the corresponding Web server of the IP address receives the data of the transmission, the HTTP of the Web server
Port (being defaulted as 80) can set up a TCP socket with the interface for the client for sending the data first and connect.Into one
Step ground, in present pre-ferred embodiments, above-mentioned client sends synchronizing sequence number message to above-mentioned Web server, into same
Step sequence number transmission state.After the Web server receives the synchronizing sequence number message, responds a synchronizing sequence and compile
Number confirmation character message, into synchronizing sequence number return state.The client receives the synchronizing sequence number of Web server
Confirm character message, respond a confirmation character message, into the state of determination, is successfully established client and the Web service
TCP socket connection between device, to receive the data that the client is sent.
Further, the input data in A record is inputted by the TCP socket in preferred embodiments of the present invention
Extremely in the Web server, and according to the IP address Location Request resource, data parsing is carried out, conditional access code is obtained, and
Access state code is returned in the client by the TCP socket, identifies whether the Web server delays
Machine.
S4, receive the access state code that above-mentioned server is sent, identify the Web server whether delay machine, taken in the Web
In the case where device delay machine of being engaged in, next solution new record is automatically selected according to set priority level, data access is switched
Onto the corresponding server of secondary ip address, and above-mentioned step S3~S4 is repeated, until having identified not no delay machine
Web server.
In present pre-ferred embodiments, the access state code be may include:
401: unauthorized, request require authentication;403: server refusal request;404: server can not find request
Webpage;405: the method specified in disabling request;406: not being available the webpage of the content character respond request of request;407: needing
Want agent authorization;408: time-out occurs when server waiting request;409: server is clashed when completing request;410: asking
The resource asked permanent delet;411: server does not receive the request without effective content-length header field;412: server
One of precondition that requestor is arranged in the request is not met;413: server can not handle request, because asking realistic
Body is excessive, the processing capacity beyond server;The URI of 414 requests is too long, and server can not be handled;415: the format of request is not
By the support of request page;416: the page can not provide the range of request;417: server does not meet " expectation " request header word
The requirement of section;501: server does not have the function of completing request;502: server is as gateway or agency, from upstream server
Receive null response;503: server is not available at present;504: server is as gateway or agency, but not in time from upper
Trip server receives request;505: server does not support http protocol version used in request.
In present pre-ferred embodiments, when the server send status code return value be pre-set categories, such as: 501,
502,503,504 etc. whens, the present invention automatically identifies Web server delay machine, according to the A of above-mentioned setting record in it is excellent
First rank automatically selects Article 2 solution new record, and data connection is switched to the IP address pair of the Article 2 solution new record
On the Web server answered.
Invention also provides a kind of domain name mapping device.It is the domain name mapping that one embodiment of the invention provides referring to shown in Fig. 2
The schematic diagram of internal structure of device.
In the present embodiment, domain name resolver 1 can be PC (Personal Computer, PC), or
Person is the terminal devices such as smart phone, tablet computer, portable computer, is also possible to a kind of server etc..Domain name mapping dress
It sets 1 and includes at least memory 11, processor 12, communication bus 13 and network interface 14.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory,
Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11
It can be the internal storage unit of domain name mapping device 1, such as the hard disk of the domain name mapping device 1 in some embodiments.It deposits
Reservoir 11 is also possible in further embodiments on the External memory equipment of domain name mapping device 1, such as domain name mapping device 1
The plug-in type hard disk of outfit, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD)
Card, flash card (Flash Card) etc..Further, memory 11 can also both include the storage inside of domain name mapping device 1
Unit also includes External memory equipment.Memory 11 can be not only used for the application software that storage is installed on domain name mapping device 1
And Various types of data, such as the code of domain name mapping program 01 etc., it can be also used for temporarily storing and exported or will be defeated
Data out.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11
Code or processing data, such as execute domain name mapping program 01 etc..
Communication bus 13 is for realizing the connection communication between these components.
Network interface 14 optionally may include standard wireline interface and wireless interface (such as WI-FI interface), be commonly used in
Communication connection is established between the device 1 and other electronic equipments.
Optionally, which can also include user interface, and user interface may include display (Display), input
Unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It is optional
Ground, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED
(Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, display can also be appropriate
Referred to as display screen or display unit, for being shown in the information handled in domain name mapping device 1 and for showing visually
User interface.
Fig. 2 illustrates only the domain name mapping device 1 with component 11-14 and domain name mapping program 01, art technology
Personnel may include than illustrating more it is understood that structure shown in fig. 1 does not constitute the restriction to domain name mapping device 1
Perhaps more component perhaps combines certain components or different component layouts less.
In 1 embodiment of device shown in Fig. 2, domain name mapping program 01 is stored in memory 11;Processor 12 executes
Following steps are realized when the domain name mapping program 01 stored in memory 11:
Step 1: adding the domain name of monitoring on domain name resolution server, the frequency of monitoring is arranged in Web agreement, port.
Domain name resolution server (Domain Name System or Domain Name Service abbreviation DNS) is used
In being parsed to domain name and be converted to corresponding IP address.Servers-all in network is preserved in domain name server
Domain name and corresponding IP address, and domain name can be converted to corresponding IP address.Domain name (Domain Name), also referred to as net
Domain is used for by a string with the title of a certain server or server group on the Internet that the name separated forms is put
The electronic bearing (sometimes referred to as geographical location) of identification server when data are transmitted.The IP is English Internet
The abbreviation of Protocol means " agreement interconnected between network ", is to be communicated and set for computer network interconnection
The agreement of meter.
The Web agreement is exactly the agreement used in a network, the required Web protocol specification abided by, packet in Web exploitation
It includes, but is not limited to, HTTP, HTTPS, FTP etc., for mutually transferring file between computer or server at two.This hair
In bright preferred embodiment, the Web agreement is primarily referred to as HTTP HTTPS agreement, wherein the http protocol refers to one
The transport protocol of kind object web page, the HTTPS agreement is to be the safe version of HTTP safely for the channel HTTP of target.
In present case preferred embodiment, the port is the end that the corresponding Web server of domain name of the monitoring is opened
Slogan is defaulted as 80, for the delay machine detection to the server.
In present pre-ferred embodiments, the monitoring frequency can be set to 1 minute/time, 3 minutes/time, 6 minutes/time
Deng for carrying out the frequency of delay machine detection to the corresponding server of the domain name of the monitoring.
Step 2: at least two solution new records are added in the domain name of the monitoring, by the domain in every solution new record
Name is directed toward an IP address, and the priority level of each solution new record is arranged.
In present pre-ferred embodiments, the parsing added in domain name is recorded as two A (Address) records, institute
A record is stated for specifying the corresponding IP address record of domain name.
For example, first in two of above-mentioned addition solution new records can be with are as follows: www.password.com goes to IP and is
192.128.1.0, Article 2 can be with are as follows: it is 168.128.0.1 that ftp.password.com, which goes to IP, and is arranged described first
The priority of solution new record is higher than Article 2 solution new record.
Step 3: selecting wherein one in the solution new record according to the priority level, solved in new record to this
IP address send data, and monitor the corresponding server of the IP address send back come access state code.
According to above-mentioned example, according to above-mentioned first of the solution new record priority of setting selection in present pre-ferred embodiments
New record is solved, and sends data in the IP address solved in new record to this first.
Before the corresponding Web server of the IP address receives the data of the transmission, the HTTP of the Web server
Port (being defaulted as 80) can set up a TCP socket with the interface for the client for sending the data first and connect.Into one
Step ground, in present pre-ferred embodiments, above-mentioned client sends synchronizing sequence number message to above-mentioned Web server, into same
Step sequence number transmission state.After the Web server receives the synchronizing sequence number message, responds a synchronizing sequence and compile
Number confirmation character message, into synchronizing sequence number return state.The client receives the synchronizing sequence number of Web server
Confirm character message, respond a confirmation character message, into the state of determination, is successfully established client and the Web service
TCP socket connection between device, to receive the data that the client is sent.
Further, the input data in A record is inputted by the TCP socket in preferred embodiments of the present invention
Extremely in the Web server, and according to the IP address Location Request resource, data parsing is carried out, conditional access code is obtained, and
Access state code is returned in the client by the TCP socket, identifies whether the Web server delays
Machine.
Step 4: receive the access state code that above-mentioned server is sent, identify the Web server whether delay machine, at this
In the case where Web server delay machine, next solution new record is automatically selected according to set priority level, by data access
It is switched on the corresponding server of secondary ip address, and repeats above-mentioned step three~step 4, until having identified not
There is the Web server of delay machine.
In present pre-ferred embodiments, the access state code be may include:
401: unauthorized, request require authentication;403: server refusal request;404: server can not find request
Webpage;405: the method specified in disabling request;406: not being available the webpage of the content character respond request of request;407: needing
Want agent authorization;408: time-out occurs when server waiting request;409: server is clashed when completing request;410: asking
The resource asked permanent delet;411: server does not receive the request without effective content-length header field;412: server
One of precondition that requestor is arranged in the request is not met;413: server can not handle request, because asking realistic
Body is excessive, the processing capacity beyond server;The URI of 414 requests is too long, and server can not be handled;415: the format of request is not
By the support of request page;416: the page can not provide the range of request;417: server does not meet " expectation " request header word
The requirement of section;501: server does not have the function of completing request;502: server is as gateway or agency, from upstream server
Receive null response;503: server is not available at present;504: server is as gateway or agency, but not in time from upper
Trip server receives request;505: server does not support http protocol version used in request.
In present pre-ferred embodiments, when the server send status code return value be pre-set categories, such as: 501,
502,503,504 etc. whens, the present invention automatically identifies Web server delay machine, according to the A of above-mentioned setting record in it is excellent
First rank automatically selects Article 2 solution new record, and data connection is switched to the IP address pair of the Article 2 solution new record
On the Web server answered.
Optionally, in other embodiments, domain name mapping program can also be divided into one or more module, and one
Or multiple modules are stored in memory 11, and performed by one or more processors (the present embodiment is processor 12)
To complete the present invention, the so-called module of the present invention is the series of computation machine program instruction section for referring to complete specific function, is used
In implementation procedure of the description domain name analysis program in domain name mapping device.
It is the program mould of the domain name mapping program in one embodiment of domain name mapping device of the present invention for example, referring to shown in Fig. 3
Block schematic diagram, in the embodiment, domain name analysis program can be divided into monitoring setup module 10, backup setting module
20, data interaction module 30 and delay machine identification module 40, illustratively:
The monitoring setup module 10 is used for: add the domain name of monitoring on domain name resolution server, Web agreement, port,
The frequency of monitoring is set.
The backup setting module 20 is used for: at least two solution new records, every parsing note are added in the domain name of monitoring
Domain name is directed toward an IP address in record, and the priority level of each solution new record is set.
The data interaction module 30 is used for: wherein one in the solution new record is selected according to the priority level,
The IP address in new record is solved to this and sends data, and is monitored the corresponding server of the IP address and sent back the access shape come
State code.
The delay machine identification module 40 is used for: being received the access state code that above-mentioned server is sent, is identified the web services
Whether delay machine automatically selects next solution new record according to set priority level in the case where the server delay machine to device,
Web page access to be switched on the corresponding server of secondary ip address.
Above-mentioned monitoring setup module 10, backup setting module 20, data interaction module 30 and delay machine identification module 40 etc.
Program module is performed realized functions or operations step and is substantially the same with above-described embodiment, and details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with domain name mapping program, domain name analysis program can be executed by one or more processors, to realize following operation:
Domain name, the Web agreement, port that monitoring is added in domain name resolution server, are arranged the frequency of monitoring;
It adds at least two solution new records in the domain name of monitoring, domain name is directed toward an IP in every solution new record
Address, and the priority level of each solution new record is set;
Wherein one in the solution new record is selected according to the priority level, is parsed using a client to this
IP address in record sends data, and monitors the corresponding Web server of the IP address and send back the access state code come;
According to the Web server send back come access state code, identify the Web server whether delay machine, and at this
In the case where server delay machine, next solution new record is automatically selected according to set priority level, web page access is cut
It changes on the corresponding server of secondary ip address.
Computer readable storage medium specific embodiment of the present invention and above-mentioned each embodiment of domain name mapping device and method
It is essentially identical, do not make tired state herein.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And
The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet
Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed
Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more
In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element
Or there is also other identical elements in method.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of domain name analytic method, which is characterized in that the described method includes:
A, domain name, the Web agreement, port that monitoring is added in domain name resolution server, are arranged the frequency of monitoring;
B, at least two solution new records are added in the domain name of monitoring, in every solution new record with being directed toward an IP by domain name
Location, and the priority level of each solution new record is set;
C, wherein one in the solution new record is selected according to the priority level, is parsed and is remembered to this using a client
IP address in record sends data, and monitors the corresponding Web server of the IP address and send back the access state code come;
D, according to the Web server send back come access state code, identify the Web server whether delay machine, and in the clothes
In the case where device delay machine of being engaged in, next solution new record is automatically selected according to set priority level, data access is switched
Onto the corresponding server of secondary ip address, and repeat the step c and d, the service until having identified not delay machine
Device.
2. domain name analytic method as described in claim 1, which is characterized in that two parsings are recorded as two A records, institute
A record is stated for specifying the corresponding IP address record of domain name.
3. domain name analytic method as described in claim 1, which is characterized in that the step c further comprises:
Using TCP socket by the interface of the client and the corresponding Web server of IP address in the solution new record
Connection is established in port;
The input data of the client is input in the Web server by the TCP socket, and according to the IP
Address location requests resource, carries out data parsing, obtains conditional access code, the access state code is socketed by the TCP
Word returns in the client.
4. domain name analytic method as claimed in claim 3, which is characterized in that described to set up a TCP socket connection packet
It includes:
The client sends synchronizing sequence number message to the corresponding Web server of IP address solved in new record, into
Enter synchronizing sequence number transmission state;
After the Web server receives the synchronizing sequence number message, a synchronizing sequence number confirmation character message is responded,
Into synchronizing sequence number return state;
The client receives the synchronizing sequence number confirmation character message of Web server, responds a confirmation character message, into
Enter determining state, the TCP socket connection being successfully established between TCP Client and the Web server.
5. the domain name analytic method as described in any one of Claims 1-4, which is characterized in that the step d is further wrapped
It includes:
Obtain the access state code that the corresponding Web server of IP address of the solution new record is sent;
The access state code is parsed, by parse obtained Web server send back come access state code
When for pre-set categories, the corresponding Web server of IP address that current selection parsing is recorded delay machine is judged, and automatically switch to
In spare solution new record IP address.
6. a kind of domain name mapping device, which is characterized in that described device includes memory and processor, is stored on the memory
There is the domain name mapping program that can be run on the processor, is realized such as when domain name analysis program is executed by the processor
Lower step:
A, domain name, the Web agreement, port that monitoring is added in domain name resolution server, are arranged the frequency of monitoring;
B, at least two solution new records are added in the domain name of monitoring, in every solution new record with being directed toward an IP by domain name
Location, and the priority level of each solution new record is set;
C, wherein one in the solution new record is selected according to the priority level, is parsed and is remembered to this using a client
IP address in record sends data, and monitors the corresponding Web server of the IP address and send back the access state code come;
D, according to the Web server send back come access state code, identify the Web server whether delay machine, and in the clothes
In the case where device delay machine of being engaged in, next solution new record is automatically selected according to set priority level, data access is switched
Onto the corresponding server of secondary ip address, and repeat the step c and d, the service until having identified not delay machine
Device.
7. domain name mapping device as claimed in claim 6, which is characterized in that two parsings are recorded as two A records, institute
A record is stated for specifying the corresponding IP address record of domain name.
8. domain name mapping device as claimed in claim 6, which is characterized in that the step c further comprises:
Using TCP socket by the interface of the client and the corresponding Web server of IP address in the solution new record
Connection is established in port;
The input data of the client is input in the Web server by the TCP socket, and according to the IP
Address location requests resource, carries out data parsing, obtains conditional access code, the access state code is socketed by the TCP
Word returns in the client.
9. the domain name mapping device as described in any one of claim 6 to 8, which is characterized in that the step d is further wrapped
It includes:
Obtain the access state code that the corresponding Web server of IP address of the solution new record is sent;
The access state code is parsed, by parse obtained Web server send back come access state code
When for pre-set categories, the corresponding Web server of IP address that current selection parsing is recorded delay machine is judged, and automatically switch to
In spare solution new record IP address.
10. a kind of computer readable storage medium, which is characterized in that be stored with domain name solution on the computer readable storage medium
Program is analysed, domain name analysis program can be executed by one or more processor, to realize as any in claim 1 to 5
The step of domain name analytic method described in item.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910269153.9A CN110086893A (en) | 2019-04-04 | 2019-04-04 | Domain name analytic method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910269153.9A CN110086893A (en) | 2019-04-04 | 2019-04-04 | Domain name analytic method, device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110086893A true CN110086893A (en) | 2019-08-02 |
Family
ID=67414320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910269153.9A Pending CN110086893A (en) | 2019-04-04 | 2019-04-04 | Domain name analytic method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110086893A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116708459A (en) * | 2023-07-20 | 2023-09-05 | 广州东瑞科技有限公司 | Service access automatic switching method, system, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428186A (en) * | 2012-05-24 | 2013-12-04 | 中国移动通信集团公司 | Method and device for detecting phishing website |
CN103731290A (en) * | 2012-10-16 | 2014-04-16 | 无锡云捷科技有限公司 | Server failure switching method |
CN103825778A (en) * | 2014-02-19 | 2014-05-28 | 互联网域名系统北京市工程研究中心有限公司 | DNS downtime detection switching method and system based on cloud detection |
US20150288711A1 (en) * | 2014-04-03 | 2015-10-08 | The Sylint Group | Network analysis apparatus and method |
-
2019
- 2019-04-04 CN CN201910269153.9A patent/CN110086893A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428186A (en) * | 2012-05-24 | 2013-12-04 | 中国移动通信集团公司 | Method and device for detecting phishing website |
CN103731290A (en) * | 2012-10-16 | 2014-04-16 | 无锡云捷科技有限公司 | Server failure switching method |
CN103825778A (en) * | 2014-02-19 | 2014-05-28 | 互联网域名系统北京市工程研究中心有限公司 | DNS downtime detection switching method and system based on cloud detection |
US20150288711A1 (en) * | 2014-04-03 | 2015-10-08 | The Sylint Group | Network analysis apparatus and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116708459A (en) * | 2023-07-20 | 2023-09-05 | 广州东瑞科技有限公司 | Service access automatic switching method, system, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107809383B (en) | MVC-based path mapping method and device | |
CN102299936B (en) | Method and device for accessing application websites | |
CN104683407B (en) | A kind of transmission method and equipment of page data and application data | |
CN111796858A (en) | Method, system and related equipment for access detection of application programs in Kubernetes cluster | |
CN112399130B (en) | Processing method and device of cloud video conference information, storage medium and communication equipment | |
CN105553999B (en) | Application user behavioural analysis and method of controlling security and its corresponding device | |
CN105337787A (en) | Multi-server monitoring method, device and system | |
CN105939313B (en) | Status code reorientation method and device | |
CN105072112A (en) | Identity authentication method and identity authentication device | |
CN106453216A (en) | Malicious website interception method, malicious website interception device and client | |
CN103944944A (en) | Webpage link sharing method and system, and electronic device | |
CN106549989A (en) | A kind of data transmission method and its system, user terminal, application server | |
CN112838951B (en) | Operation and maintenance method, device and system of terminal equipment and storage medium | |
CN106487859A (en) | The method of monitoring user access activity, device, terminal unit and system | |
CN104580376A (en) | Method, device and system for constructing connection between terminals in local area network | |
CN104618388A (en) | Quick registration and login method and corresponding reset server and information server | |
CN108880923A (en) | The method and apparatus that policer operation applied to application server is requested | |
CN110324209A (en) | Micro services system monitoring method, apparatus, electronic equipment and computer-readable medium | |
CN110086893A (en) | Domain name analytic method, device and computer readable storage medium | |
CN111241504B (en) | Identity verification method, device, electronic equipment and storage medium | |
KR102079285B1 (en) | IoT SERVICE PROVIDING APPARATUS AND PROVIDING METHOD | |
CN108345508A (en) | Interface calls test method and device | |
CN109766489A (en) | Data processing method, client, server and computer readable storage medium | |
CN114915565A (en) | Method and system for debugging network | |
CN106470237B (en) | Asynchronous downloading method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190802 |