CN109451089A - A kind of access method, device, computer equipment and computer storage medium - Google Patents

A kind of access method, device, computer equipment and computer storage medium Download PDF

Info

Publication number
CN109451089A
CN109451089A CN201811310005.9A CN201811310005A CN109451089A CN 109451089 A CN109451089 A CN 109451089A CN 201811310005 A CN201811310005 A CN 201811310005A CN 109451089 A CN109451089 A CN 109451089A
Authority
CN
China
Prior art keywords
domain name
address
server
visited
accessed
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
Application number
CN201811310005.9A
Other languages
Chinese (zh)
Inventor
于越
赵鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN201811310005.9A priority Critical patent/CN109451089A/en
Publication of CN109451089A publication Critical patent/CN109451089A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1036Load balancing of requests to servers for services different from user content provisioning, e.g. load balancing across domain name servers

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 kind of access method, device, computer equipment and computer storage mediums.The method comprise the steps that vendor class belonging to the IP address of acquisition accessed server corresponding with domain name and accessed server;According to vendor class belonging to accessed server by the IP address partitioned storage of the accessed server in domain name chained list corresponding with domain name, generate new access cache record sheet;Receive the domain name to be visited that user sends;According to operator belonging to domain name to be visited and user, IP address identical as domain name to be visited and with the consistent accessed server of user's operator is searched from new access cache record sheet, obtains server ip address to be visited;Server ip address to be visited is sent to user, so that user accesses server according to server ip address to be visited.By the present invention in that operator belonging to user and the operator of accessed server are consistent, the access rate of user is improved.

Description

A kind of access method, device, computer equipment and computer storage medium
Technical field
The present invention relates to Internet technical field more particularly to a kind of access method, device, computer equipment and computers Storage medium.
Background technique
The routing result according to load balancing is needed to access true clothes when Intranet user accesses outer net in load balancing Business, and DNS (domain name system, Domain Name System) agency can record according to inquiry of the domain name DNS and return to record To user, allow user can be according to DNS record access real service.
In the prior art, load-balancing device is only responsible for user and parses IP address, does not go to judge that user wherefrom comes, Also it is indifferent to operator belonging to the IP address of parsing, will causes all users that can only all be resolved to fixed IP address in this way In (Internet Protocol Address, Internet protocol address).As shown in Figure 1, Figure 2 and Fig. 3 with for example user needs to visit Ask Baidu www.baidu.com, and the domain name be corresponding with 3 carrier server ISP1 (Internet Service Provider, Internet Service Provider),ISP2,ISP3.Wherein ISP1 belongs to telecom operators;ISP2 belongs to connection operation Quotient;ISP3 belongs to mobile operator;When user accesses Baidu www.baidu.com for the first time, DNS can be obtained according to the domain name mapping The corresponding IP address of these three carrier servers of ISP1, ISP2 and ISP3 is obtained, and these three IP address are sent to load Weigh equipment, and one of IP address can be fed back to user at random, can't distinguish operator, user Ze Yi by load-balancing device According to the corresponding server S 2 of IP address access operator ISP2.When user accesses Baidu www.baidu.com again, due to Access record before being cached in load-balancing device, therefore load-balancing device can be from these three clothes of S1, S2 and S3 An IP address is sent at random to user, at this time in the IP address of device of being engaged in.User may be according to IP address access operator ISP1 Corresponding server S 1, the server that will result in each user's access in this way are not fixed, user's operator and server Affiliated operator is inconsistent, i.e., operator belonging to user is movement, but that access is S1 or S2 corresponding non-moving The server of operator, therefore will cause the slow problem of user's speed of surfing the Internet.
Summary of the invention
The embodiment of the present invention provides a kind of access method, device, computer equipment and computer storage medium, to solve It is existing in the prior art since the operator of user's operator and the service server of access is inconsistent, cause on user The slow problem of network speed rate.
In a first aspect, the embodiment of the present invention provides a kind of access method, include the following steps:
Vendor class belonging to the IP address of acquisition accessed server corresponding with domain name and accessed server;
The IP address partitioned storage of the accessed server is existed according to vendor class belonging to accessed server In domain name chained list corresponding with domain name, new access cache record sheet is generated;
Receive the domain name to be visited that user sends;
According to operator belonging to the domain name to be visited and user, searched from the new access cache record sheet IP address identical as the domain name to be visited and with the consistent accessed server of user's operator, obtains clothes to be visited Business device IP address;
The server ip address to be visited is sent to user, so that user is according to the server ip address to be visited Access server.
Optionally, fortune belonging to the IP address for obtaining corresponding with domain name accessed server and accessed server Quotient's classification is sought, is specifically included:
Receive the domain name mapping result of DNS domain name system feedback;
The IP address of corresponding with domain name several accessed servers is obtained according to the parsing result and each is accessed Vendor class belonging to server.
Optionally, the classification according to accessed server operator is by the IP address subregion of the accessed server It is stored in domain name chained list corresponding with domain name, forms new access cache record sheet, specifically include:
It searches and whether has domain name chained list corresponding with domain name in original access cache record sheet and created if not having Domain name chained list corresponding with domain name is built, according to vendor class belonging to accessed server, by the accessed service The IP address of device is stored in operator's chained list of domain name chained list, to form new access cache record sheet;If so, then according to quilt Vendor class belonging to server is accessed, the IP address of the accessed server is added into corresponding operator's chained list In, or using the IP address of the accessed server replace original IP address in corresponding operator's chained list.
Optionally, according to operator belonging to the domain name to be visited and user, from the new access cache record IP address identical as the domain name to be visited and with the consistent accessed server of user's operator is searched in table, is obtained Server ip address to be visited, specifically includes:
It is corresponding with domain name to be visited according to whether there is in access record buffer memory table described in the domain name lookup to be visited Domain name chained list, domain name chained list, then be transmitted to domain name analysis system for domain name to be visited if it does not exist;Domain name chained list if it exists, Operator corresponding with domain name chained list is then obtained, and searches in operator's chained list and whether there is and user's operator Domain name to be visited is transmitted to domain if not depositing the IP address of accessed server by the IP address of consistent accessed server Name resolution system, is accessed the IP address of server if it exists, then obtains clothes to be visited according to the IP address for being accessed server The IP address of business device.
Second aspect, the embodiment of the present invention provide a kind of access mechanism, comprising:
First obtains module, for obtaining IP address and the accessed server institute of accessed server corresponding with domain name The vendor class of category;
Generation module, for according to vendor class belonging to accessed server by the IP of the accessed server Location partitioned storage generates new access cache record sheet in domain name chained list corresponding with domain name;
Receiving module, for receiving the domain name to be visited of user's transmission;
Second obtains module, for according to operator belonging to the domain name to be visited and user, from the new visit Ask that lookup is identical as the domain name to be visited and with the consistent accessed server of user's operator in caching record table IP address obtains server ip address to be visited;
Sending module, for the server ip address to be visited to be sent to user, so that user is according to described wait visit Ask that server ip address accesses server.
Optionally, the first acquisition module is specifically used for: receiving the domain name mapping result of DNS domain name system feedback;
The IP address of corresponding with domain name several accessed servers is obtained according to the parsing result and each is accessed Vendor class belonging to server.
Optionally, the generation module is specifically used for:
It searches and whether has domain name chained list corresponding with domain name in original access cache record sheet and created if not having Domain name chained list corresponding with domain name is built, according to vendor class belonging to accessed server, by the accessed service The IP address of device is stored in operator's chained list of domain name chained list, to form new access cache record sheet;If so, then according to quilt Vendor class belonging to server is accessed, the IP address of the accessed server is added into corresponding operator's chained list In, or using the IP address of the accessed server replace original IP address in corresponding operator's chained list.
Optionally, the second acquisition module is specifically used for:
It is corresponding with domain name to be visited according to whether there is in access record buffer memory table described in the domain name lookup to be visited Domain name chained list, domain name chained list, then be transmitted to domain name analysis system for domain name to be visited if it does not exist;Domain name chained list if it exists, Operator corresponding with domain name chained list is then obtained, and searches in operator's chained list and whether there is and user's operator Domain name to be visited is transmitted to domain if not depositing the IP address of accessed server by the IP address of consistent accessed server Name resolution system, is accessed the IP address of server if it exists, then obtains clothes to be visited according to the IP address for being accessed server The IP address of business device.
The third aspect, the embodiment of the present invention provide a kind of computer equipment, and the computer equipment includes memory, processing Device and it is stored in the computer program that can be run on the memory and on the processor, the computer program is described Processor realizes following method and step when executing:
Vendor class belonging to the IP address of acquisition accessed server corresponding with domain name and accessed server;
The IP address partitioned storage of the accessed server is existed according to vendor class belonging to accessed server In domain name chained list corresponding with domain name, new access cache record sheet is generated;
Receive the domain name to be visited that user sends;
According to operator belonging to the domain name to be visited and user, searched from the new access cache record sheet IP address identical as the domain name to be visited and with the consistent accessed server of user's operator, obtains clothes to be visited Business device IP address;
The server ip address to be visited is sent to user, so that user is according to the server ip address to be visited Access server.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the computer program realizes following method and step when being executed by processor: acquisition and domain name Vendor class belonging to the IP address of corresponding accessed server and accessed server;
The IP address partitioned storage of the accessed server is existed according to vendor class belonging to accessed server In domain name chained list corresponding with domain name, new access cache record sheet is generated;
Receive the domain name to be visited that user sends;
According to operator belonging to the domain name to be visited and user, searched from the new access cache record sheet IP address identical as the domain name to be visited and with the consistent accessed server of user's operator, obtains clothes to be visited Business device IP address;
The server ip address to be visited is sent to user, so that user is according to the server ip address to be visited Access server.
The embodiment of the present invention by by the IP address of server according to the classification of affiliated operator come subregion storage, when with When family accesses identical domain name again, according to keeping records of before, then can directly it find consistent with user's operator Server IP address, ensure that operator belonging to user is consistent with the operator of accessed server, improve user Access rate.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is user in the prior art, loads equal equipment and service the topological diagram between device;
Fig. 2 be in the prior art user access server when load-balancing device process flow diagram;
Fig. 3 be in the prior art user access server when timing diagram;
Fig. 4 is that the present invention first implements access method flow chart;
Fig. 5 is third embodiment of the invention access mechanism structural block diagram;
Fig. 6 loads the process flow diagram of equal equipment when being user access server in sixth embodiment of the invention;
Fig. 7 is the flow chart that load-balancing device stores DNS record in sixth embodiment of the invention;
Timing diagram when Fig. 8 is user access server in sixth embodiment of the invention;
Fig. 9 is the data store organisation schematic diagram of sixth embodiment of the invention access cache record sheet;
Figure 10 is the data store organisation schematic diagram of the updated access cache record sheet of sixth embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
First embodiment of the invention provides a kind of access method, as shown in figure 4, comprising the following specific steps
Step S101, obtain corresponding with domain name accessed server IP address and accessed server belonging to operation Quotient's classification;In this step, when obtaining vendor class belonging to the IP address for being accessed server and accessed server, tool If body is the domain name mapping by receiving DNS domain name system feedback as a result, obtaining according to the parsing result corresponding with domain name Vendor class belonging to the IP address of dry accessed server and each accessed server.A specific domain name can be right There should be multiple accessed servers, operator belonging to each accessed server may be the same or different, such as Baidu Domain name are as follows: www.baidu.com, then corresponding with the domain name there are four server by obtaining after dns resolution, server 1 services Device 2, server 3 and server 4 obtain vendor class and IP address belonging to this four servers, for example, 1 institute of server The operator of category is movement, IP address 1.1.1.1;Operator belonging to server 2 is movement, and IP address is 2.2.2.2;Operator belonging to server 3 is connection, IP address 3.3.3.3;Operator belonging to server 4 is electricity Letter, IP address 4.4.4.4.
Step S102 divides the IP address of the accessed server according to vendor class belonging to accessed server Area is stored in domain name chained list corresponding with domain name, generates new access cache record sheet;Step S101 is specifically combined, When the IP address of storage server, the IP address of server 1 and server 2 is specifically successively stored in mobile corresponding operation In quotient's chained list, the IP address of server 3 is stored in the corresponding operator's chained list of connection, server 4 is stored in telecommunications pair In the operator's chained list answered.
Step S103 receives the domain name to be visited that user sends;
Step S104, according to operator belonging to the domain name to be visited and user, from the new access cache note It records and searches IP address identical as the domain name to be visited and with the consistent accessed server of user's operator in table, obtain Obtain server ip address to be visited;Specifically, when searching the IP address of server to be visited, first being looked in conjunction with step S102 To domain name chained list corresponding with domain name to be visited, then vendor class belonging to foundation user is found from domain name chained list and user The corresponding operator's chained list of operator determines that any one accessed server ip address in operator's chained list is to be visited Server ip address;Such as operator belonging to user is movement, when user accesses www.baidu.com, then first from visit It asks that caching record table finds the chained list of the domain name, mobile corresponding operator's chained list is then found from the chained list of the domain name, Wherein there are the IP address of server 1 and the IP address of server 2 in the corresponding chained list of mobile operator, arbitrarily selection server 1 IP address or the IP address of server 2 are server ip address to be visited.
The server ip address to be visited is sent to user by step S105, so that user is according to the clothes to be visited Device IP address of being engaged in accesses server.
In the embodiment of the present invention, by the way that the IP address of service server is deposited according to the vendor class of server come subregion Put, when user subsequent request access service server when, convenient for by with the consistent service server of user's operator IP address is sent to user, guarantees that the operator of the service server of user's access is identical as operator belonging to user, improves The access rate of user.
Second embodiment of the invention provides a kind of access method, comprising the following specific steps
Operator belonging to step 1, the IP address for obtaining accessed server corresponding with domain name and accessed server Classification;
Step 2 searches in original access cache record sheet whether have domain name chained list corresponding with domain name, if not having Have, then creates domain name chained list corresponding with domain name, it, will be described interviewed according to vendor class belonging to accessed server Ask that the IP address of server is stored in operator's chained list of domain name chained list, to form new access cache record sheet;If so, then According to vendor class belonging to server is accessed, the IP address of the accessed server is added into corresponding operation In quotient's chained list, or using the accessed server IP address with replacing in corresponding operator's chained list original IP Location.
Step 3 receives the domain name to be visited that user sends;
Step 4, according to described in the domain name lookup to be visited access record buffer memory table in whether there is and domain to be visited The corresponding domain name chained list of name, domain name chained list, then be transmitted to domain name analysis system for domain name to be visited if it does not exist;Domain name if it exists Chained list, then obtain operator corresponding with domain name chained list, and search in operator's chained list whether there is with belonging to user The IP address of the consistent accessed server of operator turns domain name to be visited if not depositing the IP address of accessed server Issue domain name analysis system, if it exists be accessed server IP address, then according to be accessed server IP address obtain to Access the IP address of server.
The server ip address to be visited is sent to user by step 5, so that user is according to the server to be visited IP address accesses server.
Third embodiment of the invention provides a kind of access mechanism, as shown in Figure 5, comprising:
First obtain module 1, for obtain accessed server corresponding with domain name IP address and accessed server Affiliated vendor class;During specific embodiment, the first acquisition module is specifically used for: receiving DNS domain name system The domain name mapping result of feedback;According to the parsing result obtain the IP address of corresponding with domain name several accessed servers with And vendor class belonging to each accessed server.
Generation module 2, for according to vendor class belonging to accessed server by the IP of the accessed server Address partition is stored in domain name chained list corresponding with domain name, generates new access cache record sheet;In embodiment process In, generation module is specifically used for: it searches and whether has domain name chained list corresponding with domain name in original access cache record sheet, It, will be described according to vendor class belonging to accessed server if no, creating domain name chained list corresponding with domain name The IP address of accessed server is stored in operator's chained list of domain name chained list, to form new access cache record sheet;If Have, then according to vendor class belonging to server is accessed, the IP address of the accessed server is added to corresponding Operator's chained list in, or using the accessed server IP address replace it is original in corresponding operator's chained list IP address.
Receiving module 3, for receiving the domain name to be visited of user's transmission;
Second obtains module 4, for according to operator belonging to the domain name to be visited and user, from the new visit Ask that lookup is identical as the domain name to be visited and with the consistent accessed server of user's operator in caching record table IP address obtains server ip address to be visited;During embodiment, the second acquisition module is specifically used for: according to institute It states in access record buffer memory table described in domain name lookup to be visited with the presence or absence of domain name chained list corresponding with domain name to be visited, if not There are domain name chained lists, then domain name to be visited are transmitted to domain name analysis system;Domain name chained list if it exists then obtains and the domain name pair The operator's chained list answered, and search in operator's chained list and whether there is and the consistent accessed service of user's operator Domain name to be visited is transmitted to domain name analysis system, if it exists if not depositing the IP address of accessed server by the IP address of device The IP address of accessed server, then obtain the IP address of server to be visited according to the IP address for being accessed server.
Sending module 5, for the server ip address to be visited to be sent to user, so that user is according to described wait visit Ask that server ip address accesses server.
In the embodiment of the present invention, according to the vendor class of server, business service is stored come subregion using generation module The IP address of device, with generate access record buffer memory table, when user subsequent request access service server when, can directly search visit It asks record buffer memory table, finds the IP address with the consistent server of user's operator, recycle sending module will be with user The IP address of the consistent service server of operator is sent to user, so that user accesses the service server, ensure that The operator of the service server of user's access is identical as operator belonging to user, improves the access rate of user.
Fourth embodiment of the invention, provides a kind of computer equipment, the computer equipment include memory, processor and It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing Device realizes following method and step when executing: Step 1: obtaining the IP address of accessed server corresponding with domain name and being accessed Vendor class belonging to server;
Step 2: according to vendor class belonging to accessed server by the IP address subregion of the accessed server It is stored in domain name chained list corresponding with domain name, generates new access cache record sheet;
Step 3: receiving the domain name to be visited that user sends;
Step 4: according to operator belonging to the domain name to be visited and user, from the new access cache record IP address identical as the domain name to be visited and with the consistent accessed server of user's operator is searched in table, is obtained Server ip address to be visited;
Step 5: the server ip address to be visited is sent to user, so that user is according to the service to be visited Device IP address accesses server.
Fifth embodiment of the invention, provides a kind of computer readable storage medium, on the computer readable storage medium It is stored with computer program, the computer program realizes following method and step when being executed by processor:
Step 1: operator belonging to the IP address of acquisition accessed server corresponding with domain name and accessed server Classification;
Step 2: according to vendor class belonging to accessed server by the IP address subregion of the accessed server It is stored in domain name chained list corresponding with domain name, generates new access cache record sheet;
Step 3: receiving the domain name to be visited that user sends;
Step 4: according to operator belonging to the domain name to be visited and user, from the new access cache record IP address identical as the domain name to be visited and with the consistent accessed server of user's operator is searched in table, is obtained Server ip address to be visited;
Step 5: the server ip address to be visited is sent to user, so that user is according to the service to be visited Device IP address accesses server.
Sixth embodiment of the invention provides a kind of access system, takes in conjunction with Fig. 6 and Fig. 8, including load-balancing device, DNS Business device and service server;Specific access process is as follows:
Load receives information and judges whether it is the request message of user's transmission with equipment:
Judge in load-balancing device if so, carrying out routing according to load balancing Routing Algorithm routing wherein specifically including Whether with domain name in user request message identical domain name is stored with, if it does not exist, then by the domain name in user's request message Be transmitted to dns server, and if it exists, then search whether be stored in the corresponding chained list of the domain name it is corresponding with user's operator Record, the domain name in user's request message is transmitted to dns server if not, if so, according in load-balancing device The dns record assembling response message of storage, and response message is sent to Intranet user.
If it is not, then resolution server response message, and cache dns record.
In this implementation, in conjunction with Fig. 7, load-balancing device in resolution server response message, and cache dns record when, tool Body includes the following steps:
Nslookup whether there is, and if it does not exist, then will record information preservation into the corresponding chained list of operator;If depositing Then determining whether the corresponding chained list of operator is sky, if it is empty, then will record information preservation to this chained list, if not empty, then Determine whether record and the dns that parsing obtains in the chained list record identical, if it is different, then obtaining dns record pair using parsing Record in chained list is replaced.
Specifically, in conjunction with Fig. 9 and Figure 10, when by dns record information preservation into operator's corresponding chained list, tool Body form are as follows: domain name domain corresponds to hash barrels, the corresponding array of pointers of each domain name, wherein including multiple operator isp, often The corresponding chained list of a operator stores multiple resource records, i.e., for storing IP address, such as RR1.Wherein, hash is one kind Store the data structure of data.
Include such as under type during actually saving:
1) when domain name is empty:
After load-balancing device receives dns response message, the domain name being resolved to is domain4, and dns is recorded as RR10 (IP address), corresponding operator are isp1.When caching, as shown in figure 9, corresponding hash barrels of domain4 is sky, then directly insert Enter in domain4, and dns records RR10, is put into the corresponding chained list of isp1, completes information storage, as shown in Figure 10.
2) domain name is not empty, when corresponding operator is empty:
After load-balancing device receives dns response message, the domain name being resolved to is domain4, and dns is recorded as RR11, Corresponding operator is isp3.When caching, as shown in Figure 10, corresponding hash barrels of domain4 is not sky, the corresponding chained list of isp2 For sky, RR11 is put into the corresponding chained list of isp3.
3) domain name is not empty, and corresponding operator is also not sky, but when dns record value difference:
After load-balancing device receives dns response message, the domain name being resolved to is domain1, and dns is recorded as RR12, Corresponding operator is isp1.When caching, as shown in figure 9, corresponding hash barrels of domain4 is not sky, the corresponding chained list of isp1 It also is not sky, but isp1 extracts isp1 chained list and releasing memory, RR12 is put into the corresponding chained list of isp1, final result As shown in Figure 10.
The embodiment of the present invention is searching caching in this way by saving dns record according to the corresponding relationship with operator When, it can be recorded with searching with the consistent dns of user's operator by inquiring nearby.Ensure that user accesses in this way When server, preferential selection is nearest to access with the consistent server of user's operator, improves user and accesses speed Degree.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
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 a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of access method, which is characterized in that the described method comprises the following steps:
Vendor class belonging to the IP address of acquisition accessed server corresponding with domain name and accessed server;
According to vendor class belonging to accessed server by the IP address partitioned storage of the accessed server with institute It states in the corresponding domain name chained list of domain name, generates new access cache record sheet;
Receive the domain name to be visited that user sends;
According to operator belonging to the domain name to be visited and user, lookup and institute from the new access cache record sheet It states that domain name to be visited is identical and IP address with the consistent accessed server of user's operator, obtains server to be visited IP address;
The server ip address to be visited is sent to user, so that user accesses according to the server ip address to be visited Server.
2. access method as described in claim 1, which is characterized in that described to obtain corresponding with domain name accessed server Vendor class belonging to IP address and accessed server, specifically includes:
Receive the domain name mapping result of DNS domain name system feedback;
The IP address and each accessed service of several accessed servers corresponding with domain name are obtained according to the parsing result Vendor class belonging to device.
3. access method as claimed in claim 2, which is characterized in that the classification according to accessed server operator will The IP address partitioned storage of the accessed server forms new access cache in domain name chained list corresponding with domain name Record sheet specifically includes:
Search and whether have domain name chained list corresponding with domain name in original access cache record sheet, if not having, creation with The corresponding domain name chained list of domain name, according to vendor class belonging to accessed server, by the accessed server IP address is stored in operator's chained list of domain name chained list, to form new access cache record sheet;If so, then according to accessed Vendor class belonging to server adds to the IP address of the accessed server in corresponding operator's chained list, Or original IP address in corresponding operator's chained list is replaced using the IP address of the accessed server.
4. access method as described in claim 1, which is characterized in that according to fortune belonging to the domain name to be visited and user Quotient is sought, is searched from the new access cache record sheet identical and consistent with user's operator as the domain name to be visited Accessed server IP address, obtain server ip address to be visited, specifically include:
It whether there is domain corresponding with domain name to be visited in record buffer memory table according to accessing described in the domain name lookup to be visited Name chained list, domain name chained list, then be transmitted to domain name analysis system for domain name to be visited if it does not exist;Domain name chained list if it exists then obtains Operator corresponding with domain name chained list is obtained, and is searched in operator's chained list with the presence or absence of consistent with user's operator The IP address of accessed server domain name to be visited is transmitted to domain name solution if not depositing the IP address of accessed server Analysis system is accessed the IP address of server if it exists, then obtains server to be visited according to the IP address for being accessed server IP address.
5. a kind of access mechanism characterized by comprising
First obtains module, for obtaining belonging to IP address and the accessed server of accessed server corresponding with domain name Vendor class;
Generation module, for dividing the IP address of the accessed server according to vendor class belonging to accessed server Area is stored in domain name chained list corresponding with domain name, generates new access cache record sheet;
Receiving module, for receiving the domain name to be visited of user's transmission;
Second obtains module, for delaying from the new access according to operator belonging to the domain name to be visited and user Deposit searched in record sheet it is identical as the domain name to be visited and with the IP of the consistent accessed server of user's operator Location obtains server ip address to be visited;
Sending module, for the server ip address to be visited to be sent to user, so that user is according to the clothes to be visited Device IP address of being engaged in accesses server.
6. access mechanism as claimed in claim 5, which is characterized in that the first acquisition module is specifically used for: receiving DNS domain The domain name mapping result of name system feedback;
The IP address and each accessed service of several accessed servers corresponding with domain name are obtained according to the parsing result Vendor class belonging to device.
7. access mechanism as claimed in claim 5, which is characterized in that the generation module is specifically used for:
Search and whether have domain name chained list corresponding with domain name in original access cache record sheet, if not having, creation with The corresponding domain name chained list of domain name, according to vendor class belonging to accessed server, by the accessed server IP address is stored in operator's chained list of domain name chained list, to form new access cache record sheet;If so, then according to accessed Vendor class belonging to server adds to the IP address of the accessed server in corresponding operator's chained list, Or original IP address in corresponding operator's chained list is replaced using the IP address of the accessed server.
8. access mechanism as claimed in claim 5, which is characterized in that the second acquisition module is specifically used for:
It whether there is domain corresponding with domain name to be visited in record buffer memory table according to accessing described in the domain name lookup to be visited Name chained list, domain name chained list, then be transmitted to domain name analysis system for domain name to be visited if it does not exist;Domain name chained list if it exists then obtains Operator corresponding with domain name chained list is obtained, and is searched in operator's chained list with the presence or absence of consistent with user's operator The IP address of accessed server domain name to be visited is transmitted to domain name solution if not depositing the IP address of accessed server Analysis system is accessed the IP address of server if it exists, then obtains server to be visited according to the IP address for being accessed server IP address.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory, processor and is stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor The step of method according to any one of claims 1 to 4.
10. a kind of computer storage medium, which is characterized in that be stored with computer journey on the computer readable storage medium The step of sequence, the computer program realizes method according to any one of claims 1 to 4 when being executed by processor.
CN201811310005.9A 2018-11-02 2018-11-02 A kind of access method, device, computer equipment and computer storage medium Pending CN109451089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811310005.9A CN109451089A (en) 2018-11-02 2018-11-02 A kind of access method, device, computer equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811310005.9A CN109451089A (en) 2018-11-02 2018-11-02 A kind of access method, device, computer equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN109451089A true CN109451089A (en) 2019-03-08

Family

ID=65550712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811310005.9A Pending CN109451089A (en) 2018-11-02 2018-11-02 A kind of access method, device, computer equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN109451089A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010464A (en) * 2019-12-30 2020-04-14 杭州迪普科技股份有限公司 Domain name resolution method and device
CN112866116A (en) * 2020-12-31 2021-05-28 平安科技(深圳)有限公司 Network access detection method, device, equipment and storage medium
CN113438244A (en) * 2021-06-28 2021-09-24 安天科技集团股份有限公司 Penetration testing method and device, computing equipment and storage medium
CN115022285A (en) * 2022-06-02 2022-09-06 北京亿安天下科技股份有限公司 One-key automatic Internet communication equipment configuration method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202103713U (en) * 2011-04-21 2012-01-04 深圳市金正国脉科技发展有限公司 Visiting system
CN104253873A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Domain name parsing method, domain name server, domain name access method, system and terminal
CN105897942A (en) * 2015-09-17 2016-08-24 乐视云计算有限公司 Domain name resolution system and domain name resolution method
US20170126616A1 (en) * 2015-11-02 2017-05-04 Nominum, Inc. Delegation of Content Delivery to a Local Service
CN107197059A (en) * 2017-07-27 2017-09-22 杭州迪普科技股份有限公司 A kind of dns resolution method and device
CN107846483A (en) * 2017-11-10 2018-03-27 北京粉笔蓝天科技有限公司 A kind of domain name analytic method, system and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202103713U (en) * 2011-04-21 2012-01-04 深圳市金正国脉科技发展有限公司 Visiting system
CN104253873A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Domain name parsing method, domain name server, domain name access method, system and terminal
CN105897942A (en) * 2015-09-17 2016-08-24 乐视云计算有限公司 Domain name resolution system and domain name resolution method
US20170126616A1 (en) * 2015-11-02 2017-05-04 Nominum, Inc. Delegation of Content Delivery to a Local Service
CN107197059A (en) * 2017-07-27 2017-09-22 杭州迪普科技股份有限公司 A kind of dns resolution method and device
CN107846483A (en) * 2017-11-10 2018-03-27 北京粉笔蓝天科技有限公司 A kind of domain name analytic method, system and server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010464A (en) * 2019-12-30 2020-04-14 杭州迪普科技股份有限公司 Domain name resolution method and device
CN112866116A (en) * 2020-12-31 2021-05-28 平安科技(深圳)有限公司 Network access detection method, device, equipment and storage medium
CN113438244A (en) * 2021-06-28 2021-09-24 安天科技集团股份有限公司 Penetration testing method and device, computing equipment and storage medium
CN115022285A (en) * 2022-06-02 2022-09-06 北京亿安天下科技股份有限公司 One-key automatic Internet communication equipment configuration method and device
CN115022285B (en) * 2022-06-02 2024-02-09 北京亿安天下科技股份有限公司 Method and device for configuring one-key automatic internet communication equipment

Similar Documents

Publication Publication Date Title
CN110324177B (en) Service request processing method, system and medium under micro-service architecture
CN109451089A (en) A kind of access method, device, computer equipment and computer storage medium
KR102072203B1 (en) A node and a method for generating shortened name increasing adaptability of hierarchical name in a content centric network
EP2641383B1 (en) DNS server arrangement and method
JP5828760B2 (en) Method and system for cache optimization
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
US6795434B1 (en) Replicated server discovery in client-proxy servers
US7827280B2 (en) System and method for domain name filtering through the domain name system
CN109347998B (en) Method and system for detecting IP address of DNS (Domain name Server) outlet server
CN103685590B (en) Obtain the method and system of IP address
CN104580540B (en) The implementation method and device of website visiting
CN103139301A (en) Internet access accelerating method and device which are used in content distribution network system
CN103152396A (en) Data placement method and device applied to content distribution network system
CN107070988A (en) Message processing method and device
CN105847462A (en) Domain name resolution method and device
CN106301928A (en) A kind of web analysis, acquisition methods and device
CN106294848A (en) A kind of web analysis, acquisition methods and device
CN102546613A (en) Method for accessing GAE (Google app engine) hosted website, corresponding control device and corresponding system
EP3340582A1 (en) Determining a top level domain from a domain name
CN108494870A (en) Dynamic data loading method based on CDN and device
CN113055503A (en) IPv6 webpage link processing method, device, equipment and readable storage medium
US20230027121A1 (en) System and Method for Aggregating Data in a Remote Address Space
CN109495525B (en) Network component, method of resolving content identification, and computer-readable storage medium
CN113382093B (en) Domain name resolution method, electronic device and system
CN110661892B (en) Domain name configuration information processing method and device

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

Application publication date: 20190308

RJ01 Rejection of invention patent application after publication