CN109905496A - A kind of DNS intelligent dispatching method based on subscriber policy - Google Patents
A kind of DNS intelligent dispatching method based on subscriber policy Download PDFInfo
- Publication number
- CN109905496A CN109905496A CN201910142273.2A CN201910142273A CN109905496A CN 109905496 A CN109905496 A CN 109905496A CN 201910142273 A CN201910142273 A CN 201910142273A CN 109905496 A CN109905496 A CN 109905496A
- Authority
- CN
- China
- Prior art keywords
- domain name
- dns
- library
- user
- policy
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention is more particularly directed to a kind of DNS intelligent dispatching method based on subscriber policy.The DNS intelligent dispatching method based on subscriber policy, Add User policy module and subscriber policy database in DNS system;The library IP is according to operator and territorial classification;After user configuration circuit types and mapping domain name, user policy module reads policy information automatically, by domain name and corresponding area operators combination deposit database;When domain name mapping requests to reach DNS system, user policy module reduces the range in the inquiry library IP according to the corresponding area operators of inquiry of the domain name, then from effective library IP the precise positioning request source the library IP, to return to different parsing results.The DNS intelligent dispatching method based on subscriber policy, solve the problems, such as that traditional DNS intelligent dispatching method inquires a large amount of invalid libraries IP frequently so as to cause inefficiency, by Adding User policy module and subscriber policy database filters out effective library IP, inquiry times are reduced, to substantially increase analyzing efficiency.
Description
Technical field
The present invention relates to dns resolution technical field, in particular to a kind of DNS intelligent dispatching method based on subscriber policy.
Background technique
DNS (Domain Name System) i.e. domain name system is mutually mapped as domain name and IP address on WWW
One distributed data base, is able to use family and more easily accesses internet, remembers to be directly read by machine without spending
IP number string.By domain name, the process for finally obtaining the corresponding IP address of the domain name is called domain name mapping (or hostname resolution).
DNS Protocol operates on UDP (User Datagram Protocol, User Datagram Protocol) agreement, uses port numbers 53.
It is made of resolver and name server, domain name refer to preserve in the network domain name of All hosts and with corresponding IP
Address, and have the function of the server for translating domain names into IP address.
Common dns server is only responsible for user and parses IP record, judges that user wherefrom comes without going, meeting in this way
Cause all users that can only all be resolved in fixed IP address.And intelligent DNS judges the incoming road of user, according to the IP of user
Source is mapped to domain name in different IP address, and the IP after intellectual determination is then returned to user, to improve user's
Access speed.If the website of an enterprise covers telecommunications, Netcom, mobile three operators, equally have from three operators
Access client accesses to the enterprise site, if access user is telecom client, intelligent DNS is made after parsing User IP
Judgement, returns to user for server telecommunication station IP, accesses the corporate telecommunications website website for access user.Can also according to
The region at family returns to the Site IP nearest away from user.
Present DNS intelligent dispatching method, if the library IP is directly divided into different regions by Bind, different zones are corresponding
Domain name mapping is also different in ZONE file.Bind is realized by the way of ACL+VIEW, first determines whether the source of client's request, so
Different IP is returned afterwards.It is exactly that the list of the national library IP is classified and arranged in ACL, obtains different network type and differently
The library IP in area, the corresponding ACL file in each library IP, such as telecommunications Beijing User IP library are uniformly stored in an ACL file.
Each ACL corresponding view VIEW, ZONE are recorded in VIEW.DNS view be exactly to the same resource record according to DNS
It requests source IP addresses different, is assigned in different VIEW, so that the parsing result returned is also different.But since the library IP can
Can be from the whole nation even whole world, the classification in region is very huge, and inquiring from each library IP can take considerable time, in addition,
The list of the national library IP often changes, this results in the library IP for relying on this mode to need frequent updating to synchronize IP address
Relevant information greatly reduces the efficiency of parsing.
Based on the above situation, the present invention devises a kind of DNS intelligent dispatching method based on subscriber policy, is not necessarily to from each
The library IP progress match query parses corresponding IP address and returns to user, to improve dns resolution efficiency.
Therefore the present invention frequently matches the invalid library IP and proposes a kind of intelligent scheduling side based on subscriber policy for solution
Method judges which library IP user may be from by inquiry subscriber policy, is classified as effective library IP, looks into pinpoint again
Effective library IP is ask to return to parsing result, the invention will greatly improve analyzing efficiency.
Summary of the invention
In order to compensate for the shortcomings of the prior art, the present invention provides a kind of DNS intelligence based on subscriber policy being simple and efficient
It can dispatching method.
The present invention is achieved through the following technical solutions:
A kind of DNS intelligent dispatching method based on subscriber policy, which comprises the following steps:
(1) Add User policy module and subscriber policy database in DNS system;
(2) when user configuration circuit types and mapping domain name, the library IP is according to operator and territorial classification, operator and area
Domain then corresponds to the different libraries IP;
(3) after user configuration, user policy module reads policy information automatically, by domain name and corresponding area operators group
It closes in deposit database;
(4) when domain name mapping requests to reach DNS system, user policy module is according to the corresponding area of the inquiry of the domain name domain name
Domain operator forms effective library IP by region and operator list, to reduce the range in the inquiry library IP, then from effective library IP
The library IP in the precise positioning request source, to return to different parsing results.
In the step (1), for the DNS framework based on Bind, Add User policy module and subscriber policy data
Library;DNS intelligent scheduling framework based on Bind is the mode of ACL+VIEW+ZONE, dns server for ACL, VIEW or
The intelligent scheduling of the application of ZONE can be realized different users and access the same domain name, at different IP domain name mapping
Location allows users to access the data on closest to him server, referred to as the view function of dns server.
In the step (2), in dns server configuration domain name mapping record, by domain name operator corresponding with its and
Zone list is stored in subscriber policy database table.
In the step (2), user or administrator add domain name mapping record, and solution new record includes domain name, operator, area
Domain, parsing type and route corresponding IP or CNAME.
The user policy module reads configuration data, generates corresponding domain name operator list for each domain name, and
It is combined into its corresponding library IP list name.
In the step (4), when dns resolution requests to reach, the huge library IP is no longer matched one by one, but first by user
DNS message is intercepted and captured in policy module, source IP and request domain name in message request is parsed, according to inquiry of the domain name subscriber policy data
Library table, obtains the corresponding zone list of the domain name, forms the list of effective library IP by zone list.
The step (4) specifically includes the following steps:
(a) user policy module inquires local data base first, checks the corresponding effective library the IP list name of the domain name;
(b) the IP list in effective library IP is then traversed, source IP is accurately positioned and is particularly located in which library IP, then arrive
Parsing result is inquired in the corresponding VIEW in the library IP;
If (c) can not be matched to any one library IP, the VIEW for going matching to default returns to parsing result.
In the step (b), which is transmitted to ACL module, only ACL text of the traversal comprising IP library name in list
Part, searches which ACL file user sources IP is located at, and is then mapped in the ZONE of corresponding VIEW file, returns to parsing result.
The beneficial effects of the present invention are: being somebody's turn to do the DNS intelligent dispatching method based on subscriber policy, solves traditional DNS intelligence
Dispatching method frequently inquires the problem of a large amount of invalid libraries IP are so as to cause inefficiency, passes through policy module and the user of Adding User
Policy database filters out effective library IP, to reduce inquiry times, to substantially increase analyzing efficiency.
Detailed description of the invention
Attached drawing 1 is DNS intelligent scheduling configuration diagram of the present invention.
Attached drawing 2 is that the present invention is based on the DNS intelligent scheduling flow diagrams of subscriber policy.
Specific embodiment
In order to which technical problems, technical solutions and advantages to be solved are more clearly understood, tie below
Drawings and examples are closed, the present invention will be described in detail.It should be noted that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
The DNS intelligent dispatching method based on subscriber policy, comprising the following steps:
(1) Add User policy module and subscriber policy database in DNS system;
(2) when user configuration circuit types and mapping domain name, the library IP is according to operator and territorial classification, operator and area
Domain then corresponds to the different libraries IP;
(3) after user configuration, user policy module reads policy information automatically, by domain name and corresponding area operators group
It closes in deposit database;
(4) when domain name mapping requests to reach DNS system, user policy module is according to the corresponding area of the inquiry of the domain name domain name
Domain operator forms effective library IP by region and operator list, to reduce the range in the inquiry library IP, then from effective library IP
The library IP in the precise positioning request source, to return to different parsing results.
In the step (1), for the DNS framework based on Bind, Add User policy module and subscriber policy data
Library;DNS intelligent scheduling framework based on Bind is the mode of ACL+VIEW+ZONE, dns server for ACL, VIEW or
The intelligent scheduling of the application of ZONE can be realized different users and access the same domain name, at different IP domain name mapping
Location allows users to access the data on closest to him server, referred to as the view function of dns server.
The view function of the dns server is to be realized in configuration file using VIEW, being made using IP address
The region ZONE individually accessed is uniformly placed in the VIEW paragraph of a name, and the IP address of request is defined in VIEW
Or IP address section, in IP address write-in match-clients option;
For example, two ACL accesses control lists can be used and write telecommunications or Netcom in order to distinguish telecommunications and Netcom's route
IP address defines the library IP.ACL name is written in VIEW paragraph match-clients option again, if representing user source IP
It has been matched to the library IP, then has executed the domain name mapping record in its corresponding ZONE file.
In the step (2), in dns server configuration domain name mapping record, by domain name operator corresponding with its and
Zone list is stored in subscriber policy database table.
In the step (2), user or administrator add domain name mapping record, and solution new record includes domain name, operator, area
Domain, parsing type and route corresponding IP or CNAME.
The user policy module reads configuration data, generates corresponding domain name operator list for each domain name, and
It is combined into its corresponding library IP list name.
For example, telecommunications Pekinese ip library name is dianxin_beijing.User configuration domain name www.example.com
Solution new record telecommunications Pekinese route be mapped to 1.1.1.1, connection Pekinese user is mapped to 2.2.2.2.
The user policy module is by domain name www.example.com and IP library list name: dianxin_beijing,
Liantong_beijin is stored in subscriber policy database.
In the step (4), when dns resolution requests to reach, the huge library IP is no longer matched one by one, but first by user
DNS message is intercepted and captured in policy module, source IP and request domain name in message request is parsed, according to inquiry of the domain name subscriber policy data
Library table, obtains the corresponding zone list of the domain name, forms the list of effective library IP by zone list.
The step (4) specifically includes the following steps:
(a) user policy module inquires local data base first, checks the corresponding effective library the IP list name of the domain name;
(b) the IP list in effective library IP is then traversed, source IP is accurately positioned and is particularly located in which library IP, then arrive
Parsing result is inquired in the corresponding VIEW in the library IP;
If (c) can not be matched to any one library IP, the VIEW for going matching to default returns to parsing result.
In the step (b), which is transmitted to ACL module, only ACL text of the traversal comprising IP library name in list
Part, searches which ACL file user sources IP is located at, and is then mapped in the ZONE of corresponding VIEW file, returns to parsing result.
Claims (8)
1. a kind of DNS intelligent dispatching method based on subscriber policy, which comprises the following steps:
(1) Add User policy module and subscriber policy database in DNS system;
(2) when user configuration circuit types and mapping domain name, the library IP is according to operator and territorial classification, and operator and region are then
Correspond to the different libraries IP;
(3) after user configuration, user policy module reads policy information automatically, and domain name and the combination of corresponding area operators are deposited
Enter in database;
(4) when domain name mapping requests to reach DNS system, user policy module is transported according to the corresponding region of the inquiry of the domain name domain name
Quotient is sought, effective library IP is formed by region and operator list, to reduce the range in the inquiry library IP, then from effective library IP precisely
The library IP in the request source is positioned, to return to different parsing results.
2. the DNS intelligent dispatching method according to claim 1 based on subscriber policy, it is characterised in that: the step (1)
In, for the DNS framework based on Bind, Add User policy module and subscriber policy database;DNS based on Bind
Intelligent scheduling framework is the mode of ACL+VIEW+ZONE, and dns server adjusts the intelligence of the application of ACL, VIEW or ZONE
Degree can be realized different user and access the same domain name, domain name mapping at different IP address, allow users to access from
Data on his nearest server, referred to as the view function of dns server.
3. the DNS intelligent dispatching method according to claim 1 based on subscriber policy, it is characterised in that: the step (2)
In, in dns server configuration domain name mapping record, domain name operator corresponding with its and zone list are stored in user's plan
Slightly in database table.
4. the DNS intelligent dispatching method according to claim 1 or 3 based on subscriber policy, it is characterised in that: the step
(2) in, user or administrator add domain name mapping record, and solution new record includes domain name, operator, region, parsing type and line
Road corresponding IP or CNAME.
5. the DNS intelligent dispatching method according to claim 4 based on subscriber policy, it is characterised in that: user's plan
Slightly module reads configuration data, generates corresponding domain name operator list for each domain name, and be combined into its corresponding library IP
List name.
6. the DNS intelligent dispatching method according to claim 1 based on subscriber policy, it is characterised in that: the step (4)
In, when dns resolution requests to reach, the huge library IP is no longer matched one by one, but DNS report is first intercepted and captured by user policy module
Text parses the source IP in message request and request domain name according to inquiry of the domain name subscriber policy database table and obtains the domain name pair
The zone list answered forms the list of effective library IP by zone list.
7. the DNS intelligent dispatching method according to claim 6 based on subscriber policy, it is characterised in that: the step (4)
Specifically includes the following steps:
(a) user policy module inquires local data base first, checks the corresponding effective library the IP list name of the domain name;
(b) the IP list in effective library IP is then traversed, source IP is accurately positioned and is particularly located in which library IP, then arrive the IP
Parsing result is inquired in the corresponding VIEW in library;
If (c) can not be matched to any one library IP, the VIEW for going matching to default returns to parsing result.
8. the DNS intelligent dispatching method according to claim 7 based on subscriber policy, it is characterised in that: the step (b)
In, which is transmitted to ACL module, only ACL file of the traversal comprising IP library name in list, searches user sources IP
It in which ACL file, is then mapped in the ZONE of corresponding VIEW file, returns to parsing result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910142273.2A CN109905496A (en) | 2019-02-26 | 2019-02-26 | A kind of DNS intelligent dispatching method based on subscriber policy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910142273.2A CN109905496A (en) | 2019-02-26 | 2019-02-26 | A kind of DNS intelligent dispatching method based on subscriber policy |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109905496A true CN109905496A (en) | 2019-06-18 |
Family
ID=66945538
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910142273.2A Pending CN109905496A (en) | 2019-02-26 | 2019-02-26 | A kind of DNS intelligent dispatching method based on subscriber policy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109905496A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111049941A (en) * | 2019-11-27 | 2020-04-21 | 上海帝联网络科技有限公司 | DNS scheduling method, domain name server and computer readable storage medium |
CN111343245A (en) * | 2020-02-13 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Uploading line scheduling method and device, electronic equipment and readable storage medium |
CN111885216A (en) * | 2020-07-15 | 2020-11-03 | 北京青云科技股份有限公司 | DNS query method, device, equipment and storage medium |
CN111917898A (en) * | 2020-07-24 | 2020-11-10 | 网宿科技股份有限公司 | Resource scheduling policy adjusting method and device |
US20200380008A1 (en) * | 2019-05-31 | 2020-12-03 | Snowflake Inc. | Sharing data in a data exchange using listings |
CN112910919A (en) * | 2021-02-26 | 2021-06-04 | 北京百度网讯科技有限公司 | Analysis method, analysis device, electronic device, and storage medium |
CN112954089A (en) * | 2021-04-12 | 2021-06-11 | 平安科技(深圳)有限公司 | Method, device and equipment for analyzing data and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610294A (en) * | 2009-07-15 | 2009-12-23 | 浪潮电子信息产业股份有限公司 | A kind of method of utilizing intelligent DNS to improve website visiting speed |
CN102780791A (en) * | 2012-07-18 | 2012-11-14 | 广东睿江科技有限公司 | Self-adaption IP (Internet Protocol) method, device and system |
US20130326084A1 (en) * | 2012-06-04 | 2013-12-05 | Microsoft Corporation | Dynamic and intelligent dns routing with subzones |
CN104580542A (en) * | 2013-10-12 | 2015-04-29 | 无锡云捷科技有限公司 | Intelligent analysis method of DNS system |
CN104821965A (en) * | 2015-04-14 | 2015-08-05 | 鹤壁西默通信技术有限公司 | DNS intelligent resolution method based on outlet network |
-
2019
- 2019-02-26 CN CN201910142273.2A patent/CN109905496A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610294A (en) * | 2009-07-15 | 2009-12-23 | 浪潮电子信息产业股份有限公司 | A kind of method of utilizing intelligent DNS to improve website visiting speed |
US20130326084A1 (en) * | 2012-06-04 | 2013-12-05 | Microsoft Corporation | Dynamic and intelligent dns routing with subzones |
CN102780791A (en) * | 2012-07-18 | 2012-11-14 | 广东睿江科技有限公司 | Self-adaption IP (Internet Protocol) method, device and system |
CN104580542A (en) * | 2013-10-12 | 2015-04-29 | 无锡云捷科技有限公司 | Intelligent analysis method of DNS system |
CN104821965A (en) * | 2015-04-14 | 2015-08-05 | 鹤壁西默通信技术有限公司 | DNS intelligent resolution method based on outlet network |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200380008A1 (en) * | 2019-05-31 | 2020-12-03 | Snowflake Inc. | Sharing data in a data exchange using listings |
CN111049941A (en) * | 2019-11-27 | 2020-04-21 | 上海帝联网络科技有限公司 | DNS scheduling method, domain name server and computer readable storage medium |
CN111343245A (en) * | 2020-02-13 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Uploading line scheduling method and device, electronic equipment and readable storage medium |
CN111885216A (en) * | 2020-07-15 | 2020-11-03 | 北京青云科技股份有限公司 | DNS query method, device, equipment and storage medium |
CN111885216B (en) * | 2020-07-15 | 2022-12-06 | 北京青云科技股份有限公司 | DNS query method, device, equipment and storage medium |
CN111917898A (en) * | 2020-07-24 | 2020-11-10 | 网宿科技股份有限公司 | Resource scheduling policy adjusting method and device |
CN111917898B (en) * | 2020-07-24 | 2021-08-27 | 网宿科技股份有限公司 | Resource scheduling policy adjusting method and device |
CN112910919A (en) * | 2021-02-26 | 2021-06-04 | 北京百度网讯科技有限公司 | Analysis method, analysis device, electronic device, and storage medium |
CN112954089A (en) * | 2021-04-12 | 2021-06-11 | 平安科技(深圳)有限公司 | Method, device and equipment for analyzing data and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109905496A (en) | A kind of DNS intelligent dispatching method based on subscriber policy | |
CN111373704B (en) | Method, system and storage medium for supporting multimode identification network addressing progressive-entry IP | |
Afanasyev et al. | SNAMP: Secure namespace mapping to scale NDN forwarding | |
US7558880B2 (en) | Dynamic DNS registration method, domain name solution method, DNS proxy server, and address translation device | |
US7937471B2 (en) | Creating a public identity for an entity on a network | |
US7225272B2 (en) | Method and apparatus for providing name services | |
WO2015117337A1 (en) | Method and apparatus for setting network rule entry | |
US8554946B2 (en) | NAT traversal method and apparatus | |
US20170346789A1 (en) | Geolocation via internet protocol | |
US20120079055A1 (en) | Reverse dns lookup with modified reverse mappings | |
US20100023611A1 (en) | Method and device for storing domain name system records, method and device for parsing domain name | |
US8433793B2 (en) | Dispatching method, dispatching apparatus and dispatching system | |
EP3105902A1 (en) | Methods, apparatus and systems for processing service requests | |
CN105282269B (en) | A kind of configuration method and method of servicing of local dns root server | |
CN108702396A (en) | For the method for data processing, equipment and computer program and hierarchical domain name system area file | |
CN103957282B (en) | Terminal user's domain name mapping acceleration system and its method in a kind of domain | |
CN107222587B (en) | A kind of method for remotely accessing private network device | |
CN1852263A (en) | Message access controlling method and a network apparatus | |
Afanasyev et al. | Map-and-encap for scaling ndn routing | |
CN115174518B (en) | RPZ-based recursive side domain name preservation method and system | |
CN104506665B (en) | Distinguish method and system in a kind of IPv4/IPv6 addresses | |
EP2019535A1 (en) | Requester-aware domain name system | |
CN203086518U (en) | Self-adaptive intelligent DNS server | |
CN111147621A (en) | Method for supporting IPv6 service access of external network user | |
Peterson et al. | Architectural Considerations on Application Features in the DNS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190618 |
|
RJ01 | Rejection of invention patent application after publication |