CN105516391B - A kind of DNS name resolution method based on CNAME - Google Patents

A kind of DNS name resolution method based on CNAME Download PDF

Info

Publication number
CN105516391B
CN105516391B CN201510993981.9A CN201510993981A CN105516391B CN 105516391 B CN105516391 B CN 105516391B CN 201510993981 A CN201510993981 A CN 201510993981A CN 105516391 B CN105516391 B CN 105516391B
Authority
CN
China
Prior art keywords
domain name
content distributing
network
weight
poll
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
CN201510993981.9A
Other languages
Chinese (zh)
Other versions
CN105516391A (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.)
INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
Original Assignee
INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
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 INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC filed Critical INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
Priority to CN201510993981.9A priority Critical patent/CN105516391B/en
Publication of CN105516391A publication Critical patent/CN105516391A/en
Application granted granted Critical
Publication of CN105516391B publication Critical patent/CN105516391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/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]

Abstract

The invention belongs to field of computer technology, disclose a kind of DNS name resolution method based on CNAME, comprising: which multiple CNAME are arranged by realizing, and priority is set, by the CDN in different areas, probe node is set, it is tactful by poll, setting weight and out of kilter method etc., determine the CDN of optimal service performance, then it switches over, so that the CDN with optimal service performance responds inquiry of the domain name.Method of the invention can be improved the performance and user experience of domain name service, and improve safety, maintainability and the reliability of name server.

Description

A kind of DNS name resolution method based on CNAME
Technical field
The present invention relates to field of computer technology, in particular to a kind of DNS name resolution method based on CNAME.
Background technique
In DNS (Domain Name System, domain name system), there is a area in each authoritative name server File, including the various domain name datas stored in the form of resource record.Wherein, CNAME refers to canonical name, also referred to as advises Model name, this record allow user that multiple names are mapped to same computer.
Can be used for, which ought possess multiple domain names, needs to be directed toward same server ip, a domain name can be A at this time Record is directed toward server ip, then does other domain names in the domain name that alias (i.e. CNAME) is recorded to A;As the IP of server When address is changed, so that it may direction need not be altered to domain name one by one, it is only necessary to change that domain name of A record Onto the new IP of server, other directions for doing those of alias (i.e. CNAME) domain name will be changed to automatically in new IP address.A (Address) record is used to refer to determine the corresponding IP address record of host name (or domain name), and user can be by the net under the domain name Site server is directed on the web page server (web server) of oneself, while the subdomain name of domain name also can be set.
Currently, providing in DNS Protocol, there can only be a CNAME resource record in the area of name server.In domain name resources Under the ever-expanding background of the demand of addressing, this agreement regulation is no longer satisfied domain name system and CDN (Content Delivery Network, i.e. content distributing network) etc. the performance requirement of load balancing in new solutions, also to the fast of user The user experiences and domain name system security etc. such as speed access propose further challenge.
Summary of the invention
In view of the drawbacks of the prior art, the DNS name resolution method based on CNAME that the present invention provides a kind of, to solve The load-balancing performance of the domain name mapping problem of low quality with service in original DNS SiteServer LBS.
To solve the above problems, The technical solution adopted by the invention is as follows: a kind of DNS name resolution side based on CNAME Method, this method comprises:
Multiple canonical names are arranged to single domain name, and priority is arranged to above-mentioned canonical name;
Probe node is respectively set in the content distribution network system of different regions;
By poll or detection setting weight, or by preferentially being switched in the poll and detection setting weight Method selected, with determine and select in above-mentioned multiple and different content distributing network have optimal service performance in Content distributing network;
Recursion server switches over, so that this has the content distributing network response inquiry of the domain name of optimal service performance.
2, domain name analytic method as described in claim 1, which is characterized in that by the poll and detection setting power The method preferentially switched in weight includes: first to be polled by server, determines a preferred sequence;Setting weight is detected again, Obtain different weights, to determine a preferred sequence, afterwards by out of kilter method, from above-mentioned poll and detection setting weight respectively In obtained preferred sequence, the content distributing network with optimal service performance is selected, and switch over.
3, domain name analytic method as claimed in claim 1 or 2, which is characterized in that the poll includes recursion server It accesses to multiple and different content distributing networks, and according to the round-trip delay accessed for the first time, content distributing network is carried out Screening accesses inquiry to content distributing network according to the determining priority of screening.
4, domain name analytic method as claimed in claim 1 or 2, which is characterized in that the method for the detection setting weight Including obtaining multiple content delivery networks respectively according to priority to the multiple canonical names setting priority occurred in area file The respective weight of network, then according to the height of the weight of canonical name, recursion server carries out the content distributing network chosen Access queries.
5, domain name analytic method as claimed in claim 3, which is characterized in that round-trip delay is shorter, determines that it is preferential suitable Sequence is more forward.
6, domain name analytic method as claimed in claim 4, which is characterized in that determine the content delivery network in certain above-mentioned region The weight height of network is obtained using following formula: Pi=∑ ((1*P1+2*P2+3*P3+ ...+n*Pn)/(1+2+3+ ...+n)), In, n is the content distributing network number of setting.
Multiple CNAME are arranged by realizing in a kind of DNS name resolution method based on CNAME disclosed in this invention, and Priority is set, probe node is arranged by the CDN in different areas, passes through poll, the setting plans such as weight and out of kilter method Slightly, it determines the CDN of optimal service performance, then switches over, so that the CDN with optimal service performance responds inquiry of the domain name, To improve the performance and user experience of domain name service, and improve safety, maintainability and the reliability of name server.
Detailed description of the invention
Fig. 1 is the process principle figure of the DNS name resolution method based on CNAME in a preferred embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, but not as Limitation of the invention.
Referring to Fig. 1, the DNS name resolution method based on CNAME that the embodiment of the invention provides a kind of is introducing the present invention Before the method for embodiment, description below is carried out to following nouns:
CNAME refers to that canonical name is also referred to as specification name.This record allows you that multiple names are mapped to same Computer.Commonly used in providing the WWW and MAIL computer of service simultaneously.For example, there is a computer name to be " r0WSPFSx58. " (A record).It provides WWW and MAIL service simultaneously, accesses and services for the ease of user.It can be the meter Two alias (CNAME) is arranged in calculation machine: WWW and MAIL.The full name of the two alias is " r0WSPFSx58.baihuikm.com " " zz.***.com ".Actually they all point to " zz.***.com ".
Domain name mapping is exactly conversion process of the domain name to IP address.IP address is that your website is identified on network digitally Location replaces the address ip to identify site address in order to simple and easy to remember using domain name, and the parsing work of domain name is complete by dns server At.
A record is used to refer to determine the corresponding IP address record of host name (or domain name).User can be by the net under the domain name Site server is directed on the web server of oneself, while the second level domain of the domain name also can be set.
CNAME record, it may be assumed that canonical name.This record allows you that multiple names are mapped to same computer.Usually For providing the WWW and MAIL computer of service simultaneously.For example, having a computer name is " host.mydomain.com " (A Record).It provides WWW and MAIL service simultaneously, accesses and services for the ease of user.It can be two alias of computer installation (CNAME): WWW and MAIL.
Content distributing network (CDN) is a kind of new network building mode, it is for that can issue broadband in traditional IP network Rich-media and the network coverage layer especially optimized;Briefly, content distributing network (CDN) is one and disposes through tactic Total system, including 4 distributed storage, load balancing, the redirection of network request and Content Management important documents, load balancing is The core of entire CDN, the accuracy and efficiency of load balancing directly determine the efficiency and performance of entire CDN.Load balancing skill The flow of network is assigned to as homogeneously as possible and several can complete on the server or network node of same task by art Reason avoids subnetwork node overload and the deleterious situation of another part node free time, not only can be improved network flow, but also can be with The overall performance for improving network, by the judgement of user's close and server load, CDN ensures content with a kind of extremely efficient Mode provide service for the request of user.
RTT (Round-Trip Time): round-trip delay.It is an important performance indicator, table in a computer network Show since transmitting terminal sends data, receives the confirmation from receiving end to transmitting terminal and (soon sent out after receiving data receiving end Send confirmation), the time delay undergone in total.
DNS name resolution method disclosed in this invention based on CNAME specifically includes:
Multiple canonical names are arranged to single domain name, and priority is arranged to above-mentioned canonical name;
Probe node is respectively set in the content distribution network system of different regions;
By poll or detection setting weight, or by preferentially being switched in the poll and detection setting weight Method selected, with determine and select in above-mentioned multiple and different content distributing network have optimal service performance in Content distributing network;
Recursion server switches over, so that this has the content distributing network response inquiry of the domain name of optimal service performance.
Wherein, in inventive embodiments, to the optimum selecting of CDN, there are three types of mode, modes one: using the side of poll preferentially Method;Mode two: using the method for detection setting weight preferentially;Mode three: it is successively preferentially weighed respectively with detection setting using poll The method of weight preferentially realizes the free switching of the two after determining the CDN with optimal service performance in the two.By upper Three kinds of modes preferentially are stated, to improve the performance and user experience of domain name service.
Wherein, in the above-mentioned methods, the method for the poll includes that recursion server is to multiple and different content delivery networks Network accesses, and according to the round-trip delay accessed for the first time, screens to content distributing network, according to the preferential of screening determination Sequence accesses inquiry to content distributing network.Wherein, round-trip delay is shorter, determines that its priority is more forward.
Wherein, in the above-mentioned methods, it is described setting weight method include, to the multiple canonical names occurred in area file Priority is set, the respective weight of multiple content distributing networks is obtained, then according to the power of canonical name according to priority respectively The height of weight, recursion server access inquiry to the content distributing network chosen.Determine the content distribution in certain above-mentioned region The weight height of network is obtained using following formula: Pi=∑ ((1*P1+2*P2+3*P3+ ...+n*Pn)/(1+2+3+ ...+n)), Wherein, n is the number of content distributing network setting.
For example, it is assumed that there are three different CDN, respectively C1, C2, C3, the priority of C1, C2, C3 are respectively 1,2,3, Then the priority and weight of these three CDN is respectively C1 (1,1/1+2+3), C2 (2,2/1+2+3), C3 (3,3/1+2+3).
Using mode three of the present invention preferentially free switching the step of it is as follows:
(1) poll
Recursion server accesses to multiple and different CDN.CDN is carried out preferably according to the RTT of access, then basis Preference ordering accesses inquiry to CDN.
(2) detection setting weight
CDN in different cities disposes probe node, priority is arranged to different CDN according to the result of detection, then Obtain the weight of different CDN;
(3) preferentially
By out of kilter method, the CDN of optimal service performance is determined in multiple and different CDN.If there is Beijing CDN node P1, Shanghai CDN node P2, Chengdu CDN node P3 ..., Shenyang CDN node Pn, then the weight of different CDN nodes can lead to It crosses formula to obtain: Pi=∑ ((1*P1+2*P2+3*P3+ ...+n*Pn)/(1+2+3+ ...+n)).
(4) CDN with optimal service performance determined according to upper step, recursion server switch over CDN.
The present invention records setting priority to these CNAME by the way that multiple CNAME are arranged to single domain name, by Probe node is arranged in the CDN in different areas, tactful by poll, setting weight and out of kilter method etc., determines optimal service The CDN of energy, then switches over, so that the CDN with optimal service performance responds inquiry of the domain name, has improved domain name service performance Raising and user terminal experience promotion.
Although combining preferred embodiment above, invention has been described, it should be appreciated by those skilled in the art, Method and system of the present invention is not limited to embodiment described in specific embodiment, wants without departing substantially from by appended right Ask book limit spirit and scope of the invention in the case where, can to the present invention various modification can be adapted, increase and replacement.

Claims (5)

1. a kind of DNS name resolution method based on CNAME, which is characterized in that this method comprises:
Multiple canonical names are arranged to single domain name, and priority is arranged to above-mentioned canonical name;
Probe node is respectively set in the content distribution network system of different regions;
By poll or detection setting weight, or the side by preferentially being switched in the poll and detection setting weight Method is selected, to determine and select the content with optimal service performance in above-mentioned multiple and different content distributing network point Hairnet network;
Recursion server switches over, so that this has the content distributing network response inquiry of the domain name of optimal service performance;
It include: first to be polled by server by the method preferentially switched in the poll and detection setting weight, Determine a preferred sequence;Setting weight is detected again, obtains different weights, to determine a preferred sequence, passes through out of kilter method afterwards, From the preferred sequence respectively obtained in above-mentioned poll and detection setting weight, the content distribution with optimal service performance is selected Network, and switch over.
2. domain name analytic method as described in claim 1, which is characterized in that the poll includes that recursion server is to multiple Different content distributing networks access, and according to the round-trip delay accessed for the first time, screen to content distributing network, root It accesses inquiry according to the determining priority of screening to content distributing network.
3. domain name analytic method as described in claim 1, which is characterized in that the method for the detection setting weight includes, right The multiple canonical names setting priority occurred in area file obtains multiple content distributing networks respectively according to priority respectively Weight, then according to the height of the weight of canonical name, recursion server accesses to the content distributing network chosen and looks into It askes.
4. domain name analytic method as claimed in claim 2, which is characterized in that round-trip delay is shorter, determines that its priority is got over It is forward.
5. domain name analytic method as claimed in claim 3, which is characterized in that determine the content distributing network in certain above-mentioned region Weight height is obtained using following formula: Pi=∑ ((1*P1+2*P2+3*P3+ ...+n*Pn)/(1+2+3+ ...+n)), wherein n For the content distributing network number of setting.
CN201510993981.9A 2015-12-25 2015-12-25 A kind of DNS name resolution method based on CNAME Active CN105516391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510993981.9A CN105516391B (en) 2015-12-25 2015-12-25 A kind of DNS name resolution method based on CNAME

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510993981.9A CN105516391B (en) 2015-12-25 2015-12-25 A kind of DNS name resolution method based on CNAME

Publications (2)

Publication Number Publication Date
CN105516391A CN105516391A (en) 2016-04-20
CN105516391B true CN105516391B (en) 2018-12-21

Family

ID=55724016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510993981.9A Active CN105516391B (en) 2015-12-25 2015-12-25 A kind of DNS name resolution method based on CNAME

Country Status (1)

Country Link
CN (1) CN105516391B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959433B (en) * 2016-07-22 2019-02-19 无锡华云数据技术服务有限公司 A kind of domain name analytic method and its domain name analysis system
CN106301966B (en) * 2016-10-25 2019-08-06 北京云端智度科技有限公司 A method of the proportional assignment flow based on domain name
CN106657432B (en) * 2016-11-17 2019-10-15 ***通信集团江苏有限公司 Domain name analytic method and device
CN112104498B (en) * 2016-11-17 2023-04-07 贵州白山云科技股份有限公司 DNS service quality evaluation method, device, medium and equipment
CN106506726A (en) * 2016-12-12 2017-03-15 北京云端智度科技有限公司 A kind of method of verification DNS real users
CN108243266A (en) * 2016-12-27 2018-07-03 阿里巴巴集团控股有限公司 Canonical name processing method, configuration method and device
CN107360273A (en) * 2017-09-11 2017-11-17 深圳市茁壮网络股份有限公司 A kind of domain name analytic method and device
CN107734080B (en) * 2017-10-09 2020-09-04 厦门二五八网络科技集团股份有限公司 Method for multi-user domain name resolution and domain name server migration
CN107888717B (en) * 2017-12-26 2021-04-20 北京搜狐新媒体信息技术有限公司 Domain name determination method and device and electronic equipment
CN109167674B (en) * 2018-07-24 2021-05-18 网宿科技股份有限公司 Service node scoring method, Domain Name System (DNS) scheduling method and server
CN108881516B (en) * 2018-07-27 2021-03-19 网宿科技股份有限公司 Method and device for scheduling multi-CDN service system
CN109510809B (en) * 2018-09-17 2020-09-08 华为技术有限公司 Domain name access method and device
CN109561101B (en) * 2018-12-25 2021-08-10 上海点融信息科技有限责任公司 Processing method and device for denial of service attack
CN109818821B (en) * 2018-12-28 2021-02-05 大唐软件技术股份有限公司 Detection method and device for CDN (content delivery network) architecture of website
CN109936632B (en) * 2019-03-07 2021-12-21 杭州又拍云科技有限公司 CNAME acceleration method applied to DNS authoritative server
CN110213398B (en) * 2019-05-30 2021-10-08 腾讯科技(深圳)有限公司 Alias management method, device, server and storage medium
CN112182070B (en) * 2020-10-13 2022-06-14 安徽极玩云科技有限公司 Elasticissearch query management system based on cloud computing
CN114422476B (en) * 2021-12-28 2023-09-22 互联网域名***北京市工程研究中心有限公司 Method and device for preventing CNAME (CNAME) cache pollution

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075593A (en) * 2010-12-30 2011-05-25 北京世纪互联工程技术服务有限公司 Method and system for generating secure data network system (SDNS) data
CN104144222A (en) * 2014-08-20 2014-11-12 北京阅联信息技术有限公司 Method and system for load balancing in DNS system based on alias record
CN104580542A (en) * 2013-10-12 2015-04-29 无锡云捷科技有限公司 Intelligent analysis method of DNS system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075593A (en) * 2010-12-30 2011-05-25 北京世纪互联工程技术服务有限公司 Method and system for generating secure data network system (SDNS) data
CN104580542A (en) * 2013-10-12 2015-04-29 无锡云捷科技有限公司 Intelligent analysis method of DNS system
CN104144222A (en) * 2014-08-20 2014-11-12 北京阅联信息技术有限公司 Method and system for load balancing in DNS system based on alias record

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"内容分发网络研究";李乔等;《电子学报》;20130831;第41卷(第8期);全文 *
"基于分布式平台的DNS信息探测***设计与实现";孙瑞;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140315;全文 *
"适用于内容分发网络的动态负载均衡策略";徐卫东等;《计算机科学》;20050123;第32卷(第1期);全文 *

Also Published As

Publication number Publication date
CN105516391A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105516391B (en) A kind of DNS name resolution method based on CNAME
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
US11025585B2 (en) Enhanced content route selection in content delivery networks
CN104144222B (en) Based on the load-balancing method of canonical name and system in DNS authoring system
JP5103530B2 (en) DNS wildcard beaconing to determine client location and resolver load for global traffic load balancing
CN103825975B (en) Cdn node distribution server and system
US8489724B2 (en) CNAME-based round-trip time measurement in a content delivery network
JP5150769B2 (en) Updating routing information using request routing and client location information
CN109151009B (en) CDN node distribution method and system based on MEC
CN102014173B (en) Domain name redirecting control method, module and system
CN101989951A (en) Method, system and equipment for selecting service node
US20190028388A1 (en) Enhanced infrastructure routing with prefixed network addressing in content delivery networks
WO2004072798A2 (en) Methods and systems for providing dynamic domain name system for inbound route control
CN108124020B (en) Domain name resolution method, system and equipment
CN104618243B (en) Method for routing, apparatus and system, Scheduling of Gateway method and device
EP3860095A1 (en) Methods for information drainage, requesting transmission and communication acceleration, and drainage and node server
CN103685583A (en) Method and system for resolving domain names
WO2009085465A1 (en) System and method for selecting an optimal authoritative name server
CN103167045B (en) Select method, dns server and the DNS management system of network layer protocol
CN104821965B (en) DNS intelligently parsing methods based on egress network
CN106412063A (en) CDN node detection and resource scheduling system and method in education network
CN103428302A (en) Domain name resolution method, server and system
CN108989487A (en) CDN Optimization Scheduling based on local dns
CN104468853A (en) Domain name resolution method, server and system
CN103873604A (en) Network access method based on analysis of CDN data

Legal Events

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