CN112019644B - Method, system, medium and equipment for determining attribution information of IP address - Google Patents

Method, system, medium and equipment for determining attribution information of IP address Download PDF

Info

Publication number
CN112019644B
CN112019644B CN201910459203.XA CN201910459203A CN112019644B CN 112019644 B CN112019644 B CN 112019644B CN 201910459203 A CN201910459203 A CN 201910459203A CN 112019644 B CN112019644 B CN 112019644B
Authority
CN
China
Prior art keywords
address
domain name
name server
attribution information
determined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910459203.XA
Other languages
Chinese (zh)
Other versions
CN112019644A (en
Inventor
黄敏敏
罗忠贤
蔡少君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Baishancloud Technology Co Ltd
Original Assignee
Guizhou Baishancloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Baishancloud Technology Co Ltd filed Critical Guizhou Baishancloud Technology Co Ltd
Priority to CN201910459203.XA priority Critical patent/CN112019644B/en
Publication of CN112019644A publication Critical patent/CN112019644A/en
Application granted granted Critical
Publication of CN112019644B publication Critical patent/CN112019644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Abstract

A method, system, medium, and apparatus for determining attribution information for an IP address are disclosed. The method comprises the following steps: acquiring information of an IP section to which an IP address to be determined belongs; and judging whether the IP section comprises the IP address of a local domain name server or not based on the information of the IP section, and if so, determining the attribution information of the IP address to be determined attributing through the local domain name server. By adopting the method, the attribution information of the IP address can be determined more accurately.

Description

Method, system, medium and equipment for determining attribution information of IP address
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, a system, a medium, and a device for determining attribution information of an IP address.
Background
There are many IP databases on the market today, such as IPIP databases, IP challenge databases, and truthful IP databases. Although each company has professional personnel to analyze and test the attribution of the IP address, because the testing period and the updating frequency period of each company are different, the attribution of some IP addresses in each IP database is often inconsistent. In addition, due to the frequency of IP address attribution changes and the lease of some small operators, some IP addresses are also attributed differently in the various IP databases that are currently present.
Taking the current processing mode of most cloud manufacturers as an example, when a user complains that the access of some IP addresses is slow or fails, the attribution of the IP addresses is usually queried directly according to the accurate version IP database purchased inside the own company, such as an IPIP database and an IP query database, and then the attribution of the IP addresses is tested by using ping and traceroute or roughly attributed by referring to other friends to find out the attribution which is considered to be more accurate for adjustment.
However, the prior art has the following disadvantages:
(1) at present, a plurality of small operators exist, such as peng doctors, middle offices, hundreds of millions of thousands of years and the like, the small operators often rent the lines of some large operators as their own private lines, and for the attribution of the part of the related IP addresses, the attribution is also often inaccurate in some commonly used IP databases;
(2) the method comprises the steps that the attribution of an IP address is confirmed according to IP databases of other professional companies, and depending on databases of other companies, when the attribution of the IP address is changed on the same day, if the purchased IP database is not updated in real time, the attribution of the IP address is wrong, so that the problem that a user still has slow access or fails can be caused;
(3) when only two detection methods of ping or traceroute are used, when operators in a small area rent IP sections with adjacent areas, the most accurate attribution of IP addresses is difficult to find out;
(4) referring to the attribution of the IP addresses of other friends, if the IP database of the friend is not updated in time, the problem of inaccurate IP address attribution occurs.
In the field of cloud distribution technology, the requirement on accuracy of IP address attribution is very high, and therefore, a method capable of accurately positioning attribution of an IP address is needed.
Disclosure of Invention
In order to solve the problem of determining the attribution information of the IP address in the prior art, a method, a system, a medium and equipment for determining the attribution information of the IP address are provided.
According to an aspect of the present application, there is provided a method of determining attribution information for an IP address, the method comprising:
acquiring information of an IP section to which an IP address to be determined belongs;
and judging whether the IP section comprises the IP address of a local domain name server or not based on the information of the IP section, and if so, determining the attribution information of the IP address to be determined attributing through the local domain name server.
Wherein the determining, by the local domain name server, attribution information of the to-be-determined attribution IP address includes:
acquiring the access amount of the local domain name server to access each domain name server in a set time period;
obtaining a test domain name server based on the access amount, wherein the test domain name server is a domain name server corresponding to the access amount of N bits before ranking, and N is a natural number more than or equal to 1;
and determining attribution information of the IP address to be determined attribution through the local domain name server and the test domain name server.
Wherein, the determining the attribution information of the IP address to be determined attribution through the local domain name server and the test domain name server comprises:
acquiring attribution information of the user IP address, which is obtained after the test domain name server processes the access from the user IP address forwarded by the local domain name server;
and using the attribution information of the user IP address as the attribution information of the IP address to be determined.
Wherein, the obtaining of the attribution information of the user IP address obtained after the testing domain name server processes the access from the user IP address forwarded by the local domain name server further includes:
adding the IP address of the local domain name server to a view area of a configuration file of the test domain name server;
and after the local domain name server forwards the access from the user IP address to the testing domain name server, acquiring the attribution information of the user IP address based on the information of the view area of the testing domain name server.
Wherein the method further comprises:
if the IP address of the local domain name server is not included, determining attribution information of the IP address to be determined by adopting at least one of the following modes:
determining attribution information of the IP address to be determined attribution by using a set IP database;
and determining attribution information of the IP address to be determined according to the transmission delay from the IP address to be determined to the set domain name server in each set region.
Wherein the attribution information of the IP address to be determined includes at least one of the following: the operator to which the IP address to be determined belongs and the area to which the IP address to be determined belongs.
According to another aspect of the present application, there is also provided a system for determining attribution information of an IP address, the system comprising:
the device comprises an acquisition unit, a judging unit and a judging unit, wherein the acquisition unit is configured to acquire information of an IP section to which an IP address to be determined belongs;
a judging unit configured to judge whether the IP section includes an IP address of a local domain name server based on the information of the IP section;
a first determining unit configured to determine attribution information of the IP address to be determined attributing by the local domain name server when the judging unit judges whether the IP segment includes the IP address of the local domain name server.
Wherein the first determination unit is further configured to:
acquiring the access amount of the local domain name server to access each domain name server in a set time period;
obtaining a test domain name server based on the access amount, wherein the test domain name server is a domain name server corresponding to the access amount of N bits before ranking, and N is a natural number more than or equal to 1;
and determining attribution information of the IP address to be determined attribution through the local domain name server and the test domain name server.
Wherein the first determination unit is further configured to:
acquiring attribution information of the user IP address, which is obtained after the test domain name server processes the access from the user IP address forwarded by the local domain name server;
and using the attribution information of the user IP address as the attribution information of the IP address to be determined.
Wherein the first determination unit is further configured to:
adding the IP address of the local domain name server to a view area of a configuration file of the test domain name server;
and after the local domain name server forwards the access from the user IP address to the testing domain name server, acquiring the attribution information of the user IP address based on the information of the view area of the testing domain name server.
Wherein the system further comprises a second determining unit configured to determine attribution information of the IP address to which the determination is attributed by at least one of the following manners:
determining attribution information of the IP address to be determined attribution by using a set IP database;
and determining attribution information of the IP address to be determined according to the transmission delay from the IP address to be determined to the set domain name server in each set region.
Wherein the attribution information of the IP address to be determined includes at least one of the following: the operator to which the IP address to be determined belongs and the area to which the IP address to be determined belongs.
According to another aspect of the present application, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method.
According to another aspect of the present application, there is also provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the program.
In the present application, the attribution information of the IP address is determined by using the local domain name server in the IP segment to which the IP address belongs and the further determined test domain name server. Here, the selected local domain name server is the local domain name server that establishes the actual connection, rather than the local domain name server that is present at the head end. Therefore, the home information of the IP address can be more accurately determined by using the local domain name server.
The method in the application does not depend on other IP databases, and can accurately determine the attribution information of the IP address under the condition that the attribution of the IP databases is inaccurate or not updated in time. In addition, the method in the application is also suitable for the condition that the operators in small operators or small regions rent lines.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a method of determining attribution information for an IP address according to the present application;
fig. 2 is a block diagram of a system for determining attribution information for an IP address according to the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Taking the current processing mode of most cloud manufacturers as an example, when a user complains that the access of some IP addresses is slow or fails, the attribution of the IP addresses is usually queried directly according to the accurate version IP database purchased inside the own company, such as an IPIP database and an IP query database, and then the attribution of the IP addresses is tested by using ping and traceroute or roughly attributed by referring to other friends to find out the attribution which is considered to be more accurate for adjustment.
However, with the prior art method, the attribution of the IP address is still inaccurate. However, in the field of cloud distribution technology, the requirement on accuracy of IP address attribution is very high.
Based on the above problems, the present application provides a method capable of accurately determining the attribution of an IP address. The method is independent of other IP databases, and the attribution of the IP address is determined by acquiring the attribution of the IP address of a LOCAL domain name server (LOCAL DNS) in the IP section to which the IP address belongs.
The application provides a method for determining attribution information of an IP address, which is characterized by comprising the following steps:
step 101, acquiring information of an IP section to which an IP address to be determined belongs;
and 102, judging whether the IP section comprises the IP address of a local domain name server or not based on the information of the IP section, and if so, determining the attribution information of the IP address to be determined by the local domain name server.
In step 101, the information of the IP segment to which the IP address belongs is obtained through the IP address, which can be implemented in the existing manner and is not described herein again. In the method, whether the IP section to which the IP address to be determined belongs comprises the IP address of the local domain name server or not is judged, and the attribution information of the IP address is determined based on the local domain name server. Here, the reason why the belonging IP segment is utilized is that an IP address is representative of the belonging IP segment, and that the attribution of an IP address is determined to be equivalent to the attribution of the belonging IP segment. Therefore, it is necessary to first acquire information of an IP segment to which an IP address belongs.
In the solution of the present application, attribution information of an IP address is determined by means of a local domain name server. And if the IP address of the LOCAL DNS exists in the IP section to which the IP address belongs, selecting the IP address of the LOCAL DNS with the largest access quantity. That is, if the IP segment to which the IP address belongs includes IP addresses of a plurality of LOCAL DNS, the IP address of the LOCAL DNS having the largest access amount is specified, and the attribution information of the IP address is specified based on the IP address of the LOCAL DNS.
In an alternative embodiment, determining attribution information of an IP address to be attributed by the local domain name server includes:
step 201, obtaining the access amount of each domain name server accessed by a local domain name server within a set time period;
step 202, obtaining a test domain name server based on the access amount, wherein the test domain name server is a domain name server corresponding to the access amount of N bits before ranking, and N is a natural number more than or equal to 1;
step 203, determining the attribution information of the IP address to be determined attribution through the local domain name server and the test domain name server.
The set time period in step 201 may be set according to actual needs, for example, one day. For example, the access amount of the LOCAL DNS to each domain name server in a day can be obtained through the access log. And then sequencing the access quantities, and selecting the domain name server with the N-bit top-ranked access quantity as a test domain name server. The test domain name server is used to test the attribution of the IP address of the LOCAL DNS. N here may be 1 or 2 according to actual conditions.
It should be noted that the domain name server with a large access amount is selected for testing, so that the information of the user can be collected more quickly. Because, if the domain name server is accessed only occasionally (the access amount is small), it is possible that the test time is long and no information is collected, which affects the effectiveness and efficiency of the method for determining the attribution information of the IP address.
In an alternative embodiment, determining attribution information of an IP address to be determined to be attributed by a local domain name server and a test domain name server includes:
step 301, obtaining attribution information of a user IP address obtained after a test domain name server processes access from the user IP address forwarded by a local domain name server;
step 302, using the attribution information of the user IP address as the attribution information of the IP address to be determined attribution.
After the access from the user IP address is forwarded from the LOCAL DNS to the testing domain name server, the testing domain name server responds to the access, and as a processing result of responding to the access, the attribution information of the user IP address sending the access can be obtained. The attribution information of the corresponding IP address can be obtained by utilizing the attribution information of the IP address of the user.
It should be noted that the local domain name server selected by using the IP address of the local domain name server included in the IP segment to which the IP address belongs is the local domain name server for establishing the actual connection, rather than the local domain name server presented in the front end. Therefore, the local domain name server can be used for more accurately determining the attribution information of the IP address to be determined. And, because the local domain name server selected for establishing the actual connection, in the method, the attribution information of the user IP address determined by the local domain name server and the testing domain name server is consistent on the basis of both and is consistent with the attribution information of the IP address to be determined.
In an optional embodiment, obtaining attribution information of the user IP address obtained after the testing domain name server processes the access from the user IP address forwarded by the local domain name server further includes:
step 401, adding the IP address of the local domain name server to the view area of the configuration file of the test domain name server;
step 402, after the local domain name server forwards the access from the user IP address to the testing domain name server, the attribution information of the user IP address is obtained based on the information of the view area of the testing domain name server.
The operation of step 401 may be specifically realized by the following steps: and modifying the configuration file of the testing domain name server, mainly modifying a name.conf file, and adding the IP address of the LOCAL DNS into a view area (view) of the configuration file of the selected testing domain name server. The view is a field involved in the configuration of the domain name server, and when the domain name server is tested to analyze the domain name in the view, the attribution of the domain name server is judged according to the IP address of the visiting user, and the record A is given. The view is divided according to the operator and the region to which the IP address belongs, and is mainly used for scheduling the IP address of the user to a designated area according to the attribution of the IP address of the user, so that the user can obtain the optimal access resource. Step 402 may also include selecting a separate host in the testing domain name server for testing to obtain accurate data. On the test host, collecting the main visiting user IP in each view, counting the regions and operators to which the main visiting user IP belongs, and selecting the region and operator with the highest ratio as the attribution of each main visiting user IP.
Here, with the above configuration, the access of a user IP to the local domain name server is forwarded to the specified test domain name server, and the attribution information of the IP address to be attributed is determined according to the attribution information of the user IP given by the test domain name server.
In an alternative embodiment, the method further comprises: if the IP address of the local domain name server is not included, determining attribution information of the IP address to be determined by adopting at least one of the following modes:
determining attribution information of an IP address to be determined attribution by using a set IP database;
and secondly, determining attribution information of the IP address to be determined by using the transmission delay from the IP address to be determined to the set domain name server in each set region.
In the first embodiment, the attribution information of the IP address is determined by performing a query in, for example, an IPIP database, an IP question database, a truthful IP database, or the like. In addition, the attribution information of the IP address can also be determined by the friend IP database. For example, a common domain name server for Tencent is called, an IP address of attribution information to be determined is input, the domain name of each friend is analyzed, scheduling information of the friend on the IP address is obtained, and then an operator and an area occupying the largest ratio are selected as the attribution information of the IP address by summarizing the scheduling information of each friend.
In the second mode, the attribution information of the IP address to be determined to be attributed may be determined by the following procedure:
(1) sending out data packets to the IP section to which the IP address belongs concurrently, namely sending out the data packets to each IP port of the IP section simultaneously;
(2) outputting one of the IP addresses which survive in the IP section according to the received response data packet;
(3) selecting a server from each belonging area as a host computer for testing through attribution information (mainly referring to belonging area information) of the IP address obtained in the first mode;
(4) and (3) inputting the surviving IP address obtained in the step (2) and the test host in each affiliated area obtained in the step (3) into a time delay detection tool as input sources to obtain the time delay from the IP address to each area, further obtaining the lowest time delay therein, and taking the area corresponding to the lowest time delay as the affiliated area of the IP address.
Specifically, after the IP address attribution of the LOCAL DNS is obtained in the step 402, the IP address of the LOCAL DNS may be detected in the first and/or second manner, and the result obtained in the step 402 may be compared with the result obtained in the first and/or second manner. If the comparison result is consistent, the consistent result is used as the attribution information of the IP address, and if the comparison result is inconsistent, the verification can be further carried out to the operator based on the result. Therefore, the accuracy of the IP address attribution information is further ensured through a mode of twice verification.
In an alternative embodiment, the attribution information of the IP address to be determined attributed includes at least one of: the operator to which the IP address to be determined belongs and the area to which the IP address to be determined belongs. Also, the area referred to herein generally refers to the province.
It should be noted that the methods described in step 101 and step 102 proposed in the present application may also be applied in the case where the results obtained by the first and second methods are inconsistent. That is, if the results obtained by the first and second ways are consistent, the attribution information of the IP address to be determined to be attributed can be directly determined.
A specific embodiment according to the present application is described in detail below, which comprises the steps of:
acquiring attribution information of an IP address to be determined by using an IPIP database, an IP question database and a truthful IP database;
step two, when the attribution information obtained by the IP database is inconsistent, obtaining the information of the IP section to which the IP address to be determined belongs;
step three, judging whether the IP section comprises the IP address of the local domain name server or not based on the information of the IP section;
if yes, obtaining the access amount of the local domain name server accessing each domain name server in one day;
step five, based on the access amount, obtaining a domain name server corresponding to the maximum access amount, and taking the domain name server as a test domain name server;
step six, adding the IP address of the local domain name server into a view area of a configuration file of the test domain name server;
step seven, the local domain name server forwards the access from the user IP address received by the local domain name server to a test domain name server;
step eight, after processing the visit forwarded by the local domain name server, the testing domain name server outputs the attribution information of the user IP sending the visit;
step nine, the attribution information of the user IP is used as the attribution information of the IP address to be determined to be attributed;
step ten, determining attribution information of the IP address to be determined attribution through the second mode, comparing the attribution information with the attribution information obtained in the step nine, and if the attribution information is consistent with the attribution information obtained in the step nine, determining that the attribution information obtained in the step nine is correct.
By adopting the method, the attribution information of the IP address to be determined is determined by utilizing the local domain name server in the IP section to which the IP address belongs and the further determined test domain name server, so that the attribution information of the IP address to be determined can be more accurately determined.
The present application also provides a system for determining attribution information of an IP address, as shown in fig. 2, the system includes:
an obtaining unit 201 configured to obtain information of an IP segment to which an IP address to be determined belongs;
a determining unit 202 configured to determine whether the IP segment includes an IP address of a local domain name server based on the information of the IP segment;
a first determining unit 203 configured to determine attribution information of the IP address to be determined attributing by the local domain name server when the judging unit judges whether the IP segment includes the IP address of the local domain name server.
In an alternative embodiment, the first determining unit 203 is further configured to:
acquiring the access amount of the local domain name server to access each domain name server in a set time period;
obtaining a test domain name server based on the access amount, wherein the test domain name server is a domain name server corresponding to the access amount of N bits before ranking, and N is a natural number more than or equal to 1;
and determining attribution information of the IP address to be determined attribution through the local domain name server and the test domain name server.
In an alternative embodiment, the first determining unit 203 is further configured to:
acquiring attribution information of the user IP address, which is obtained after the test domain name server processes the access from the user IP address forwarded by the local domain name server;
and using the attribution information of the user IP address as the attribution information of the IP address to be determined.
In an alternative embodiment, the first determining unit 203 is further configured to:
adding the IP address of the local domain name server to a view area of a configuration file of the testing domain name server;
and after the local domain name server forwards the access from the user IP address to the testing domain name server, acquiring the attribution information of the user IP address based on the information of the view area of the testing domain name server.
In an optional embodiment, the system further includes a second determining unit configured to determine attribution information of the IP address to which the determination is attributed in at least one of the following manners:
determining attribution information of the IP address to be determined attribution by using a set IP database;
and in the second mode, the attribution information of the IP address to be determined and attributed is determined by using the transmission time delay from the IP address to be determined and attributed to the set domain name server in each set region.
In an optional embodiment, the attribution information of the IP address to be determined to be attributed includes at least one of: the operator to which the IP address to be determined belongs and the area to which the IP address to be determined belongs.
For the specific implementation and detailed description of the system, reference may be made to the specific implementation and description of the method, which are not repeated herein.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of the present application.
The present application further provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of the present application when executing the program.
In the present application, the attribution information of the IP address is determined by using the local domain name server in the IP segment to which the IP address belongs and the further determined test domain name server. Here, the selected local domain name server is the local domain name server that establishes the actual connection, rather than the local domain name server that is present at the head end. Therefore, the home information of the IP address can be more accurately determined by using the local domain name server.
The method in the application does not depend on other IP databases, and can accurately determine the attribution information of the IP address under the condition that the attribution of the IP databases is inaccurate or not updated in time. In addition, the method in the application is also suitable for the condition that the operators in small operators or small regions rent lines.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, including, but not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer, and the like. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of additional like elements in the article or device comprising the element.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.

Claims (12)

1. A method of determining attribution information for an IP address, the method comprising:
acquiring information of an IP section to which an IP address to be determined belongs;
judging whether the IP section comprises the IP address of a local domain name server or not based on the information of the IP section, and if so, determining the attribution information of the IP address to be determined attributing through the local domain name server;
wherein the determining, by the local domain name server, attribution information of the to-be-determined attribution IP address includes:
acquiring the access amount of the local domain name server to access each domain name server in a set time period;
obtaining a test domain name server based on the access amount, wherein the test domain name server is a domain name server corresponding to the access amount of N bits before ranking, and N is a natural number more than or equal to 1;
determining attribution information of the IP address to be determined attribution through the local domain name server and the test domain name server;
the local domain name server is used for establishing actual connection.
2. The method of claim 1, wherein the determining, by the local domain name server and the test domain name server, attribution information for the IP address to which the determination is attributed comprises:
acquiring attribution information of the user IP address, which is obtained after the test domain name server processes the access from the user IP address forwarded by the local domain name server;
and using the attribution information of the user IP address as the attribution information of the IP address to be determined.
3. The method of claim 2, wherein the obtaining of the attribution information of the user IP address obtained by the test domain name server after processing the access from the user IP address forwarded by the local domain name server, further comprises:
adding the IP address of the local domain name server to a view area of a configuration file of the test domain name server;
and after the local domain name server forwards the access from the user IP address to the testing domain name server, acquiring the attribution information of the user IP address based on the information of the view area of the testing domain name server.
4. The method of claim 1, wherein the method further comprises:
if the IP address of the local domain name server is not included, determining attribution information of the IP address to be determined by adopting at least one of the following modes:
determining attribution information of the IP address to be determined attribution by using a set IP database;
and determining attribution information of the IP address to be determined according to the transmission delay from the IP address to be determined to the set domain name server in each set region.
5. The method of claim 1, wherein the attribution information of the IP address to be attributed for determination comprises at least one of: the operator to which the IP address to be determined belongs and the area to which the IP address to be determined belongs.
6. A system for determining attribution information for an IP address, the system comprising:
the device comprises an acquisition unit, a judging unit and a judging unit, wherein the acquisition unit is configured to acquire information of an IP section to which an IP address to be determined belongs;
a judging unit configured to judge whether the IP section includes an IP address of a local domain name server based on the information of the IP section;
a first determining unit configured to determine attribution information of the IP address to which the determination is attributed by the local domain name server when the judging unit judges whether the IP segment includes the IP address of the local domain name server;
the first determination unit is further configured to:
acquiring the access amount of the local domain name server to access each domain name server in a set time period;
obtaining a test domain name server based on the access amount, wherein the test domain name server is a domain name server corresponding to the access amount of N bits before ranking, and N is a natural number more than or equal to 1;
determining attribution information of the IP address to be determined attribution through the local domain name server and the test domain name server;
the local domain name server is used for establishing actual connection.
7. The system of claim 6, wherein the first determination unit is further configured to:
acquiring attribution information of the user IP address, which is obtained after the test domain name server processes the access from the user IP address forwarded by the local domain name server;
and using the attribution information of the user IP address as the attribution information of the IP address to be determined.
8. The system of claim 7, wherein the first determination unit is further configured to:
adding the IP address of the local domain name server to a view area of a configuration file of the test domain name server;
and after the local domain name server forwards the access from the user IP address to the testing domain name server, acquiring the attribution information of the user IP address based on the information of the view area of the testing domain name server.
9. The system of claim 6, wherein the system further comprises a second determining unit configured to determine the attribution information of the IP address to which the determination is attributed in at least one of the following manners:
determining attribution information of the IP address to be determined attribution by using a set IP database;
and determining attribution information of the IP address to be determined according to the transmission delay from the IP address to be determined to the set domain name server in each set region.
10. The system of claim 6, wherein the attribution information of the IP address to be attributed for determination comprises at least one of: the operator to which the IP address to be determined belongs and the area to which the IP address to be determined belongs.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 5 when executing the program.
CN201910459203.XA 2019-05-29 2019-05-29 Method, system, medium and equipment for determining attribution information of IP address Active CN112019644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910459203.XA CN112019644B (en) 2019-05-29 2019-05-29 Method, system, medium and equipment for determining attribution information of IP address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910459203.XA CN112019644B (en) 2019-05-29 2019-05-29 Method, system, medium and equipment for determining attribution information of IP address

Publications (2)

Publication Number Publication Date
CN112019644A CN112019644A (en) 2020-12-01
CN112019644B true CN112019644B (en) 2022-08-02

Family

ID=73501630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910459203.XA Active CN112019644B (en) 2019-05-29 2019-05-29 Method, system, medium and equipment for determining attribution information of IP address

Country Status (1)

Country Link
CN (1) CN112019644B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN103701948A (en) * 2013-12-25 2014-04-02 乐视网信息技术(北京)股份有限公司 Acquisition method and device for configuration information of domain name resolving system
WO2015070788A1 (en) * 2013-11-15 2015-05-21 北京奇虎科技有限公司 Method and device for identifying regional attribution information of ip address
CN104780234A (en) * 2014-01-14 2015-07-15 腾讯科技(深圳)有限公司 Method, device and system for inquiring Internet protocol (IP) address location
CN107277188A (en) * 2017-06-19 2017-10-20 网宿科技股份有限公司 A kind of method, client, server and operation system for determining IP address attaching information
CN107395683A (en) * 2017-06-26 2017-11-24 网宿科技股份有限公司 The system of selection of a kind of time source path and server
CN109783521A (en) * 2018-12-29 2019-05-21 湖南安数网络有限公司 A kind of IP ownership place determines method, apparatus and computer storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051742A (en) * 2012-12-20 2013-04-17 新浪网技术(中国)有限公司 IP (Internet Protocol) address attribute determining method, page processing method, relevant equipment and system
CN104702618B (en) * 2015-03-26 2018-11-06 广东睿江云计算股份有限公司 The method and apparatus for determining network access information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
WO2015070788A1 (en) * 2013-11-15 2015-05-21 北京奇虎科技有限公司 Method and device for identifying regional attribution information of ip address
CN103701948A (en) * 2013-12-25 2014-04-02 乐视网信息技术(北京)股份有限公司 Acquisition method and device for configuration information of domain name resolving system
CN104780234A (en) * 2014-01-14 2015-07-15 腾讯科技(深圳)有限公司 Method, device and system for inquiring Internet protocol (IP) address location
CN107277188A (en) * 2017-06-19 2017-10-20 网宿科技股份有限公司 A kind of method, client, server and operation system for determining IP address attaching information
CN107395683A (en) * 2017-06-26 2017-11-24 网宿科技股份有限公司 The system of selection of a kind of time source path and server
CN109783521A (en) * 2018-12-29 2019-05-21 湖南安数网络有限公司 A kind of IP ownership place determines method, apparatus and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
批量IP地址查找归属地的优化;卢文娟;《中小企业管理与科技(上旬刊)》;20190305(第03期);全文 *

Also Published As

Publication number Publication date
CN112019644A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN112100052B (en) Playback method and device of interface test scene
CN103365928B (en) Information recommendation method and information recommendation device
CN110417747B (en) Method and device for detecting violent cracking behavior
CN108319550A (en) A kind of test system and test method
CN108924005A (en) Network detecting method, network detection device, medium and equipment
CN110750433A (en) Interface test method and device
CN114328566A (en) Relationship graph updating method, device, medium, equipment and generating method
CA3139971A1 (en) Problem positioning method and device
CN110134583B (en) Software testing and data processing method and device
CN112019644B (en) Method, system, medium and equipment for determining attribution information of IP address
CN111124894B (en) Code coverage rate processing method and device and computer equipment
CN106557419B (en) Program testing method and device
CN111131262B (en) Vulnerability scanning method and device
CN110138892B (en) Method and device for determining equipment regional information
CN107241347A (en) The analysis method and device of ad traffic quality
CN107948022B (en) Identification method and identification device for peer-to-peer network traffic
CN113031995B (en) Rule updating method and device, storage medium and electronic equipment
CN115795475A (en) Method and device for determining software system risk and electronic equipment
US11411819B2 (en) Automatic network configuration in data protection operations
CN112363944A (en) Method and equipment for comparing return values of multiple environment interfaces
CN105701002A (en) Test based execution path recording method and apparatus
CN111225075A (en) Configuration method and device for Internet of things directional access service
CN111082977A (en) Method and device for acquiring IP address and terminal equipment
CN113448746B (en) Configuration processing method, configuration platform and related equipment
CN113065078B (en) Statistical analysis method for simulating user behavior to dial and test multistage domain names of WEB sites

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
GR01 Patent grant
GR01 Patent grant