CN104821965B - DNS intelligently parsing methods based on egress network - Google Patents

DNS intelligently parsing methods based on egress network Download PDF

Info

Publication number
CN104821965B
CN104821965B CN201510174362.7A CN201510174362A CN104821965B CN 104821965 B CN104821965 B CN 104821965B CN 201510174362 A CN201510174362 A CN 201510174362A CN 104821965 B CN104821965 B CN 104821965B
Authority
CN
China
Prior art keywords
dns
user
operator
parsing
address
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.)
Expired - Fee Related
Application number
CN201510174362.7A
Other languages
Chinese (zh)
Other versions
CN104821965A (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.)
Hebi Xi Mo Telecom Technology Co Ltd
Original Assignee
Hebi Xi Mo Telecom 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 Hebi Xi Mo Telecom Technology Co Ltd filed Critical Hebi Xi Mo Telecom Technology Co Ltd
Priority to CN201510174362.7A priority Critical patent/CN104821965B/en
Publication of CN104821965A publication Critical patent/CN104821965A/en
Application granted granted Critical
Publication of CN104821965B publication Critical patent/CN104821965B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of DNS intelligently parsing methods based on egress network, its step are as follows:It is added in DNS service configuration and custom-configures parsing information;Intelligently parsing module is added in dns resolution program;When User DN S request datas reach server, according to the information custom-configured, user is parsed, gets corresponding service provider's IP address, and return to user.The present invention only needs to change domain name dns server for associated server configuration, without adding any other hardware device;Be capable of intelligence selects optimal dns resolution as a result, being especially under multi-line environment, to substantially increase network access speed to user;Can open and close freely be configured by user, be completely independent, it is reliable and stable, conflict without any with other configurations.The intelligently parsing that the present invention solves Intranet access internet returns to the most fast operator IP of user, to improve the speed of customer access network to accelerate the resolution speed of domain name.

Description

DNS intelligently parsing methods based on egress network
Technical field
The present invention relates to the technical fields of DNS name resolution, and in particular to a kind of DNS intelligently parsings based on egress network Method.
Background technology
As former group of China Telecom breaks up the family by north and south region, China Telecom in 2002 and group of Netcom set up immediately, because The backbone network of this internet is also divided into two, and there is telecommunications in Bei You Netcoms, south.From this, the use of two networks of telecommunications and Netcom Speed is extremely slow when family mutually accesses, sometimes even also have access less than the case where.The serious visit for affecting website of this phenomenon The access of the amount of asking and user are experienced, some commercial websites are even more to deeply hurt.The reason of generating this phenomenon is north and south net Mutual speed limit between network is exchanged visits very slow, it can be understood as the problem of the north and south intercommunication hardly possible of present China Internet, It is real exactly artificially to manufacture.Though Information Industry Department is already in planning north and south intercommunication plan, in considerably long from now on one section In phase, domestic each Internet Service Provider(ISP)The problem of interconnection, can also long-term existence.In order to solve between different operators Access speed, DNS intelligently parsings can intelligence judgement access service provider web sites user, then according to different operations The visitor of quotient is respectively parsed into domain name different IP address.If visitor is Netcom user, DNS intelligently parsing server meetings The corresponding Netcom's IP address of domain name of service provider is parsed and gives the visitor.If user is telecommunication user, DNS is intelligently solved Analysis server, which can parse the corresponding telecommunications IP address of service provider's domain name, gives this visitor.Our intelligent DNS now The intelligently parsing of Netcom and telecommunications is not only supported also to support the parsing of education network and state's outdoor main unit.I.e. intelligent DNS realize telecommunications, The intelligently parsing of four net of Netcom, education network and foreign countries.
The analytic method of above-mentioned intelligent DNS is to belong to the different operators such as telecommunications/Netcom/telecommunications according to user, is returned not Same parsing address, but it also has certain limitation.Manual configuration circuit is needed to forward if user is network with multiple outputs, It is fixed according to former IP and parses the IP address for returning to fixed operator, or part domain name is configured, user is allowed to access this Fixed IP address is returned when a little domain names.The above has certain limitation, because the IP of many Intranet users Location is typically all private address, can not judge operator according to it, can not according to which operator belonging to it and Parsing returns to the IP address of which operator, can not be configured completely completely by domain name forwarding, and domain name amount is too big, can not will A large amount of domain names carry out configuration forwarding.
Invention content
The DNS intelligently parsing methods based on egress network that in order to solve the above technical problem, the present invention provides a kind of, it is special It is not the intelligently parsing for accessing internet for Intranet user, can make full use of egress network, and is the DNS of Intranet user Intelligently parsing is asked, fast path analysis result is provided, accelerates the access speed of internet.
The technical scheme is that:A kind of DNS intelligently parsing methods based on egress network, its step are as follows:
Step 1, it is added in DNS service configuration and custom-configures parsing information;
Step 2, intelligently parsing module is added in dns resolution program;
Step 3, when User DN S request datas reach server, according to the information custom-configured, user is solved Analysis, gets corresponding service provider's IP address, and return to user.
It is described that custom-configure parsing information mainly include the parameter that whether enables of intelligently parsing module and carrier service Device IP and weights two parts content.
The parsing information that custom-configures can specifically be written as form:
options {
Prosta 1;
DnsIP {8.8.8.8 1;8.8.4.4 3}
}
Wherein, Prosta indicates that intelligently parsing module enables parameter, and 0 indicates to close, and 1 indicates to open;Include fortune in DnsIP Seek quotient's server ip and its weights.
The intelligently parsing module first determines whether which operator is the IP address of user belong to, if belonging to some operator, Intelligently parsing module will forward DNS request to be parsed to corresponding operator's server, and be returned the result;If being not belonging to Some operator, according to the carrier server IP address and weight being arranged in dns server, poll various servers IP lines DNS request data are sent to carrier server and carry out dns resolution acquisition analysis result, and return to user by road.
It is described to judge that the method for its operator is according to IP address:Dns server is predefined to be equipped with operator IP address list, each address table correspond to the IP address library of different operators;When the DNS request packet of user reaches intelligently parsing mould After block, intelligently parsing module is according to the operator address corresponding to the IP address belonging to predefined IP address table search user Table, judges which operator it belongs to, and DNS request is forwarded to corresponding carrier server and carries out dns resolution, returns Give user's optimum line DNS.
The beneficial effects of the invention are as follows:It only needs to change domain name dns server for associated server configuration, appoints without adding What his hardware device, you can realize;Be capable of intelligence selects optimal dns resolution as a result, especially in multi-line to user Under environment, to substantially increase network access speed;Can open and close freely be configured by user, be completely independent, it is reliable and stable, Conflict without any with other configurations.The present invention solves the intelligently parsing that Intranet accesses internet, to accelerate the solution of domain name Speed is analysed, the most fast operator IP of user is returned to, improves the speed of customer access network.
Description of the drawings
Fig. 1 is the flow chart of the present invention.
Specific implementation mode
It illustrates with reference to the accompanying drawings and examples of the invention.
A kind of DNS intelligently parsing methods based on egress network, as shown in Figure 1, comprising the steps of:
Step 1, it is added in DNS service configuration and custom-configures parsing code.
Being mainly used for parse when DNS service starts and custom-configuring for parsing code is custom-configured, clothes are made Business normal work.It custom-configures and mainly whether enables parameter, carrier server IP and weights two including intelligently parsing module Partial content, concrete configuration file can be written as form:
options {
Prosta 1;
DnsIP {8.8.8.8 1;8.8.4.4 3}
}
Wherein, Prosta indicates that intelligently parsing module enables parameter, and 0 indicates to close, and 1 indicates to open.DnsIP indicates operation Quotient's server ip, each includes its IP address and weights, how many carrier service IP and weights add up backward.
Step 2, intelligently parsing module is added in dns resolution program.
The priority of intelligently parsing module operation is behind local parsing and caching parsing, as shown in Figure 1, to ensure it Normal work does not influence the preferential of local parsing and caching parsing, while when local and caching can not inquire just by intelligence Parsing module is completed.
Step 3, when User DN S request datas reach server, according to the information custom-configured, user is solved Analysis, gets corresponding service provider's IP address, and return to user.
After DNS request arrives, since the priority of intelligently parsing module operation is parsed less than local parsing and caching, first It carries out local parsing and caching parses, then carry out intelligently parsing module.
First, dns server receives DNS request data and carries out local parsing, if successfully resolved, returns to analysis result, And handle next DNS request;If parsing is unsuccessful, carries out the i.e. caching parsing of Cache inquiries and return to parsing if successfully resolved As a result, and handling next DNS request;If parsing judges whether intelligently parsing module can not open success.
Then, intelligently parsing module judges that it is 0 or 1 to judge whether configured service opens to enable parameter Prosta, Read carrier server IP address and its weight two parts content therein.Intelligently parsing module is opened if Prosta is 1, Into rule parsing.
Rule parsing includes two large divisions:Intelligently parsing module first determines whether which operator is the IP address of user belong to, If belonging to some operator, intelligently parsing module will forward DNS request to be parsed to corresponding operator's server, and obtain It returns the result;If being not belonging to some operator, according to the carrier server IP address and power being arranged in DNS service configurator DNS request data are sent to carrier server and carry out dns resolution acquisition parsing knot by weight, poll various servers IP circuits Fruit, as a result user accesses the server ip address corresponding to domain name, this IP address is parsed to obtain by intelligently parsing module Best IP address as a result, its IP address is finally returned to user, allow users to access network.
Judge that the method for its operator is according to IP address:DNS systems are predefined operator's IP address row The common address tables such as table, including unicom address segment table, movable address segment table, cable address segment table, Tie Tong address segment table.User Oneself address table can be added, each address table corresponds to the IP address library of different operators.When the DNS request packet of user reaches intelligence After energy parsing module, intelligently parsing module is according to the operation corresponding to the IP address belonging to predefined IP address table search user Quotient's address table, judges which operator it belongs to, and DNS request is forwarded to corresponding carrier server and carries out DNS solutions Analysis, returns to the optimum line DNS of user.
When judging IP address operator, original dns resolution judges that IP address operator can only It is to be judged by known operator IP sections, but the IP of general user is private IP address, it is impossible to complete good Judge, so the present invention provides customized operator's IP address table, IP address operator address is determined by user, to Reach the judgement of preferably operator.If User IP is 192.168.0.2, administrator can set this IP to Netcom user, So judge that this IP for Netcom user, is parsed, and return to knot as the DNS of Netcom in DNS intelligently parsing modules Fruit.If be not arranged, enter following step.
Secondly, it if can not judge User IP operator, such as 192.168.0.2, is then configured according in step 1 Operator's IP address and weight, poll various servers IP.Existing DNS does poll and searches not weight setting, so will It can lead to certain circuit flow saturation, and another circuit is very idle, to waste bandwidth, and reduces network and accesses matter Amount, intelligently parsing module can coordinate weighted value, and dns resolution, which is distributed to different circuits, searches, the power being arranged such as circuit 1 Weight is 3, and the weight that circuit 2 is arranged is 5, then DNS intelligently parsings module will be according to this weighted value, into 30% He of row line 1 The 50% of circuit 2 is forwarded parsing, and returns to analysis result to user, can also be better to reach better bandwidth usage Improve the analysis mass of user.
Embodiment:
DNS intelligently parsings method based on egress network is as follows to the parsing that domain name is www.baidu.com:
1. configuration custom-configures as follows:
options {
Prosta 1;
DnsIP {8.8.8.8 1;8.8.4.4 3}
}。
The DNS request of 2.www.baidu.com reaches dns resolution server, and in local search and cache inquiries into Row inquiry, does not find the record of www.baidu.com.
It is 1 due to custom-configuring middle Prosta, then intelligently parsing module is 3. judging whether to enable intelligently parsing service It opens, then request data can enter intelligently parsing module.
4. judging which operator User IP such as 192.168.3.24 belongs to, result is to be not belonging to any one operator IP address, that is, some the operator's IP address being not belonging in Netcom, telecommunications, movement, Tie Tong.
5. being 8.8.8.8 and its weight 1 according to the carrier server IP in the custom-configuring of step 1, IP is 8.8.8.4. with its weight 3, find by DNS request be forwarded to IP be 8.8.8.8 server parse.If desired line The more IP that will go in road is parsed for the server of 8.8.8.4..
6. obtaining analysis result and returning to client.
According to step 2, if inquiring the record of www.baidu.com in local parsing or cache parsings, 3,4,5 steps directly are skipped, 6 is directly reached, analysis result is returned into client.
According to step 4 Netcom/telecommunications is directly forwarded to if client IP is the IP of some operator such as Netcom/telecommunications It is parsed etc. corresponding operator, then reaches the 6th step and obtain analysis result, and return to client.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Any one skilled in the art in the technical scope disclosed by the present invention, the change or replacement that can be readily occurred in, It should be covered by the protection scope of the present invention.

Claims (2)

1. a kind of DNS intelligently parsing methods based on egress network, which is characterized in that its step are as follows:
Step 1, it is added in DNS service configuration and custom-configures parsing information;
Step 2, intelligently parsing module is added in DNS analysis programs;
Step 3, when User DN S request datas reach server, according to the information custom-configured, user is parsed, The addresses corresponding operator IP are got, and return to user;
The parsing information that custom-configures includes the parameter and carrier server IP and power whether intelligently parsing module enables Value;
The intelligently parsing module first determines whether which operator the addresses IP of user belong to, if belonging to some operator, intelligence Parsing module will forward DNS requests to be parsed to corresponding carrier server, and be returned the result;If being not belonging to certain A operator, according to the addresses carrier server IP being arranged in DNS servers and weight, poll various servers IP lines DNS request datas are sent to carrier server and carry out DNS parsing acquisition analysis results, and return to user by road;
It is described to judge that the method for its operator is according to user's IP address:DNS servers are predefined to be equipped with operator IP Address list, each address table correspond to the IP address bases of different operators;When the DNS request bags of user reach intelligently parsing mould After block, intelligently parsing module is according to the operator address corresponding to the addresses IP belonging to predefined IP address table lookups user Table, judges which operator it belongs to, and DNS requests are forwarded to corresponding carrier server and carry out DNS parsings, returns Back to user's optimum line DNS.
2. the DNS intelligently parsing methods according to claim 1 based on egress network, which is characterized in that described self-defined Command Line Parsing information is specifically written as form:
options {
Prosta 1;
DnsIP {8.8.8.8 1;8.8.4.4 3}
}
Wherein, Prosta indicates that intelligently parsing module enables parameter, and 0 indicates to close, and 1 indicates to open;Include fortune in DnsIP Seek quotient's server ip and its weights.
CN201510174362.7A 2015-04-14 2015-04-14 DNS intelligently parsing methods based on egress network Expired - Fee Related CN104821965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510174362.7A CN104821965B (en) 2015-04-14 2015-04-14 DNS intelligently parsing methods based on egress network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510174362.7A CN104821965B (en) 2015-04-14 2015-04-14 DNS intelligently parsing methods based on egress network

Publications (2)

Publication Number Publication Date
CN104821965A CN104821965A (en) 2015-08-05
CN104821965B true CN104821965B (en) 2018-10-23

Family

ID=53732128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510174362.7A Expired - Fee Related CN104821965B (en) 2015-04-14 2015-04-14 DNS intelligently parsing methods based on egress network

Country Status (1)

Country Link
CN (1) CN104821965B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131068B (en) * 2016-08-26 2019-01-29 北京网瑞达科技有限公司 The system and method that user independently selects domain name system DNS parsing route
CN106534396A (en) * 2016-11-08 2017-03-22 安徽马钢自动化信息技术有限公司 Domain name analysis method and analysis system with multiple forwarding servers
CN106953941A (en) * 2017-04-17 2017-07-14 甘肃省科学技术情报研究所 A kind of multi-line intelligent DNS resolver and method
CN107846483A (en) * 2017-11-10 2018-03-27 北京粉笔蓝天科技有限公司 A kind of domain name analytic method, system and server
CN108763396A (en) * 2018-05-22 2018-11-06 陆金所(上海)科技服务有限公司 Access request processing method, device, computer equipment and storage medium
CN109905496A (en) * 2019-02-26 2019-06-18 上海浪潮云计算服务有限公司 A kind of DNS intelligent dispatching method based on subscriber policy
CN110830309A (en) * 2019-11-22 2020-02-21 北京麦哲科技有限公司 Intelligent distribution device and method for network server
CN111988441B (en) * 2020-07-24 2023-05-12 下一代互联网关键技术和评测北京市工程研究中心有限公司 IPv 6-based networking access method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820451A (en) * 2009-02-26 2010-09-01 上海数讯信息技术有限公司 Dynamic domain name service optimizing system
CN101873358A (en) * 2010-06-11 2010-10-27 杭州华三通信技术有限公司 Method and device for balancing link load on basis of domain name resolution
CN102833364A (en) * 2012-08-22 2012-12-19 深圳市共进电子股份有限公司 Domain name resolution agent method and gateway device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055979A1 (en) * 2001-09-19 2003-03-20 Cooley William Ray Internet domain name resolver

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820451A (en) * 2009-02-26 2010-09-01 上海数讯信息技术有限公司 Dynamic domain name service optimizing system
CN101873358A (en) * 2010-06-11 2010-10-27 杭州华三通信技术有限公司 Method and device for balancing link load on basis of domain name resolution
CN102833364A (en) * 2012-08-22 2012-12-19 深圳市共进电子股份有限公司 Domain name resolution agent method and gateway device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"智能DNS在多出口局域网中的应用研究";侯冬青;《西昌学院学报》;20110115;第29卷(第1期);第49-50页第1.1节以及图2 *

Also Published As

Publication number Publication date
CN104821965A (en) 2015-08-05

Similar Documents

Publication Publication Date Title
CN104821965B (en) DNS intelligently parsing methods based on egress network
CN103685583B (en) A kind of method and system of domain name mapping
CN105516391B (en) A kind of DNS name resolution method based on CNAME
US11171914B2 (en) Systems and methods for automatic inventory and DNS record generation
CN102932451B (en) A kind of resolution system for content distributing network
CN103780715B (en) Domain name mapping implementation method, client and Cloud Server
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
WO2019061522A1 (en) Domain name resolution method, client, edge node, and domain name resolution system
CN103685590B (en) Obtain the method and system of IP address
CN107071089A (en) Dispatch control method, device and system
CN104158919A (en) Webpage access implementation method, server and client
CN101764855A (en) Method, device and system for providing domain name resolution services
CN107846483A (en) A kind of domain name analytic method, system and server
CN108011995A (en) Strange land implementation method more living, strange land service platform more living and storage medium
CN103746929A (en) Optimal access flow scheduling method based on DNS (Domain Name System) and optimal access flow scheduling equipment based on DNS
CN102868758B (en) The method of door propelling movement and the network equipment
CN102143243A (en) Dynamic routing processing method and dynamic routing processing device and home gateway thereof
CN103873604B (en) Network access method based on analysis of CDN data
CN104702617B (en) A kind of data distributing method and device based on content distributing network
CN104767690A (en) Flow scheduling device and method
CN105704246A (en) Network distribution device and method based on SDN architecture
CN102271084A (en) Technology for locating communication paths of network host
CN108965036A (en) Configure across public network equipment exchanging visit method, system, server and storage medium
CN108111639A (en) A kind of method and system for improving domain name system availability
CN108243265A (en) A kind of dns resolution processing method and processing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181023

Termination date: 20190414

CF01 Termination of patent right due to non-payment of annual fee