CN109788082B - Method and system for efficient domain name detection - Google Patents

Method and system for efficient domain name detection Download PDF

Info

Publication number
CN109788082B
CN109788082B CN201910062162.0A CN201910062162A CN109788082B CN 109788082 B CN109788082 B CN 109788082B CN 201910062162 A CN201910062162 A CN 201910062162A CN 109788082 B CN109788082 B CN 109788082B
Authority
CN
China
Prior art keywords
domain name
detection
service logic
logic processing
data
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
CN201910062162.0A
Other languages
Chinese (zh)
Other versions
CN109788082A (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.)
Shenzhen Hulianxianfeng Technology Co ltd
Original Assignee
Shenzhen Hulianxianfeng 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 Shenzhen Hulianxianfeng Technology Co ltd filed Critical Shenzhen Hulianxianfeng Technology Co ltd
Priority to CN201910062162.0A priority Critical patent/CN109788082B/en
Publication of CN109788082A publication Critical patent/CN109788082A/en
Application granted granted Critical
Publication of CN109788082B publication Critical patent/CN109788082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method and a system for efficient domain name detection. The method comprises the following steps: acquiring a standby database; inputting a domain name ID to be searched in a standby database; automatically matching suffixes according to the domain name ID; combining the domain name ID and the suffix to obtain a combined domain name ID, wherein the combined domain name ID is used as the ID mapped by the Domainmap; starting a thread Hand, traversing the DomainMap according to the ID mapped by the DomainMap to obtain traversal information; judging whether the ID mapped by the DomainMa map has matched domain name data or not according to the traversal information; if yes, outputting domain name data; if not, performing service logic processing, and detecting the domain name ID after the service logic processing to obtain a detection result; and (5) putting the detection result into the Domainmap mapping for storage. The invention can shorten the detection time and improve the accuracy of data.

Description

Method and system for efficient domain name detection
Technical Field
The invention relates to the field of internet, in particular to a method and a system for efficient domain name detection.
Background
With the rapid development of the internet, domain name detection is more and more common and important, but domain name detection extends to many problems of network security, low detection efficiency and inaccurate data.
The traditional domain name detection method is to directly carry out whois detection and then directly return a detection result, and the detection method has the advantages of low accuracy, easy error recording, time consumption and low detection rate.
Disclosure of Invention
The invention aims to provide a method and a system for efficient domain name detection, which can shorten the detection time and improve the accuracy of data.
In order to achieve the purpose, the invention provides the following scheme:
a method of efficient domain name detection, comprising:
acquiring a standby database;
inputting a domain name ID to be searched in the standby database;
automatically matching suffixes according to the domain name ID;
combining the domain name ID and the suffix to obtain a combined domain name ID, wherein the combined domain name ID is used as the ID mapped by the Domainmap;
starting a thread Hand, traversing the DomainMap according to the ID mapped by the DomainMap to obtain traversal information;
judging whether the ID mapped by the DomainMa map has matched domain name data according to the traversal information, wherein the domain name data comprises a name and registration information, and the registration information comprises registered information, unregistered information, registrant information and registered company information;
if yes, outputting domain name data;
if not, performing service logic processing, and detecting the domain name ID after the service logic processing to obtain a detection result, wherein the detection result is domain name data corresponding to the domain name ID after the service logic processing;
and putting the detection result into a Domainmap mapping for storage.
Optionally, the automatically matching suffixes according to the domain name ID specifically includes:
suffixes are automatically matched according to the domain name ID, the suffixes being.com or.cn or.net or.org.
Optionally, the performing service logic processing, and detecting domain name data of the domain name ID after the service logic processing to obtain a detection result specifically include:
judging whether the combined domain name ID meets the domain name rule or not;
if yes, performing Whois detection on the domain name ID subjected to the service logic processing to obtain domain name data;
if not, the domain name data detection is finished.
Optionally, the performing service logic processing, and detecting domain name data of the domain name ID after the service logic processing to obtain a detection result specifically include:
judging whether the combined domain name ID meets the domain name rule or not;
if so, performing API (application program interface) interface detection on the domain name ID subjected to the service logic processing to obtain domain name data;
if not, the domain name data detection is finished.
Optionally, after the detecting result is placed in a domain map for saving, the method further includes:
and storing the domain name data into the standby database to obtain an expanded database.
A system for efficient domain name detection, comprising:
the standby database acquisition module is used for acquiring a standby database;
a domain name ID input module used for inputting the domain name ID to be searched in the standby database;
a suffix matching module for automatically matching suffixes according to the domain name ID;
a combination module, configured to combine the domain name ID and the suffix to obtain a combined domain name ID, where the combined domain name ID is used as a domain map ID;
the traversal module is used for starting the thread Hand and traversing the DomainMa map according to the ID mapped by the DomainMa map to obtain traversal information;
the judging module is used for judging whether the ID mapped by the DomainMa map has matched domain name data according to the traversal information, wherein the domain name data comprises a name and registration information, and the registration information comprises registered information, unregistered information, registrant information and registered company information;
the domain name data output module is used for outputting domain name data if the matched domain name data exists;
the service logic processing module is used for carrying out service logic processing if no matched domain name data exists, detecting the domain name ID after the service logic processing to obtain a detection result, wherein the detection result is the domain name data corresponding to the domain name ID after the service logic processing;
and the storage module is used for storing the detection result in the Domainmap mapping.
Optionally, the suffix matching module specifically includes:
and a suffix matching unit for automatically matching suffixes according to the domain name ID, the suffixes being.com or.cn or.net or.org.
Optionally, the service logic processing module specifically includes:
the first judging unit is used for judging whether the combined domain name ID meets the domain name rule or not;
a Whois detection unit, if the domain name rule is met, performing Whois detection on the domain name ID after the service logic processing to obtain domain name data;
if the domain name rule is not met, the domain name data detection is finished.
Optionally, the service logic processing module specifically includes:
a second judging unit, configured to judge whether the domain name ID of the combination meets a domain name rule;
the API interface detection unit is used for carrying out API interface detection on the domain name ID after the service logic processing if the domain name rule is met, so as to obtain domain name data;
if not, the domain name data detection is finished.
Optionally, the system further includes:
and the database expansion module is used for storing the domain name data into the standby database to obtain an expanded database.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects: the invention provides a method for efficiently detecting a domain name, which comprises the following steps: acquiring a standby database; inputting a domain name ID to be searched in the standby database; automatically matching suffixes according to the domain name ID; combining the domain name ID and the suffix to obtain a combined domain name ID, wherein the combined domain name ID is used as the ID mapped by the Domainmap; starting a thread Hand, traversing the DomainMap according to the ID mapped by the DomainMap to obtain traversal information; judging whether the ID mapped by the DomainMa map has matched domain name data or not according to the traversal information; if yes, outputting domain name data; if not, performing service logic processing, and detecting the domain name ID after the service logic processing to obtain a detection result, wherein the detection result is domain name data corresponding to the domain name ID after the service logic processing; and putting the detection result into a Domainmap mapping for storage. The invention can shorten the detection time and improve the accuracy of data.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flow chart of a method for efficient domain name detection in accordance with the present invention;
fig. 2 is a system structure diagram of the efficient domain name detection of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
The invention aims to provide a method and a system for efficient domain name detection, which can shorten the detection time and improve the accuracy of data.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a flow chart of a method for efficient domain name detection according to the present invention. As shown in fig. 1, a method for efficient domain name detection includes:
step 101: acquiring a standby database; collecting the latest common word banks with the number of more than 5 ten thousand, and importing the latest common word banks into a specific database to obtain a standby database;
step 102: inputting a domain name ID to be searched in the standby database;
step 103: automatically matching suffixes according to the domain name ID;
step 104: combining the domain name ID and the suffix to obtain a combined domain name ID, wherein the combined domain name ID is used as the ID mapped by the Domainmap;
step 105: starting a thread Hand, traversing the DomainMap according to the ID mapped by the DomainMap to obtain traversal information;
step 106: judging whether the ID mapped by the DomainMa map has matched domain name data according to the traversal information, wherein the domain name data comprises a name and registration information, and the registration information comprises registered information, unregistered information, registrant information and registered company information;
step 107: if yes, outputting domain name data; if the domain name data can be detected in the standby database, directly returning a detection result, and finishing the domain name detection. The detection is only executed in the existing database of the system, so that the time is short and the detection efficiency is high.
Step 108: if not, performing service logic processing, and detecting the domain name ID after the service logic processing to obtain a detection result, wherein the detection result is domain name data corresponding to the domain name ID after the service logic processing; if the standby database is detected, and a domain name data result is not obtained, business logic processing is carried out, the specific business logic processing comprises matching of a timer Quartz Auto, and because the timer Quartz Auto is automatically carried out for a certain time, in the process, a thread Hand and the thread Auto are separated, and API and Whois are simultaneously detected, so that the detection speed is high, and the efficiency is high.
Step 109: and putting the detection result into a Domainmap mapping for storage.
Step 103, specifically comprising:
suffixes are automatically matched according to the domain name ID, the suffixes being.com or.cn or.net or.org.
Step 108, specifically comprising:
judging whether the combined domain name ID meets the domain name rule or not;
if yes, performing Whois detection or API (application program interface) interface detection on the domain name ID subjected to the service logic processing to obtain domain name data;
if not, the domain name data detection is finished.
The method further comprises the following steps:
and storing the domain name data into the standby database to obtain an expanded database. The result of API or Whois detection is stored in the system data, so that the data volume information of the database is increased, the database resource can be increased, and efficient processing detection is provided for the future.
The terms referred to in the present invention are to be interpreted:
timer quartz auto: the API and Whois pass timers are automatically traversed over a period of time.
And a thread Hand: when a specific command is received, the execution is performed.
And the thread Auto: this thread always calls the timer QuatzAuto to perform the detection.
DomainMap mapping: a database can be viewed as a container that holds domain names.
API interface: a government provided interface that can detect domain name information.
Whois detection: can be used to view the current information status of the domain name, including whether the domain name is registered, the registration date, the expiration date, the status of the domain name, the DNS resolution server, etc. (can be viewed as an interface that can detect domain names).
The invention has the following advantages:
the detection method of the invention uses the database of the system and the double-thread principle, thereby greatly shortening the time of domain name detection and improving the efficiency.
The detection method of the invention applies the database, the API interface and the Whois detection, integrates a plurality of detection modes together and improves the accuracy of the detection data.
Fig. 2 is a system structure diagram of the efficient domain name detection of the present invention. As shown in fig. 2, a system for efficient domain name detection includes:
a backup database acquisition module 201, configured to acquire a backup database;
a domain name ID input module 202, configured to input a domain name ID to be searched in the standby database;
a suffix matching module 203 for automatically matching suffixes according to the domain name ID;
a combining module 204, configured to combine the domain name ID and the suffix to obtain a combined domain name ID, where the combined domain name ID is used as a domain map ID;
a traversal module 205, configured to start a thread Hand, and traverse the domain map according to the ID mapped by the domain map to obtain traversal information;
a determining module 206, configured to determine whether there is paired domain name data in the ID mapped by the domain map according to the traversal information, where the domain name data includes a name and registration information, and the registration information includes registered information, unregistered information, registrant information, and registered company information;
a domain name data output module 207, configured to output domain name data if there is paired domain name data;
the service logic processing module 208 is configured to, if there is no paired domain name data, perform service logic processing, and detect the domain name ID after the service logic processing to obtain a detection result, where the detection result is domain name data corresponding to the domain name ID after the service logic processing;
and the storage module 209 is configured to store the detection result in a domain map.
The suffix matching module 203 specifically includes:
and a suffix matching unit for automatically matching suffixes according to the domain name ID, the suffixes being.com or.cn or.net or.org.
The service logic processing module 208 specifically includes:
the first judging unit is used for judging whether the combined domain name ID meets the domain name rule or not;
a Whois detection unit, if the domain name rule is met, performing Whois detection on the domain name ID after the service logic processing to obtain domain name data;
if the domain name rule is not met, the domain name data detection is finished.
Or specifically comprises the following steps:
a second judging unit, configured to judge whether the domain name ID of the combination meets a domain name rule;
the API interface detection unit is used for carrying out API interface detection on the domain name ID after the service logic processing if the domain name rule is met, so as to obtain domain name data;
if not, the domain name data detection is finished.
The system further comprises:
and the database expansion module is used for storing the domain name data into the standby database to obtain an expanded database.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (6)

1. A method for efficient domain name detection, comprising:
acquiring a standby database;
inputting a domain name ID to be searched in the standby database;
automatically matching suffixes according to the domain name ID;
combining the domain name ID and the suffix to obtain a combined domain name ID, wherein the combined domain name ID is used as the ID mapped by the Domainmap;
starting a thread Hand, traversing the DomainMap according to the ID mapped by the DomainMap to obtain traversal information;
judging whether the ID mapped by the DomainMa map has matched domain name data according to the traversal information, wherein the domain name data comprises a name and registration information, and the registration information comprises registered information, unregistered information, registrant information and registered company information;
if yes, outputting domain name data;
if not, performing service logic processing, and detecting the domain name ID after the service logic processing to obtain a detection result, wherein the detection result is domain name data corresponding to the domain name ID after the service logic processing;
putting the detection result into a Domainmap mapping for storage;
the performing service logic processing, detecting domain name data of the domain name ID after the service logic processing, and obtaining a detection result specifically includes:
judging whether the combined domain name ID meets the domain name rule or not;
if yes, performing Whois detection on the domain name ID subjected to the service logic processing to obtain domain name data;
if not, finishing the domain name data detection;
the performing service logic processing, detecting domain name data of the domain name ID after the service logic processing, and obtaining a detection result, further includes:
judging whether the combined domain name ID meets the domain name rule or not;
if so, performing API (application program interface) interface detection on the domain name ID subjected to the service logic processing to obtain domain name data;
if not, the domain name data detection is finished.
2. The method for efficient domain name detection according to claim 1, wherein the automatically matching suffixes according to domain name IDs specifically comprises:
suffixes are automatically matched according to the domain name ID, the suffixes being.com or.cn or.net or.org.
3. The method for efficient domain name detection according to claim 1, wherein after storing the detection result in the domain map, further comprising:
and storing the domain name data into the standby database to obtain an expanded database.
4. A system for efficient domain name detection, comprising:
the standby database acquisition module is used for acquiring a standby database;
a domain name ID input module used for inputting the domain name ID to be searched in the standby database;
a suffix matching module for automatically matching suffixes according to the domain name ID;
a combination module, configured to combine the domain name ID and the suffix to obtain a combined domain name ID, where the combined domain name ID is used as a domain map ID;
the traversal module is used for starting the thread Hand and traversing the DomainMa map according to the ID mapped by the DomainMa map to obtain traversal information;
the judging module is used for judging whether the ID mapped by the DomainMa map has matched domain name data according to the traversal information, wherein the domain name data comprises a name and registration information, and the registration information comprises registered information, unregistered information, registrant information and registered company information;
the domain name data output module is used for outputting domain name data if the matched domain name data exists;
the service logic processing module is used for carrying out service logic processing if no matched domain name data exists, detecting the domain name ID after the service logic processing to obtain a detection result, wherein the detection result is the domain name data corresponding to the domain name ID after the service logic processing;
the storage module is used for storing the detection result in the Domainmap mapping;
the service logic processing module specifically includes:
the first judging unit is used for judging whether the combined domain name ID meets the domain name rule or not;
a Whois detection unit, if the domain name rule is met, performing Whois detection on the domain name ID after the service logic processing to obtain domain name data;
if the domain name rule is not met, ending the domain name data detection;
the service logic processing module further includes:
a second judging unit, configured to judge whether the domain name ID of the combination meets a domain name rule;
the API interface detection unit is used for carrying out API interface detection on the domain name ID after the service logic processing if the domain name rule is met, so as to obtain domain name data;
if not, the domain name data detection is finished.
5. The system for efficient domain name detection according to claim 4, wherein the suffix matching module specifically comprises:
and a suffix matching unit for automatically matching suffixes according to the domain name ID, the suffixes being.com or.cn or.net or.org.
6. The system for efficient domain name detection according to claim 4, further comprising:
and the database expansion module is used for storing the domain name data into the standby database to obtain an expanded database.
CN201910062162.0A 2019-01-23 2019-01-23 Method and system for efficient domain name detection Active CN109788082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910062162.0A CN109788082B (en) 2019-01-23 2019-01-23 Method and system for efficient domain name detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910062162.0A CN109788082B (en) 2019-01-23 2019-01-23 Method and system for efficient domain name detection

Publications (2)

Publication Number Publication Date
CN109788082A CN109788082A (en) 2019-05-21
CN109788082B true CN109788082B (en) 2021-09-28

Family

ID=66502066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910062162.0A Active CN109788082B (en) 2019-01-23 2019-01-23 Method and system for efficient domain name detection

Country Status (1)

Country Link
CN (1) CN109788082B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11979334B2 (en) 2019-07-22 2024-05-07 International Business Machines Corporation Internet activity compartmentalization
CN110442611B (en) * 2019-08-12 2024-04-26 深圳互联先锋科技有限公司 Automatic inquiring method and system for company brand domain name

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609473A (en) * 2012-01-17 2012-07-25 钟进发 Method and system for website accessing
CN103281409A (en) * 2013-06-24 2013-09-04 广州菁英信息技术有限公司 Domain name resolution method of mobile internet and DNS server based on TCP protocol
CN103647767A (en) * 2013-12-05 2014-03-19 北京奇虎科技有限公司 Website information display method and apparatus
CN106302440A (en) * 2016-08-11 2017-01-04 国家计算机网络与信息安全管理中心 A kind of method obtaining suspicious fishing website by all kinds of means
CN106470249A (en) * 2015-08-19 2017-03-01 互联网域名系统北京市工程研究中心有限公司 Gateway-whois domain name registration querying method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9143389B2 (en) * 2008-10-15 2015-09-22 Nokia Technologies Oy Methods, appratuses, and computer program products for determining a network interface to access a network resource

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609473A (en) * 2012-01-17 2012-07-25 钟进发 Method and system for website accessing
CN103281409A (en) * 2013-06-24 2013-09-04 广州菁英信息技术有限公司 Domain name resolution method of mobile internet and DNS server based on TCP protocol
CN103647767A (en) * 2013-12-05 2014-03-19 北京奇虎科技有限公司 Website information display method and apparatus
CN106470249A (en) * 2015-08-19 2017-03-01 互联网域名系统北京市工程研究中心有限公司 Gateway-whois domain name registration querying method and device
CN106302440A (en) * 2016-08-11 2017-01-04 国家计算机网络与信息安全管理中心 A kind of method obtaining suspicious fishing website by all kinds of means

Also Published As

Publication number Publication date
CN109788082A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN107229662B (en) Data cleaning method and device
CN103678708B (en) Method and device for recognizing preset addresses
CN109788082B (en) Method and system for efficient domain name detection
CN109766176B (en) Scanning progress calculation method and device based on large-scale network space detection
US20170053031A1 (en) Information forecast and acquisition method based on webpage link parameter analysis
CN103885968B (en) It is a kind of for providing the method and apparatus of recommendation information
CN110750433A (en) Interface test method and device
CN109040346B (en) Method, device and equipment for screening effective domain names in extensive domain name resolution
CN110795472A (en) Address standardization method, system, equipment and medium based on fuzzy matching
CN103646119A (en) Method and device for generating user behavior record
CN104572946A (en) Method and device for processing data of yellow pages
CN112364113A (en) Address error correction method and system
CN111079428A (en) Word segmentation and industry dictionary construction method and device and readable storage medium
CN109543027B (en) Method, device and equipment for acquiring paging data and storage medium
CN105653717A (en) Information sharing method and device
CN111198818B (en) Information acquisition method and device
CN113779165B (en) IP address geographic position ambiguity judging method and related equipment
CN108600054B (en) Method and system for judging number of websites based on domain name area files
CN116418705A (en) Network asset identification method, system, terminal and medium based on machine learning
CN112579713B (en) Address recognition method, address recognition device, computing equipment and computer storage medium
CN110505321B (en) Method and system for accessing IP address
CN110784559B (en) DNS analysis delay acquisition method and device
CN112187708B (en) Automatic supplementing method and equipment for certificate chain of digital certificate
CN111209733B (en) Text record processing method and device
CN104933061B (en) character string detection method and device and electronic equipment

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