CN104468857A - Corresponding relation obtaining method and system - Google Patents

Corresponding relation obtaining method and system Download PDF

Info

Publication number
CN104468857A
CN104468857A CN201410610517.2A CN201410610517A CN104468857A CN 104468857 A CN104468857 A CN 104468857A CN 201410610517 A CN201410610517 A CN 201410610517A CN 104468857 A CN104468857 A CN 104468857A
Authority
CN
China
Prior art keywords
address
local dns
outlet
dns
domain
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.)
Granted
Application number
CN201410610517.2A
Other languages
Chinese (zh)
Other versions
CN104468857B (en
Inventor
胡杨
黄鹏
谭利军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410610517.2A priority Critical patent/CN104468857B/en
Publication of CN104468857A publication Critical patent/CN104468857A/en
Application granted granted Critical
Publication of CN104468857B publication Critical patent/CN104468857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • 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]

Landscapes

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

Abstract

The embodiment of the invention provides a corresponding relation obtaining method and system. On one hand, the corresponding relation between an entry network interconnection protocol IP address of a local domain name system (DNS) and an exit IP address of the local DNS is obtained, the corresponding relation between the exit IP address of the local DNS and a public network IP address of a client side is obtained, and then according to the corresponding relation between the entry IP address of the local DNS and the exit IP address of the local DNS, and the corresponding relation between the exit IP address of the local DNS and the public network IP address of the client side, the corresponding relation between the entry IP address of the local DNS and the public network IP address of the client side is obtained. According to the technical scheme, the corresponding relation between the public network IP address of the client side and the entry IP address of the local DNS can be collected automatically, and the collecting efficiency of the corresponding relation is improved.

Description

A kind of acquisition methods of corresponding relation and system
[technical field]
The present invention relates to field of computer technology, particularly relate to a kind of acquisition methods and system of corresponding relation.
[background technology]
In prior art, at Domain Hijacking judgement, domain name system (Domain Name System, DNS) analytical optimization, competing product distributional analysis, content distributing network (Content Delivery Network, CDN), in the field such as flow switch, the corresponding relation using local dns and user is all needed.As Domain Hijacking judges Ingress Network interconnection agreement (the Internet Protocol of the local dns needing use a large amount of, IP) the address number of users of drawing, dns resolution optimization needs the domain name caching situation etc. obtaining local dns according to the entrance IP address of a large amount of local dns and the corresponding relation of user.
But, the corresponding relation of the outlet IP address of collecting user and local dns can only be realized at present, the corresponding relation of the entrance IP address of user and local dns cannot be obtained.If need the corresponding relation of the entrance IP address obtaining user and local dns, pop-up window in the client can only be passed through, request user manually inputs the entrance IP address of local dns, and user needs just can know this entrance IP address through searching, and causes the mode efficiency of the corresponding relation of the entrance IP address of collecting user and local dns at present very low.
[summary of the invention]
In view of this, embodiments provide a kind of acquisition methods and system of corresponding relation, the corresponding relation automatically collecting the public network IP address of client and the entrance IP address of local dns can be realized, improve the collection efficiency of this corresponding relation.
The one side of the embodiment of the present invention, provides a kind of acquisition methods of corresponding relation, comprising:
Obtain the corresponding relation of the Ingress Network interconnection agreement IP address of local domain name system DNS and the outlet IP address of described local dns;
Obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client;
According to the corresponding relation of the public network IP address of the corresponding relation of outlet IP address of the entrance IP address of described local dns and described local dns, the outlet IP address of described local dns and client, obtain the corresponding relation of the entrance IP address of described local dns and the public network IP address of described client.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the corresponding relation of the entrance IP address of described acquisition local dns and the outlet IP address of described local dns, comprising:
Read a DNS daily record, a described DNS daily record is for the outlet IP address of recording described local dns and the first domain-name information exported by the outlet IP address of described local dns, and described first domain-name information comprises the entrance IP address of described local dns;
According to outlet IP address and described first domain-name information of described local dns, obtain the corresponding relation of the entrance IP address of described local dns and the outlet IP address of described local dns.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and before described reading the one DNS daily record, described method also comprises:
Name server receives described first domain-name information that described local dns is sent by described outlet IP address; Wherein, described first domain-name information is that described local dns is arrived by described entrance IP address accept;
Described name server records described outlet IP address and described first domain-name information in a described DNS daily record.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the corresponding relation of the outlet IP address of the described local dns of described acquisition and the public network IP address of client, comprising:
Read the 2nd DNS daily record, described 2nd DNS daily record is for the outlet IP address of recording described local dns and the second domain-name information exported by the outlet IP address of described local dns, and described second domain-name information comprises the public network IP address of described client;
According to outlet IP address and described second domain-name information of described local dns, obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and before described reading the 2nd DNS daily record, described method also comprises:
Name server receives described second domain-name information that described local dns is sent by described outlet IP address; Wherein, described second domain-name information is that described local dns receives from described client;
Described name server records described outlet IP address and described second domain-name information in described 2nd DNS daily record.
The one side of the embodiment of the present invention, provide a kind of acquisition system of corresponding relation, comprise the acquisition device of corresponding relation, this device comprises:
First acquiring unit, for the corresponding relation of the outlet IP address of the Ingress Network interconnection agreement IP address and described local dns that obtain local domain name system DNS;
Second acquisition unit, for the corresponding relation of the public network IP address of the outlet IP address and client that obtain described local dns;
Automated generalization unit, for the corresponding relation of the public network IP address according to the corresponding relation of outlet IP address of the entrance IP address of described local dns and described local dns, the outlet IP address of described local dns and client, obtain the corresponding relation of the entrance IP address of described local dns and the public network IP address of described client.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described first acquiring unit, specifically for:
Read a DNS daily record, a described DNS daily record is for the outlet IP address of recording described local dns and the first domain-name information exported by the outlet IP address of described local dns, and described first domain-name information comprises the entrance IP address of described local dns;
According to outlet IP address and described first domain-name information of described local dns, obtain the corresponding relation of the entrance IP address of described local dns and the outlet IP address of described local dns.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described system also comprises name server and local dns; Wherein,
Described name server, for receiving described first domain-name information that described local dns is sent by described outlet IP address; Wherein, described first domain-name information is that described local dns is arrived by described entrance IP address accept;
Described name server, also for recording described outlet IP address and described first domain-name information in a described DNS daily record.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, described second acquisition unit further, specifically for:
Read the 2nd DNS daily record, described 2nd DNS daily record is for the outlet IP address of recording described local dns and the second domain-name information exported by the outlet IP address of described local dns, and described second domain-name information comprises the public network IP address of described client;
According to outlet IP address and described second domain-name information of described local dns, obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described system also comprises name server and local dns; Wherein,
Described name server, for receiving described second domain-name information that described local dns is sent by described outlet IP address; Wherein, described second domain-name information is that described local dns receives from described client;
Described name server, for recording described outlet IP address and described second domain-name information in described 2nd DNS daily record.
As can be seen from the above technical solutions, the embodiment of the present invention has following beneficial effect:
The embodiment of the present invention passes through the corresponding relation obtaining the Ingress Network interconnection agreement IP address of local domain name system DNS and the outlet IP address of described local dns, and obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client, and then the corresponding relation of public network IP address according to the corresponding relation of outlet IP address of the entrance IP address of described local dns and described local dns, the outlet IP address of described local dns and client, obtain the corresponding relation of the entrance IP address of described local dns and the public network IP address of described client.Compared with needing the mode of the entrance IP address of manually being searched, inputting local dns by user in prior art, the embodiment of the present invention can collect the corresponding relation of the public network IP address of client and the entrance IP address of local dns automatically, improve the collection efficiency of this corresponding relation, reduce human cost.
[accompanying drawing explanation]
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the acquisition methods of the corresponding relation that the embodiment of the present invention provides;
Fig. 2 is the exemplary plot of the embodiment one of the acquisition methods of the corresponding relation that the embodiment of the present invention provides;
Fig. 3 is the exemplary plot of the embodiment two of the acquisition methods of the corresponding relation that the embodiment of the present invention provides;
Fig. 4 is the exemplary plot of the embodiment three of the acquisition methods of the corresponding relation that the embodiment of the present invention provides;
Fig. 5 is the corresponding relation schematic diagram of the entrance IP address that provides of the embodiment of the present invention and user;
Fig. 6 is the functional block diagram of the acquisition system of the corresponding relation that the embodiment of the present invention provides.
[embodiment]
Technical scheme for a better understanding of the present invention, is described in detail the embodiment of the present invention below in conjunction with accompanying drawing.
Should be clear and definite, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.
Should be appreciated that term "and/or" used herein is only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Although should be appreciated that may adopt in embodiments of the present invention term first, second etc. DNS daily record or domain-name information are described, these keywords should not be limited to these terms.These terms are only used for DNS daily record to be distinguished from each other out.Such as, when not departing from embodiment of the present invention scope, a DNS daily record also can be called as the 2nd DNS daily record, and similarly, the 2nd DNS daily record also can be called as a DNS daily record.
Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining " or " in response to detection ".Similarly, depend on linguistic context, phrase " if determination " or " if detecting (the conditioned disjunction event of statement) " can be construed as " when determining " or " in response to determining " or " when detecting (the conditioned disjunction event of statement) " or " in response to detection (the conditioned disjunction event of statement) ".
The embodiment of the present invention provides a kind of acquisition methods of corresponding relation, please refer to Fig. 1, the schematic flow sheet of the acquisition methods of its corresponding relation provided for the embodiment of the present invention, and as shown in the figure, the method comprises the following steps:
S101, obtains the corresponding relation of the Ingress Network interconnection agreement IP address of local domain name system DNS and the outlet IP address of described local dns.
S102, obtains the corresponding relation of the outlet IP address of described local dns and the public network IP address of client.
S103, according to the corresponding relation of the public network IP address of the corresponding relation of outlet IP address of the entrance IP address of described local dns and described local dns, the outlet IP address of described local dns and client, obtain the corresponding relation of the entrance IP address of described local dns and the public network IP address of described client.
Concrete, in described S101, the method obtaining the corresponding relation of the entrance IP address of local dns and the outlet IP address of described local dns can include but not limited to:
First, read a DNS daily record, a described DNS daily record is for the outlet IP address of recording described local dns and the first domain-name information exported by the outlet IP address of described local dns.Described first domain-name information comprises the entrance IP address of described local dns.Then, according to outlet IP address and described first domain-name information of described local dns, the corresponding relation of the entrance IP address of described local dns and the outlet IP address of described local dns is obtained.
Optionally, before described reading the one DNS daily record, described method can also comprise: in a described DNS daily record, record described outlet IP address and described first domain-name information.
Illustrate, in a DNS daily record, the method for record outlet IP address and the first domain-name information can include but not limited to:
Please refer to Fig. 2, the exemplary plot of the embodiment one of the acquisition methods of its corresponding relation provided for the embodiment of the present invention, as shown in the figure, scan module sends recursion resolution request to entrance IP address a, wherein carries the first domain-name information in this recursion resolution request.Such as, described first domain-name information can include but not limited to entrance IP address a and domain name, as a+domain.
It should be noted that, this domain name refers to the domain name of Internet service provider, as www.baidu.com, www.sohu.com etc.
Such as, described first domain-name information can be 1.1.1.1+www.baidu.com, and wherein 1.1.1.1 represents the entrance IP address of local dns, and www.baidu.com represents domain name.
As shown in Figure 2, if entrance IP address a is the entrance IP address of local dns, then this local dns can send iterative resolution request by the outlet IP address b of this local dns self to name server (Name Server, NS).Wherein, in this iterative resolution request, carry the first domain-name information that local dns is received by entrance IP address a, thus realize local dns, by this outlet IP address b, the first domain-name information is exported to name server.Otherwise, if IP address a is not the entrance IP address of local dns, then abandon this recursion resolution request, process ends.
As shown in Figure 2, name server can receive described first domain-name information that local dns is sent by outlet IP address b.
Here, due to the outlet IP address b that name server is by local dns, receive the first domain-name information, so this name server can by this outlet IP address b and the first domain-name information received by this outlet IP address b, be recorded in a DNS daily record, a DNS daily record can be stored in local disk.Like this, a DNS daily record just can record the outlet IP address of a large amount of local dns, and the first domain-name information that each outlet IP address exports.
Such as, following information is recorded in a DNS daily record:
Outlet IP address b1:a+domain
Outlet IP address b2:a+domain
Outlet IP address b3:a+domain
As shown in Figure 2, when needing the corresponding relation obtaining the entrance IP address of local dns and the outlet IP address of described local dns, just can read an above-mentioned DNS daily record, and then every bar record is wherein resolved, to obtain outlet IP address wherein, and the entrance IP address that first comprises in domain-name information, and then the corresponding relation of this entrance IP address and this outlet IP address can be obtained.
In addition, as indicated with 2, the domain name preset in name server all right foundation configuration file and the corresponding relation of IP address, obtain the IP address corresponding to domain name comprised in the first domain-name information, and pass through the outlet IP address of local dns, IP address corresponding to this domain name is returned to local dns, and then the IP address corresponding to this domain name can also be returned to scan module by local dns.
It should be noted that, the IP address corresponding to domain name refers to the IP address of Web server, with above-mentioned entrance IP address with export IP address irrelevant.
Concrete, in described S102, the method obtaining the corresponding relation of the outlet IP address of local dns and the public network IP address of client can include but not limited to:
First, read the 2nd DNS daily record, described 2nd DNS daily record is for the outlet IP address of recording described local dns and the second domain-name information exported by the outlet IP address of described local dns, and described second domain-name information comprises the public network IP address of described client.Then, according to outlet IP address and described second domain-name information of described local dns, the corresponding relation of the outlet IP address of described local dns and the public network IP address of client is obtained.
Optionally, before described reading the 2nd DNS daily record, described method can also comprise: record outlet IP address and the second domain-name information in the 2nd DNS daily record.
Illustrate, in the 2nd DNS daily record, the method for record outlet IP address and the second domain-name information can include but not limited to:
Please refer to Fig. 3, the exemplary plot of the embodiment two of the acquisition methods of its corresponding relation provided for the embodiment of the present invention, as shown in the figure, client initiates a HTTP (HypertextTransfer Protocol to Web server, HTTP) ask, with the URL(uniform resource locator) of request access static resource (Uniform Resource Locator, URL).
Such as, client can acquisition request picture x.jpg, then need access http://domain/x.jpg.
As shown in Figure 3, the Web server of this static resource is provided to return the URL of the public network IP address comprising this client to client.Like this, client can be resolved this URL received from Web server, to obtain the second domain-name information of the public network IP address comprising client self.In addition, this second domain-name information can also comprise domain name domain, as www.baidu.com, www.sohu.com etc.
Such as, browser client request access http://www.baidu.com/1.jpg, Web server returns http to this browser client: // 1.1.1.1-www.baidu.com/1.jpg, and browser client resolves this URL, to obtain the second domain-name information 1.1.1.1-www.baidu.com.Wherein, in this second domain-name information, 1.1.1.1 is the public network IP address of this client, and www.baidu.com is domain name.
As shown in Figure 3, client, after acquisition second domain-name information, can send analysis request to local dns, carries this second domain-name information in this analysis request.
As shown in Figure 3, local dns, after receiving analysis request from client, utilizes the outlet IP address of self to send analysis request to name server, wherein carries described second domain-name information.
As shown in Figure 3, name server receives the second domain-name information that local dns is sent by outlet IP address.
Here, because name server is the second domain-name information arrived by the outlet IP address accept of local dns, so this name server by this outlet IP address and the second domain-name information arrived by this outlet IP address accept, can be recorded in the 2nd DNS daily record.2nd DNS daily record can be stored in local disk, and like this, the 2nd DNS daily record just can record the outlet IP address of a large amount of local dns, and the second domain-name information that each outlet IP address exports.
Such as, following information is recorded in the 2nd DNS daily record:
Outlet IP address b1:c1+domain
Outlet IP address b2:c1+domain
Outlet IP address b3:c1+domain
Wherein, c1 represents the public network IP address of client.
As shown in Figure 3, when needing the corresponding relation obtaining the outlet IP address of local dns and the public network IP address of client, just can read above-mentioned 2nd DNS daily record, and then every bar record is resolved, to obtain the public network IP address of the client comprised in outlet IP address and the second domain-name information, and then the corresponding relation of the outlet IP address of local dns and the public network IP address of client can be obtained.
In addition, as indicated at 3, the domain name preset in name server all right foundation configuration file and the corresponding relation of IP address, obtain the IP address in the second domain-name information corresponding to domain name, and the IP address corresponding to this domain name is returned to local dns, and then the IP address corresponding to this domain name can also be returned to client by local dns.Like this, client just can determine the Web server at static resource place according to the IP address obtained, and then obtains required static resource from this Web server.
Concrete, in described S103, can according to the corresponding relation of the outlet IP address of local dns obtained in the corresponding relation of the outlet IP address of the entrance IP address of the local dns obtained in S101 and local dns and S102 and the public network IP address of client, these two corresponding relations are carried out being polymerized, connecting mapping, just can obtain the corresponding relation of the entrance IP address of local dns and the public network IP address of client.
Such as, please refer to Fig. 4, the exemplary plot of the embodiment three of the acquisition methods of its corresponding relation provided for the embodiment of the present invention, as shown in the figure, outlet IP address b1, b2 and b3 of local dns and the corresponding relation of local entrance IP address a1 can be obtained in S101, local outlet IP address b1, b2 and b3 of DNS and the corresponding relation of the public network IP address c1 of client can be obtained in S102, therefore, these two groups of corresponding relations carry out being polymerized, connecting mapping, just can obtain the corresponding relation of the public network IP address c1 of local entrance IP address a1 and client.
Utilize the technique scheme that the embodiment of the present invention provides, a large number of users that the local dns finally can collecting ISP (Internet Service Provider, ISP) draws.
Such as, please refer to Fig. 5, the corresponding relation schematic diagram of its entrance IP address provided for the embodiment of the present invention and user, as shown in Figure 5, ISP has three local dns, i.e. local dns 1, local dns 2 and local dns 3, and each local dns has one to export IP address and an entrance IP address, utilize said method can obtain the public network IP address of the some clients corresponding to entrance IP address of each local dns, thus know a large number of users that the local dns of ISP draws.
The corresponding relation of the entrance IP address of the local dns that the technical scheme that the embodiment of the present invention provides obtains and the public network IP address of client, can be applied to following scene:
Scene one, DNS testing tool: the entrance IP address of the local dns using this method to collect, the parsing situation of certain domain name in operator can be detected, particularly useful for the CDN flow switch based on domain name, be convenient to check the come into force situation of domain name in each area.
Scene two, Domain Hijacking judge: the outlet IP address of the local dns that conventional acquisition method obtains, the entrance IP address of local dns can not be covered and export the inconsistent situation in IP address, cause the outlet IP address of collecting can not respond recursion resolution request, the technical scheme that the embodiment of the present invention provides can expand the coverage of collecting local dns, expands the scope of kidnapping and judging.
Scene three, dns resolution speed-optimization: if want the parsing time optimizing certain domain name, can behind the entrance IP address obtaining local dns, the recursion resolution request of certain domain name is sent according to the entrance IP of certain frequency to local dns, can the analysis result of this domain name of buffer memory, thus reach the object optimizing this domain name mapping speed.
Scene four, competing product distributional analysis: the corresponding relation utilizing the entrance IP address of local dns and the public network IP address of client obtained, resolve competing product domain name, obtain it in each operators distribution situation of every country, to be convenient to when addressing and competing product are analyzed as a reference, make competing product distributional analysis coverage more extensively, more accurate.
Scene five, DNS traction relation is perfect: the traction relation of traditional local dns is collected, just collect the corresponding relation of the outlet IP address of local dns and the public network IP address of client, when exporting IP address and entrance IP address is inconsistent, the technical scheme that the embodiment of the present invention provides, can also obtain the corresponding relation of the entrance IP address of local dns and the public network IP address of client, thus acquisition more fully draws relation.
It should be noted that, the executive agent of S101 ~ S103 can be the acquisition device of corresponding relation, this device can be positioned at the application of local terminal, or can also for being arranged in plug-in unit or SDK (the Software Development Kit of the application of local terminal, the functional unit such as SDK), the embodiment of the present invention is not particularly limited this.
Be understandable that, described application can be mounted in the application program (nativeApp) in terminal, or can also be a web page program (webApp) of browser in terminal, and the embodiment of the present invention does not limit this.
It should be noted that, terminal involved in the embodiment of the present invention can include but not limited to personal computer (Personal Computer, PC), personal digital assistant (Personal Digital Assistant, PDA), radio hand-held equipment, panel computer (Tablet Computer), mobile phone, MP3 player, MP4 player etc.
The embodiment of the present invention provides the device embodiment realizing each step and method in said method embodiment further.
Please refer to Fig. 6, the functional block diagram of the acquisition system of its corresponding relation provided for the embodiment of the present invention.As shown in the figure, this system comprises the acquisition device 60 of corresponding relation, and this device comprises:
First acquiring unit 601, for the corresponding relation of the outlet IP address of the Ingress Network interconnection agreement IP address and described local dns that obtain local domain name system DNS;
Second acquisition unit 602, for the corresponding relation of the public network IP address of the outlet IP address and client that obtain described local dns;
Automated generalization unit 603, for the corresponding relation of the public network IP address according to the corresponding relation of outlet IP address of the entrance IP address of described local dns and described local dns, the outlet IP address of described local dns and client, obtain the corresponding relation of the entrance IP address of described local dns and the public network IP address of described client.
Preferably, described first acquiring unit 601, specifically for:
Read a DNS daily record, a described DNS daily record is for the outlet IP address of recording described local dns and the first domain-name information exported by the outlet IP address of described local dns, and described first domain-name information comprises the entrance IP address of described local dns;
According to outlet IP address and described first domain-name information of described local dns, obtain the corresponding relation of the entrance IP address of described local dns and the outlet IP address of described local dns.
Optionally, described system also comprises name server 61 and local dns 62; Wherein,
Described name server 61, for receiving described first domain-name information that described local dns 62 is sent by described outlet IP address; Wherein, described first domain-name information is that described local dns 62 is arrived by described entrance IP address accept;
Described name server 61, also for recording described outlet IP address and described first domain-name information in a described DNS daily record.
Preferably, described second acquisition unit 602, specifically for:
Read the 2nd DNS daily record, described 2nd DNS daily record is for the outlet IP address of recording described local dns and the second domain-name information exported by the outlet IP address of described local dns, and described second domain-name information comprises the public network IP address of described client;
According to outlet IP address and described second domain-name information of described local dns, obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client.
Optionally, described system also comprises name server and local dns 62; Wherein,
Described name server 61, for receiving described second domain-name information that described local dns 62 is sent by described outlet IP address; Wherein, described second domain-name information is that described local dns 62 receives from described client;
Described name server 61, for recording described outlet IP address and described second domain-name information in described 2nd DNS daily record.
Because each unit in the present embodiment can perform the method shown in Fig. 1, the part that the present embodiment is not described in detail, can with reference to the related description to Fig. 1.
The technical scheme of the embodiment of the present invention has following beneficial effect:
The embodiment of the present invention passes through the corresponding relation obtaining the Ingress Network interconnection agreement IP address of local domain name system DNS and the outlet IP address of described local dns, and obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client, and then the corresponding relation of public network IP address according to the corresponding relation of outlet IP address of the entrance IP address of described local dns and described local dns, the outlet IP address of described local dns and client, obtain the corresponding relation of the entrance IP address of described local dns and the public network IP address of described client.Compared with needing the mode of the entrance IP address of manually being searched, inputting local dns by user in prior art, the embodiment of the present invention can break away from dependence user being inputted to this entrance IP address, automatically the corresponding relation of the public network IP address of client and the entrance IP address of local dns can be collected, thus the collection efficiency of this corresponding relation can be improved, can also human cost be reduced, there is feasibility.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, is only a kind of logic function and divides, and actual can have other dividing mode when realizing, such as, multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer installation (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. an acquisition methods for corresponding relation, is characterized in that, described method comprises:
Obtain the corresponding relation of the Ingress Network interconnection agreement IP address of local domain name system DNS and the outlet IP address of described local dns;
Obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client;
According to the corresponding relation of the public network IP address of the corresponding relation of outlet IP address of the entrance IP address of described local dns and described local dns, the outlet IP address of described local dns and client, obtain the corresponding relation of the entrance IP address of described local dns and the public network IP address of described client.
2. method according to claim 1, is characterized in that, the corresponding relation of the entrance IP address of described acquisition local dns and the outlet IP address of described local dns, comprising:
Read a DNS daily record, a described DNS daily record is for the outlet IP address of recording described local dns and the first domain-name information exported by the outlet IP address of described local dns, and described first domain-name information comprises the entrance IP address of described local dns;
According to outlet IP address and described first domain-name information of described local dns, obtain the corresponding relation of the entrance IP address of described local dns and the outlet IP address of described local dns.
3. method according to claim 2, is characterized in that, before described reading the one DNS daily record, described method also comprises:
Name server receives described first domain-name information that described local dns is sent by described outlet IP address; Wherein, described first domain-name information is that described local dns is arrived by described entrance IP address accept;
Described name server records described outlet IP address and described first domain-name information in a described DNS daily record.
4. method according to claim 1, is characterized in that, the corresponding relation of the outlet IP address of the described local dns of described acquisition and the public network IP address of client, comprising:
Read the 2nd DNS daily record, described 2nd DNS daily record is for the outlet IP address of recording described local dns and the second domain-name information exported by the outlet IP address of described local dns, and described second domain-name information comprises the public network IP address of described client;
According to outlet IP address and described second domain-name information of described local dns, obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client.
5. method according to claim 4, is characterized in that, before described reading the 2nd DNS daily record, described method also comprises:
Name server receives described second domain-name information that described local dns is sent by described outlet IP address; Wherein, described second domain-name information is that described local dns receives from described client;
Described name server records described outlet IP address and described second domain-name information in described 2nd DNS daily record.
6. an acquisition system for corresponding relation, is characterized in that, described system comprises the acquisition device of corresponding relation, and this device comprises:
First acquiring unit, for the corresponding relation of the outlet IP address of the Ingress Network interconnection agreement IP address and described local dns that obtain local domain name system DNS;
Second acquisition unit, for the corresponding relation of the public network IP address of the outlet IP address and client that obtain described local dns;
Automated generalization unit, for the corresponding relation of the public network IP address according to the corresponding relation of outlet IP address of the entrance IP address of described local dns and described local dns, the outlet IP address of described local dns and client, obtain the corresponding relation of the entrance IP address of described local dns and the public network IP address of described client.
7. system according to claim 6, is characterized in that, described first acquiring unit, specifically for:
Read a DNS daily record, a described DNS daily record is for the outlet IP address of recording described local dns and the first domain-name information exported by the outlet IP address of described local dns, and described first domain-name information comprises the entrance IP address of described local dns;
According to outlet IP address and described first domain-name information of described local dns, obtain the corresponding relation of the entrance IP address of described local dns and the outlet IP address of described local dns.
8. system according to claim 7, is characterized in that, described system also comprises name server and local dns; Wherein,
Described name server, for receiving described first domain-name information that described local dns is sent by described outlet IP address; Wherein, described first domain-name information is that described local dns is arrived by described entrance IP address accept;
Described name server, also for recording described outlet IP address and described first domain-name information in a described DNS daily record.
9. system according to claim 6, is characterized in that, described second acquisition unit, specifically for:
Read the 2nd DNS daily record, described 2nd DNS daily record is for the outlet IP address of recording described local dns and the second domain-name information exported by the outlet IP address of described local dns, and described second domain-name information comprises the public network IP address of described client;
According to outlet IP address and described second domain-name information of described local dns, obtain the corresponding relation of the outlet IP address of described local dns and the public network IP address of client.
10. system according to claim 9, is characterized in that, described system also comprises name server and local dns; Wherein,
Described name server, for receiving described second domain-name information that described local dns is sent by described outlet IP address; Wherein, described second domain-name information is that described local dns receives from described client;
Described name server, for recording described outlet IP address and described second domain-name information in described 2nd DNS daily record.
CN201410610517.2A 2014-11-03 2014-11-03 A kind of acquisition methods and system of correspondence Active CN104468857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410610517.2A CN104468857B (en) 2014-11-03 2014-11-03 A kind of acquisition methods and system of correspondence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410610517.2A CN104468857B (en) 2014-11-03 2014-11-03 A kind of acquisition methods and system of correspondence

Publications (2)

Publication Number Publication Date
CN104468857A true CN104468857A (en) 2015-03-25
CN104468857B CN104468857B (en) 2018-10-16

Family

ID=52914204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410610517.2A Active CN104468857B (en) 2014-11-03 2014-11-03 A kind of acquisition methods and system of correspondence

Country Status (1)

Country Link
CN (1) CN104468857B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933843A (en) * 2017-05-26 2018-12-04 贵州白山云科技有限公司 A kind of DNS dispatching method and device
CN109347998A (en) * 2018-12-27 2019-02-15 网宿科技股份有限公司 A kind of detection method and system of the address DNS output port server ip
CN112702445A (en) * 2019-10-23 2021-04-23 中盈优创资讯科技有限公司 Recursive log extraction method and device based on DNS response data message

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200335A1 (en) * 2002-04-22 2003-10-23 Hyung-Suk Choi Method for domain name system spoofing in local network system
CN101262433A (en) * 2007-03-09 2008-09-10 国际商业机器公司 System and method for accessing network resource
CN101572676A (en) * 2009-06-17 2009-11-04 杭州华三通信技术有限公司 Load sharing method and equipment of double outlets at data center
JP4986266B2 (en) * 2008-01-31 2012-07-25 日本電気株式会社 Terminal with communication restriction function, method and program thereof
EP2553908A2 (en) * 2010-03-26 2013-02-06 France Télécom Dns server, gateways and methods for managing an identifier of a port range in the transmission of data
CN103024098A (en) * 2012-12-27 2013-04-03 北京百度网讯科技有限公司 Domain name resolution method, system and device
CN103248715A (en) * 2012-02-07 2013-08-14 北京百度网讯科技有限公司 Position detection method and device for CDN

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200335A1 (en) * 2002-04-22 2003-10-23 Hyung-Suk Choi Method for domain name system spoofing in local network system
CN101262433A (en) * 2007-03-09 2008-09-10 国际商业机器公司 System and method for accessing network resource
JP4986266B2 (en) * 2008-01-31 2012-07-25 日本電気株式会社 Terminal with communication restriction function, method and program thereof
CN101572676A (en) * 2009-06-17 2009-11-04 杭州华三通信技术有限公司 Load sharing method and equipment of double outlets at data center
EP2553908A2 (en) * 2010-03-26 2013-02-06 France Télécom Dns server, gateways and methods for managing an identifier of a port range in the transmission of data
CN103248715A (en) * 2012-02-07 2013-08-14 北京百度网讯科技有限公司 Position detection method and device for CDN
CN103024098A (en) * 2012-12-27 2013-04-03 北京百度网讯科技有限公司 Domain name resolution method, system and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933843A (en) * 2017-05-26 2018-12-04 贵州白山云科技有限公司 A kind of DNS dispatching method and device
CN108933843B (en) * 2017-05-26 2021-07-06 贵州白山云科技股份有限公司 DNS (Domain name Server) scheduling method and device
CN109347998A (en) * 2018-12-27 2019-02-15 网宿科技股份有限公司 A kind of detection method and system of the address DNS output port server ip
CN112702445A (en) * 2019-10-23 2021-04-23 中盈优创资讯科技有限公司 Recursive log extraction method and device based on DNS response data message
CN112702445B (en) * 2019-10-23 2023-04-07 中盈优创资讯科技有限公司 Recursive log extraction method and device based on DNS response data message

Also Published As

Publication number Publication date
CN104468857B (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN1128415C (en) Customization of web pages based on requester type
CN102799662B (en) Method, the Apparatus and system of network address is recommended based on domain name access historical record
CN104216921B (en) A kind of addition reminding method, apparatus and system for realizing quick links in browser
CN104754073A (en) Resource access method and device
CN110083789B (en) Applet page acquisition method, server, client and electronic equipment
CN108574742B (en) Domain name information collection method and domain name information collection device
US20090287713A1 (en) Systems and methods for measuring online public relation and social media metrics using link scanning technology
CN107342913B (en) Detection method and device for CDN node
CN104980446A (en) Detection method and system for malicious behavior
CN102752288A (en) Method and device for identifying network access action
CN104219230B (en) Identify method and the device of malicious websites
CN103618696B (en) Method and server for processing cookie information
CN103269479A (en) Call ticket processing method, device and system
CN102055815B (en) System for acquiring local domain name analyses server of caller
CN105516390B (en) Domain name management method and device
KR20100095208A (en) System and method for tracking webpage click information
CN106790593B (en) Page processing method and device
US20110270691A1 (en) Method and system for providing url possible new advertising
CN104901961A (en) Data pushing method, server, terminal and system
CN104468857A (en) Corresponding relation obtaining method and system
CN1571967B (en) Search system and method
CN102035905B (en) Method for obtaining visitor Local DNS (Local Domain-Name Server)
CN103618639A (en) Method, device and system for monitoring media data
CN103577426A (en) Method, device and system for providing additional application messages of searching suggestion
US9843559B2 (en) Method for determining validity of command and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant