CN102882791A - Method and device for processing DNS (Domain Name Server) business - Google Patents

Method and device for processing DNS (Domain Name Server) business Download PDF

Info

Publication number
CN102882791A
CN102882791A CN2012104242477A CN201210424247A CN102882791A CN 102882791 A CN102882791 A CN 102882791A CN 2012104242477 A CN2012104242477 A CN 2012104242477A CN 201210424247 A CN201210424247 A CN 201210424247A CN 102882791 A CN102882791 A CN 102882791A
Authority
CN
China
Prior art keywords
dns
zone
domain name
message
request message
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
Application number
CN2012104242477A
Other languages
Chinese (zh)
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN2012104242477A priority Critical patent/CN102882791A/en
Publication of CN102882791A publication Critical patent/CN102882791A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for processing a DNS (Domain Name Server) business. The method comprises the steps of receiving a DNS request message sent by a client, searching whether a cache record is hit or not according to the domain corresponding to a source IP (Internet Protocol) of the DNS request message and the request domain name, if so, returning the IP address of the hit cache record to a user through a response message and ending the flow; otherwise, sending the DNS request message to a DNS server, so that the DNS server searches in terms of the DNS request message and returns the response message; caching the IP address corresponding to the response message by taking the domain and domain name as indexes and returning the response message to the user. According to the invention, the defect of slow network speed is solved; and the user experience is greatly improved.

Description

A kind of method of DNS Business Processing and device
Technical field
The present invention relates to the data network communications field, relate in particular to a kind of method and apparatus of DNS Business Processing.
Background technology
In order to make people can access easily the Internet, and need not remember the IP string that can directly be read by machine, often use the DNS system.Usually, in order to reduce the pressure of dns server, before dns server, add buffer memory device, replace dns server to respond most request by buffer memory device.When the IP of certain domain name of client-requested, at first check this request by the buffer memory device of dns server front-end configuration, if this domain name is arranged in the buffer memory device, so directly from buffer memory, take out corresponding result and return to client; If there is not this domain name in the buffer memory device, so this request is transmitted to back-end server, to buffer memory device, buffer memory device is stored this response to server by the inquiry return results, then will respond bag and return to client.
Existing DNS caching technology is no problem in function, can realize replacing server response great majority request bag, alleviates server stress.But, can make user's networking speed slack-off.
Summary of the invention
In view of this, make user's the slack-off problem of networking speed for existing caching technology, the invention provides a kind of method and apparatus of DNS Business Processing, by zone and the domain name of cache request message, each regional user is obtained from its nearest address.
Technical scheme of the present invention is as follows:
A kind of DNS method for processing business is applied on the DNS buffer memory device, and described DNS buffer memory device is positioned at before the dns server, and described method comprises:
The DNS request message that steps A, reception client are sent;
Step B, whether hit caching record according to zone corresponding to the source IP of described DNS request message and the domain name lookup of request, if then the IP address that the caching record of hitting is corresponding returns to the user by response message, and process ends, if not, go to step C;
Step C, the described DNS request message of transmission are to dns server, so that response message is searched and returned to described dns server for described DNS request message;
Step D, take zone and domain name as IP address corresponding to the described response message of indexed cache, and described response message returned to the user.
The present invention provides a kind of DNS business processing device simultaneously, is applied on the DNS buffer memory device, and described DNS buffer memory device is positioned at before the dns server, and described device comprises:
The message receiving element is used for receiving the DNS request message that client is sent;
Message is searched the unit, be used for whether hitting caching record according to zone corresponding to the source IP of described DNS request message and the domain name lookup of request, if then the IP address that the caching record of hitting is corresponding returns to the user by response message, if not, the notice packet sending unit is carried out the message transmission;
Packet sending unit is used for sending described DNS request message to dns server, so that response message is searched and returned to described dns server for described DNS request message;
The packet storage unit is used for the IP address take zone and domain name as the described response message of indexed cache, and described response message is returned to the user.
The present invention is compared with existing technology, by the source IP of buffer memory DNS request message corresponding zone and the domain name of request and the IP address of correspondence, and the response message that it is corresponding returns to the user, solved the slow shortcoming of user's networking speed, and user's experience is greatly improved.
Description of drawings
Fig. 1 is the device logical construction schematic diagram of a kind of DNS Business Processing among the present invention.
Fig. 2 is the method flow schematic diagram of a kind of DNS Business Processing among the present invention.
Fig. 3 is another specific embodiment schematic flow sheet of a kind of DNS method for processing business of the present invention.
Embodiment
The inventor is by researching and analysing in a large number, finds to have that to make the slow main cause of user's networking speed in the prior art be domain name and the IP information that existing DNS method for processing business is cache request.For example, when A area user asked some websites, when Website server returned the station address in A area, caching server had just been left described address, in the buffer memory life cycle, all regions user can have caching server to return A single site network station address to the request of described website subsequently.Because what the access of all regions was all returned is the station address in A area, the user experiences variation, and networking speed is slack-off.In view of this, the method and apparatus of a kind of DNS Business Processing provided by the invention can address the above problem.
The method and apparatus of a kind of DNS Business Processing provided by the invention, be applied to realize based on dns server in the DNS buffer, described DNS buffer is as the optional equipment of dns server, can be installed on the dns server, also can be independent of the dns server setting.General design of the present invention is: when the user accesses a certain website, initiate inquiry by recurrence DNS to the authoritative dns server of website, when dns server returns the network address corresponding with the user region, caching server has been stored this address, within caching period, all should the zone user all can return address corresponding to user region by caching server to the request of described station address later on.Return with it corresponding IP address by the user for different regions, solved the slow shortcoming of user's networking speed, user's experience is greatly improved.
In order more to know and to explain the present invention expressly, below in conjunction with embodiment technical solution of the present invention is elaborated.Please refer to Fig. 1, be the device logical construction schematic diagram of a kind of DNS Business Processing among the present invention, the device of described DNS Business Processing comprises that message receiving element, message search unit, packet sending unit and packet storage unit.Please with further reference to Fig. 2, the application of installation of described DNS Business Processing is on the DNS buffer memory device, and described DNS buffer memory device is positioned at before the dns server, utilizes the device of described DNS Business Processing to carry out its corresponding method and comprises the steps:
The DNS request message that steps A, reception client are sent;
This step can be carried out by the message receiving element.When the user need to access some websites, send the DNS request message to local dns server, carry the domain name of user's request in the described DNS request message, when local dns server can not find the information (namely the domain name correspondence of request is the IP address) of client queries, recurrence turned to the DNS authoritative server.Receive when the message receiving element that is positioned at the DNS buffer memory device before the DNS authoritative server receives the DNS request message that client is sent, and it is sent in message searches the unit.Need to prove, described DNS authoritative server refers to include the dns server of client requests IP address, for example, the Sina website of client requests, so described DNS authoritative server then carries the dns server of the IP of Sina information.
Step B, whether hit caching record according to zone corresponding to the source IP of described DNS request message and the domain name lookup of request, if then the IP address that the caching record of hitting is corresponding returns to the user by response message, and process ends, if not, go to step C;
This step can be searched the unit by message and be carried out.Described DNS buffer memory device comprises the corresponding table in IP scope-zone and the corresponding table of zone-domain name-IP; When message is searched after the unit receives described DNS request message, search the corresponding table in IP scope-zone according to the source IP in the described DNS request message, find out the corresponding regional code of source IP, search whether hit caching record according to the corresponding table of regional code seek area-domain name-IP.If hit caching record, then the IP address that the caching record of hitting is corresponding returns to the user by response message, and process ends, otherwise the notice packet sending unit sends to the described request message DNS buffer that is positioned at its rear end.
Particularly, the corresponding table in described IP scope-zone is static table, can be before carrying out the message processing, import to described DNS buffer memory device from the outside, for example, can import from authoritative dns server, perhaps from the computer that stores this IP scope-zone or other storage mediums, import.Further, for the division in zone described in the corresponding table of described IP scope-zone, specifically carry out for the setting of website user's dns server.Preferably, can adopt for the city and divide, for example, for Sina's website dns server, the zone can be divided into 100 cities.These 100 cities are furnished with respectively different zone numbers, and other areas beyond this 100 city are set to the system default zone number.When the user sent the DNS request, the user who is included in 100 city scope will obtain the IP corresponding with the city at its place, and other users that are not included in these 100 city scope can obtain the IP corresponding with the system default zone number.In addition, also can adopt for countries and regions to be numbered, principle is divided with the city, and is no longer burdensome at this.
Particularly, the corresponding table of described zone-domain name-IP is dynamic table, and its list item is aging according to predetermined time.Need to prove, described predetermined time has by DNS buffer user to be set according to actual needs, does not have strict restriction.Further, the corresponding table of described zone-domain name-IP is asked in the message processing procedure at DNS, carry out caching record for non-existent client requests information in the table, and caching record can wear out within a certain period of time.
Step C, the described DNS request message of transmission are to dns server, so that response message is searched and returned to described dns server for described DNS request message;
This step can be carried out by packet sending unit.But after receiving message and searching the unit and do not hit the notice of caching record, packet sending unit sends to the dns server that is positioned at its rear end with described DNS request message, described dns server is searched for described DNS request message, and will find the IP address and send to the DNS buffer with the form of response message.Need to prove, the IP address that described dns server finds is the IP address of corresponding region.
Step D, take zone and domain name as IP address corresponding to the described response message of indexed cache, and described response message returned to the user;
This step can be carried out by the packet storage unit.After receiving the response message that described dns server returns, the packet storage unit creates index according to domain name and the zone number of request, the IP address corresponding according to the described response message of indexed cache then, and described response message returned to the user.
Please with further reference to Fig. 3, be another specific embodiment of DNS method for processing business of the present invention, described method step is:
Step 1: receive the DNS request message that client sends;
Step 2: the source IP according to described DNS request message searches the zone number of client region by the corresponding table in IP scope-zone;
Step 3: search whether hit caching record according to zone number and request domain name by the corresponding table of zone-domain name-IP, if with execution in step 7 behind the IP address generation response message in the caching record, if not, then execution in step 4;
Step 4: described DNS request is transmitted to the dns server that is positioned at its rear end, so that response message is searched and returned to dns server;
Step 5: create index according to described request domain name and described zone number;
Step 6: according to the corresponding IP of the described response message of described indexed cache address in the corresponding table of zone-domain name-IP;
Step 7: response message is returned to the user.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. a DNS method for processing business is applied on the DNS buffer memory device, and described DNS buffer memory device is positioned at before the dns server, it is characterized in that, described method comprises:
The DNS request message that steps A, reception client are sent;
Step B, whether hit caching record according to zone corresponding to the source IP of described DNS request message and the domain name lookup of request, if then the IP address that the caching record of hitting is corresponding returns to the user by response message, and process ends, if not, go to step C;
Step C, the described DNS request message of transmission are to dns server, so that response message is searched and returned to described dns server for described DNS request message;
Step D, take IP address corresponding to response message that zone and domain name are returned as the described dns server of indexed cache, and this response message returned to the user.
2. method according to claim 1 is characterized in that,
Described DNS buffer memory device comprises the corresponding table in IP scope-zone and the corresponding table of zone-domain name-IP;
Describedly whether hit caching record according to zone corresponding to the source IP of described DNS request message and the domain name lookup of request, specifically comprise:
Search the corresponding table of IP scope-zone according to the source IP in the described DNS request message, find out the corresponding regional code of source IP, search whether hit caching record according to the domain name lookup zone-domain name of regional code and request-corresponding table of IP.
3. method according to claim 2 is characterized in that, the corresponding table in described IP scope-zone is static table, before carrying out the message processing, imports to described DNS buffer memory device from the outside.
4. method according to claim 2 is characterized in that, the corresponding table of described zone-domain name-IP is dynamic table, and its list item is aging according to predetermined time.
5. a DNS business processing device is applied on the DNS buffer memory device, and described DNS buffer memory device is positioned at before the dns server, it is characterized in that, described device comprises:
The message receiving element is used for receiving the DNS request message that client is sent;
Message is searched the unit, be used for whether hitting caching record according to zone corresponding to the source IP of described DNS request message and the domain name lookup of request, if then the IP address that the caching record of hitting is corresponding returns to the user by response message, if not, the notice packet sending unit is carried out the message transmission;
Packet sending unit is used for sending described DNS request message to dns server, so that response message is searched and returned to described dns server for described DNS request message;
The packet storage unit is used for the IP address take zone and domain name as the described response message of indexed cache, and described response message is returned to the user.
6. device according to claim 5 is characterized in that,
Described DNS buffer memory device comprises the corresponding table in IP scope-zone and the corresponding table of zone-domain name-IP; Described message is searched the unit and is further used for:
Search the corresponding table in IP scope-zone according to the source IP in the described DNS request message, find out the corresponding regional code of source IP, according to the corresponding table of regional code seek area-domain name-IP.
7. device according to claim 6 is characterized in that, the corresponding table in described IP scope-zone is static table, before carrying out the message processing, imports to described DNS buffer memory device from the outside.
8. device according to claim 6 is characterized in that, the corresponding table of described zone-DNS is dynamic table, and the list item of the corresponding table of described zone-domain name-IP is aging to schedule.
CN2012104242477A 2012-10-30 2012-10-30 Method and device for processing DNS (Domain Name Server) business Pending CN102882791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104242477A CN102882791A (en) 2012-10-30 2012-10-30 Method and device for processing DNS (Domain Name Server) business

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104242477A CN102882791A (en) 2012-10-30 2012-10-30 Method and device for processing DNS (Domain Name Server) business

Publications (1)

Publication Number Publication Date
CN102882791A true CN102882791A (en) 2013-01-16

Family

ID=47483941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104242477A Pending CN102882791A (en) 2012-10-30 2012-10-30 Method and device for processing DNS (Domain Name Server) business

Country Status (1)

Country Link
CN (1) CN102882791A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701955A (en) * 2014-01-03 2014-04-02 互联网域名系统北京市工程研究中心有限公司 Domain name querying and requesting method and system
CN104301294A (en) * 2013-07-19 2015-01-21 中国移动通信集团广东有限公司 DNS query request response method and device and network side equipment
CN104683501A (en) * 2015-03-30 2015-06-03 乐视致新电子科技(天津)有限公司 Method and device for domain name resolution
CN104933045A (en) * 2014-03-17 2015-09-23 腾讯科技(深圳)有限公司 Network information browsing method and network information browsing device
CN104935682A (en) * 2015-06-26 2015-09-23 网宿科技股份有限公司 Domain name resolution method and system
CN105245631A (en) * 2015-09-25 2016-01-13 中国互联网络信息中心 Method and system for optimizing DNS (Domain Name Server) root service access
CN105279156A (en) * 2014-05-29 2016-01-27 腾讯科技(深圳)有限公司 Network information communication method and network information browsing device
CN105763668A (en) * 2016-02-26 2016-07-13 杭州华三通信技术有限公司 Domain name resolution method and apparatus
CN107070988A (en) * 2017-03-06 2017-08-18 北京安博通科技股份有限公司 Message processing method and device
CN107154927A (en) * 2017-03-28 2017-09-12 北京安博通科技股份有限公司 Message processing method and device
CN107547295A (en) * 2017-05-10 2018-01-05 新华三信息安全技术有限公司 A kind of aging method and device of domain name buffer list entry
CN108667946A (en) * 2017-03-31 2018-10-16 贵州白山云科技有限公司 A kind of multiple domain name is mutually standby to parse management method, apparatus and system
CN109257451A (en) * 2017-07-14 2019-01-22 阿里巴巴集团控股有限公司 Corresponding relationship analyzing method and device
CN111327714A (en) * 2018-12-17 2020-06-23 中国电信股份有限公司 Domain name recursive query method and system, server and DNS system
CN112187902A (en) * 2020-09-21 2021-01-05 普联国际有限公司 DNS proxy method, device, storage medium and terminal equipment under IPv6 tunnel mode
CN112822309A (en) * 2021-04-19 2021-05-18 北京视界云天科技有限公司 Domain name resolution method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442566A (en) * 2009-01-08 2009-05-27 中国电信股份有限公司 Method and apparatus for implementing dynamic domain name update
CN101610294A (en) * 2009-07-15 2009-12-23 浪潮电子信息产业股份有限公司 A kind of method of utilizing intelligent DNS to improve website visiting speed
CN102611763A (en) * 2011-01-25 2012-07-25 中国移动通信集团公司 DNS (Domain Name Server) inquiring method and equipment
US20120191874A1 (en) * 2011-01-20 2012-07-26 Openwave Systems Inc. Routing of ip traffic directed at domain names using dns redirection
CN102625287A (en) * 2011-09-09 2012-08-01 威海捷讯通信技术有限公司 Method for downloading mobile phone application software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442566A (en) * 2009-01-08 2009-05-27 中国电信股份有限公司 Method and apparatus for implementing dynamic domain name update
CN101610294A (en) * 2009-07-15 2009-12-23 浪潮电子信息产业股份有限公司 A kind of method of utilizing intelligent DNS to improve website visiting speed
US20120191874A1 (en) * 2011-01-20 2012-07-26 Openwave Systems Inc. Routing of ip traffic directed at domain names using dns redirection
CN102611763A (en) * 2011-01-25 2012-07-25 中国移动通信集团公司 DNS (Domain Name Server) inquiring method and equipment
CN102625287A (en) * 2011-09-09 2012-08-01 威海捷讯通信技术有限公司 Method for downloading mobile phone application software

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301294A (en) * 2013-07-19 2015-01-21 中国移动通信集团广东有限公司 DNS query request response method and device and network side equipment
CN104301294B (en) * 2013-07-19 2017-11-21 中国移动通信集团广东有限公司 A kind of response method, device and the network side equipment of DNS query request
CN103701955B (en) * 2014-01-03 2017-06-20 互联网域名系统北京市工程研究中心有限公司 The method and its system of inquiry of the domain name request
CN103701955A (en) * 2014-01-03 2014-04-02 互联网域名系统北京市工程研究中心有限公司 Domain name querying and requesting method and system
CN104933045A (en) * 2014-03-17 2015-09-23 腾讯科技(深圳)有限公司 Network information browsing method and network information browsing device
CN104933045B (en) * 2014-03-17 2019-08-09 腾讯科技(深圳)有限公司 Network information browsing method and network information browsing apparatus
CN105279156B (en) * 2014-05-29 2019-11-29 腾讯科技(深圳)有限公司 Network information communication means and network information browsing apparatus
CN105279156A (en) * 2014-05-29 2016-01-27 腾讯科技(深圳)有限公司 Network information communication method and network information browsing device
CN104683501A (en) * 2015-03-30 2015-06-03 乐视致新电子科技(天津)有限公司 Method and device for domain name resolution
CN104935682A (en) * 2015-06-26 2015-09-23 网宿科技股份有限公司 Domain name resolution method and system
CN105245631A (en) * 2015-09-25 2016-01-13 中国互联网络信息中心 Method and system for optimizing DNS (Domain Name Server) root service access
CN105245631B (en) * 2015-09-25 2018-10-26 中国互联网络信息中心 A kind of method and system of optimization DNS root service access
CN105763668A (en) * 2016-02-26 2016-07-13 杭州华三通信技术有限公司 Domain name resolution method and apparatus
CN105763668B (en) * 2016-02-26 2019-09-17 新华三技术有限公司 A kind of domain name analytic method and device
CN107070988A (en) * 2017-03-06 2017-08-18 北京安博通科技股份有限公司 Message processing method and device
CN107154927A (en) * 2017-03-28 2017-09-12 北京安博通科技股份有限公司 Message processing method and device
CN108667946B (en) * 2017-03-31 2020-11-20 贵州白山云科技股份有限公司 Multi-domain name mutual backup analysis management method, device and system
CN108667946A (en) * 2017-03-31 2018-10-16 贵州白山云科技有限公司 A kind of multiple domain name is mutually standby to parse management method, apparatus and system
CN107547295B (en) * 2017-05-10 2020-03-10 新华三信息安全技术有限公司 Aging method and device for domain name cache table entries
CN107547295A (en) * 2017-05-10 2018-01-05 新华三信息安全技术有限公司 A kind of aging method and device of domain name buffer list entry
CN109257451A (en) * 2017-07-14 2019-01-22 阿里巴巴集团控股有限公司 Corresponding relationship analyzing method and device
CN111327714A (en) * 2018-12-17 2020-06-23 中国电信股份有限公司 Domain name recursive query method and system, server and DNS system
CN112187902A (en) * 2020-09-21 2021-01-05 普联国际有限公司 DNS proxy method, device, storage medium and terminal equipment under IPv6 tunnel mode
CN112187902B (en) * 2020-09-21 2023-10-17 普联国际有限公司 DNS proxy method and device in IPv6 tunnel mode, storage medium and terminal equipment
CN112822309A (en) * 2021-04-19 2021-05-18 北京视界云天科技有限公司 Domain name resolution method and device
CN112822309B (en) * 2021-04-19 2021-07-16 北京视界云天科技有限公司 Domain name resolution method and device

Similar Documents

Publication Publication Date Title
CN102882791A (en) Method and device for processing DNS (Domain Name Server) business
CN103929507B (en) A kind of realize can change the method and device of DNS service offline
CN103493455B (en) Use the global traffic management of modified host name
CN102333092B (en) Network user identification method and application server
CN102571921B (en) Network access method and device for mobile equipment
CN106921699A (en) A kind of Network Access Method, device and system
KR20160030381A (en) Method, device and router for access webpage
CN103701957A (en) Domain name server (DNS) recursive method and system thereof
US10938776B2 (en) Apparatus and method for correlating addresses of different internet protocol versions
US10079800B2 (en) Client subnet efficiency by equivalence class aggregation
CN103685590A (en) Method and system for obtaining IP (internet protocol) address
RU2015156798A (en) SYSTEM AND METHOD OF PUSH (PUSH) ADVERTISEMENTS BASED ON THE HOME GATEWAY
CN101123578A (en) A method and system for improving access speed of network resource
CN104427007A (en) A domain name searching method for a DNS
CN102045403A (en) Method, device and system for processing data of distributed network
WO2011140784A1 (en) Method for screening mobile terminal from accessing wireless network information, mobile terminal and system thereof
CN102624914A (en) Method for detecting local DNS (Domain Name Server) used by client side in Web form
WO2017166524A1 (en) Domain name parsing method and apparatus
CN103297561B (en) IP address source tracing method and device
CN109639748A (en) Buffering updating method, device, system and the domain name system of dns server
CN102572011B (en) Method, device and system for processing data
CN101551813A (en) Network connection apparatus, search equipment and method for collecting search engine data source
CN103678295B (en) Method and device for providing files for user
CN102801745A (en) Method and system for accessing local area network WEB site by using wide area network browser
WO2012075870A1 (en) Hypertext transfer protocol (http) stream association method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130116