CN102546854A - Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server - Google Patents
Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server Download PDFInfo
- Publication number
- CN102546854A CN102546854A CN2012100057246A CN201210005724A CN102546854A CN 102546854 A CN102546854 A CN 102546854A CN 2012100057246 A CN2012100057246 A CN 2012100057246A CN 201210005724 A CN201210005724 A CN 201210005724A CN 102546854 A CN102546854 A CN 102546854A
- Authority
- CN
- China
- Prior art keywords
- domain name
- address
- dns
- server
- http
- 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
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a domain name analysis method for reinforcing domain name server functions, in particular to a domain name analysis method for building hyper text transport protocol (HTTP) connection for a domain name and server. The domain name analysis method comprises the following steps of: 1) calculating an analysis query record of a domain name server (DNS) in an operating and using process, and building a DNS database; 2) analyzing the domain name, and finding all internet protocol (IP) addresses corresponding to each domain name: querying different authority servers, and obtaining the comprehensive IP address A record of the domain name; 3) respectively carrying out a accelerated test and processing to the IP address corresponding to the domain name to obtain a required IP address; and 4) according to a time to live (TTL) value which needs to be set, i.e. the time to live recorded in a DNS cache, building a cache record by the domain name and the IP address obtained by the accelerated test, and revising the DNS cache or increasing a record operation. In the domain name analysis method for reinforcing domain name server functions, the IP address which needs the shortest time from domain name analysis and HTTP connection building is found, and speed for a user to open a website is effectively quickened.
Description
Technical field
The present invention relates to a kind of domain name analytic method that strengthens domain name server function, particularly relate to a kind of domain name analytic method that domain name is connected with server HTTP of setting up fast.
Background technology
DNS (Domain Name System) server is made up of resolver and name server.Name server is meant the domain name and the corresponding IP address of preserving All hosts in this network, and has the server that domain name is converted into the IP address function.Wherein domain name must corresponding IP address, and not necessarily there is domain name the IP address.Domain name system adopts the hierarchical organization of similar directory tree.Name server is the server side in the Client, and it mainly contains two kinds of forms: master server and forwarding server.The process that domain name is mapped as the IP address just is called " domain name mapping ".Between domain name on the Internet and IP address (perhaps many-one) one to one; Though domain name is convenient to people's memory; But can only be familiar with the IP address mutually between the machine; Conversion work between them is called domain name mapping, and domain name mapping need be accomplished by special domain name resolution server, and DNS is exactly the server that carries out domain name mapping.
Along with popularizing of Internet technology, network application platform has become maximum social activity and commercial window.As the website of an opening, Web Hosting person's original intention hopes that all the webpage of oneself has more visit capacity, with the product of promoting oneself better, popularity of enterprise or/and commercial value.And the most basic prerequisite that webpage will reach more visit capacity with require be exactly must solution webpage opening speed problem.Usually; Domestic consumer opens the time of a webpage and mainly is made up of four parts: domain name is through the time of DNS server parses to the IP address; Set up the time that HTTP is connected through IP address and server; Server is accepted time of calculating behind the connection request, and web page contents is transferred to user's time through http protocol.Wherein, the DNS name resolution time has accounted for 1/3 more than of the whole access time, and can not to guarantee to set up HTTP again the fastest in the IP address that parses, so seriously dragged slowly the user to open the speed of webpage.
Summary of the invention
The present invention is directed to the prior art deficiency; Propose a kind of domain name and set up the domain name analytic method that HTTP is connected with server; Connect needed time the shortest IP address from domain name mapping to setting up HTTP through finding out one, accelerated the speed that the user opens webpage effectively.
The technical scheme that the present invention adopted:
A kind of domain name is set up the domain name analytic method that HTTP is connected with server, comprises the steps:
1) the parsing query note of statistics DNS in the operation use in corresponding database, set up the DNS database with these recorded and stored, extracts the domain name in the DNS buffer memory;
2) resolve domain name and find all corresponding IP addresses of each domain name: the authoritative server to different is inquired about; Obtain the more comprehensive IP of the ratio address A record (corresponding relation of A record representative " Hostname " and " IP " address, effect is to become the IP address to name translation) of this domain name;
3) the domain name corresponding IP address is carried out accelerated test and processing respectively, obtain needed IP address;
4) set ttl value as required, promptly be recorded in the life span in the DNS buffer memory, caching record is set up in the IP address that utilizes domain name and accelerated test to obtain, and the DNS buffer memory is made amendment or increased recording operation.
Described domain name is set up the domain name analytic method that HTTP is connected with server, domain name is carried out accelerated test obtain the step of IP and comprise:
1) packet and the FIN that send the three-way handshake of TCP wrap, and simulation connects;
2) on the TCP connection basis, send the HTTP request, connect;
3) obtain the time that packet returns, the shortest IP address of time spent obtains connecting.
Bind-utils is one group of DNS kit that bind software provides, these instruments dig in the tool using bag, host; Nslookup; Nsupdate inquires about the IP that obtains domain name to different authoritative servers, thereby can carry out domain name mapping and DNS debugging work.The IP address that obtains is carried out three times of TCP respectively give out a contract for a project and the FIN bag, and HTTP connects work; Computing time, can obtain the shortest IP address of the time of connecting.
Described domain name is set up the domain name analytic method that HTTP is connected with server; Obtain after the shortest IP of the time of connecting; Ttl value is set as required sets up a RR (resource record), import to buffer memory, to the exploitation once more of DNS source code; Domain name, IP and ttl value are changed into inner operated NAME (domain name), RDATA (record value); Obtain a complete resource record setting (Resource Record set, i.e. RRSET), allow storage and retrieval name at inner DNS DB (database) interface of CACHE (buffer memory).
The record of DNS in resolving inquiry all can be kept in the database of having set up, and comprises domain name, query time, place circuit and queries, can obtain the bigger domain name of queries according to database; The domain name of buffer memory kind derives extraction through rndc (the terminal control tool of DNS, main as control DNS process and configuration file thereof).Utilize domain name, ttl value, the circuit name, IP sets up the address caching record, is inserted into buffer memory through rndc, and cache object comprises one virtual type DNS data.A plurality of virtual type, will be through creating a plurality of circuits, different with one types with its caching process.
Useful good effect of the present invention:
1, domain name of the present invention is set up the domain name analytic method that HTTP is connected with server; Connect needed time the shortest IP address from domain name mapping to setting up HTTP through finding out one; Can accelerate the parsing time of this domain name greatly, so guarantee the IP address parse be visit the fastest.
2, domain name of the present invention is set up the domain name analytic method that HTTP is connected with server, and implementation is simple, and result of use is obvious, can significantly promote the speed that the user opens webpage, increases the visit capacity of website, improves the commercial value and the practical value of website.
Description of drawings
Fig. 1: domain name of the present invention is set up the domain name analytic method block diagram that HTTP is connected with server;
Fig. 2: domain name analytic method of the present invention is to the operation chart of buffer memory internal record.
Embodiment
Embodiment one: referring to Fig. 1.The domain name of present embodiment is set up the domain name analytic method that HTTP is connected with server, comprises the steps:
1) the parsing query note of statistics DNS in the operation use in corresponding database, set up the DNS database with these recorded and stored, extracts the domain name in the DNS buffer memory;
2) resolve domain name and find all corresponding IP addresses of each domain name: the authoritative server to different is inquired about, and obtains the more comprehensive IP of the ratio address A record of this domain name;
3) the domain name corresponding IP address is carried out accelerated test and processing respectively, obtain needed IP address;
4) set ttl value as required, promptly be recorded in the life span in the DNS buffer memory, buffer memory RRSET record is set up in the IP address that utilizes domain name and accelerated test to obtain, and the DNS buffer memory is made amendment or increased recording operation.
Embodiment two: referring to Fig. 1, the domain name of present embodiment is set up the domain name analytic method that HTTP is connected with server, and different with embodiment one is, adopts following method that domain name is carried out accelerated test, obtains the IP address:
1) packet and the FIN that send the three-way handshake of TCP wrap, and simulation connects;
2) on the TCP connection basis, send the HTTP request, connect;
3) obtain the time that packet returns, the shortest IP address of time spent obtains connecting.
Because be that simulation connects, the transmission of packet and handle and will avoid the processing of protocol stack, thereby can guarantee directly to be sent to application program and without kernel processes.
Embodiment three: referring to Fig. 1, Fig. 2, the domain name of present embodiment is set up the domain name analytic method that HTTP is connected with server, and different with embodiment one is; After obtaining a shortest IP of the time of connecting, ttl value is set as required sets up a RRSET, import to buffer memory; To the exploitation once more of DNS source code, domain name, IP and ttl value are changed into inner operated NAME, RDATA; Obtain a complete RRSET, allow storage and retrieval name at the inner DNS DB interface of CACHE.
The DB type similarly is one " virtual CLASS ".When reality was used DB, the realization of a class was essential.This module can guarantee that the appropriate data structure is synchronous, creates and handles; Wherein inner at DNS, DB has three to redefine, CACHE, and ZONE, STUB (being the copy of a zone, the authoritative DNS system that only comprises that those resource records will confirm) need distinguish it.
Embodiment four: referring to Fig. 1, Fig. 2, the domain name of present embodiment is set up the domain name analytic method that HTTP is connected with server, and performing step is following:
Count 100,000 left and right sides domain names commonly used and put into the DNS database; Resolve domain name and find all corresponding IP addresses of each domain name; Afterwards the domain name corresponding IP address is sent packet and four packets of waving of the three-way handshake of TCP respectively; Obtain the time that packet returns, on the TCP connection basis, send the HTTP request, connect.Judge the service quality of the WEB server that each IP is corresponding with these data.So just can obtain to visit the fastest IP address of domain name, ttl value according to circumstances is set then set up a RRSET and import to buffer memory, so not only can accelerate the parsing time of this domain name greatly, and can guarantee the IP address that parses be visit the fastest.
In the dns database that comes out or in the domain name record of buffer memory derivation; Domain name IP is wherein tested the address, find out the shortest one of corresponding access time, set up caching record afterwards; To buffer memory make amendment or increase recording operation (such as; There is 61.158.133.75 the corresponding IP address of www.ifeng.com domain name, 60.5.255.231,61.158.133.74 ... Respectively to wherein IP test; Suppose to find the time of 61.158.133.75 visit the shortest, just set up caching record www.ifeng.com TTL INA 61.158.133.75 and insert buffer memory).Promptly operation shown in the (a) and (b) among Fig. 2 to the buffer memory internal record.
In the dns database that comes out, extract domain name,, obtain desired domain name, TTL is set sets up caching record, insert or revise buffer memory afterwards through DNS accelerated test and processing.
Claims (3)
1. a domain name is set up the domain name analytic method that HTTP is connected with server, it is characterized in that: comprise the steps:
1) the parsing query note of statistics DNS in the operation use in corresponding database, set up the DNS database with these recorded and stored, extracts the domain name in the DNS buffer memory;
2) resolve domain name and find all corresponding IP addresses of each domain name: the authoritative server to different is inquired about, and obtains the more comprehensive IP of the ratio address A record of this domain name;
3) the domain name corresponding IP address is carried out accelerated test and processing respectively, obtain needed IP address;
4) set ttl value as required, promptly be recorded in the life span in the DNS buffer memory, caching record is set up in the IP address that utilizes domain name and accelerated test to obtain, and the DNS buffer memory is made amendment or increased recording operation.
2. domain name according to claim 1 is set up the domain name analytic method that HTTP is connected with server, it is characterized in that: domain name is carried out accelerated test obtain the step of IP and comprise:
1) packet and the FIN that send the three-way handshake of TCP wrap, and simulation connects;
2) on the TCP connection basis, send the HTTP request, connect;
3) obtain the time that packet returns, the shortest IP address of time spent obtains connecting.
3. domain name according to claim 2 is set up the domain name analytic method that HTTP is connected with server; It is characterized in that: obtain after the shortest IP of the time of connecting, ttl value is set as required sets up a resource record, import to buffer memory; The DNS source code is developed once more; Domain name, IP and ttl value are changed into inner operated domain name, record value, obtain a complete resource record setting, allow storage and retrieval name at the inner DNS database interface of buffer memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100057246A CN102546854A (en) | 2012-01-10 | 2012-01-10 | Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100057246A CN102546854A (en) | 2012-01-10 | 2012-01-10 | Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102546854A true CN102546854A (en) | 2012-07-04 |
Family
ID=46352798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100057246A Pending CN102546854A (en) | 2012-01-10 | 2012-01-10 | Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102546854A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685603A (en) * | 2013-12-19 | 2014-03-26 | 北京奇虎科技有限公司 | Domain name system analyzing method and device |
CN103685611A (en) * | 2013-12-31 | 2014-03-26 | 山石网科通信技术有限公司 | Network access processing method and device |
CN103685590A (en) * | 2012-09-14 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Method and system for obtaining IP (internet protocol) address |
CN103701949A (en) * | 2013-12-26 | 2014-04-02 | 上海斐讯数据通信技术有限公司 | Voice domain name resolving method for home gateway |
WO2014048241A1 (en) * | 2012-09-29 | 2014-04-03 | 北京奇虎科技有限公司 | Browser and domain name resolution method thereof |
CN104144123A (en) * | 2013-05-10 | 2014-11-12 | 中国电信股份有限公司 | Method and system for having access to internet and routing type gateway device |
CN104239207A (en) * | 2014-09-17 | 2014-12-24 | 广州华多网络科技有限公司 | Method and device for debugging application program |
CN104717312A (en) * | 2013-12-13 | 2015-06-17 | 中国移动通信集团公司 | Method and device for determining network resource access interfaces |
CN104935683A (en) * | 2015-06-29 | 2015-09-23 | 北京经天科技有限公司 | Buffer processing method and device for domain name resolution |
CN103685604B (en) * | 2013-12-20 | 2017-07-11 | 北京奇安信科技有限公司 | A kind of domain name pre-parsed method and device |
CN107231446A (en) * | 2016-03-23 | 2017-10-03 | 北京京东尚科信息技术有限公司 | Synchronous IP collocation methods and device |
CN108156277A (en) * | 2018-03-19 | 2018-06-12 | 北京泰策科技有限公司 | Domain name based on open dns server corresponds to the detection method of Internet resources |
CN108833424A (en) * | 2018-06-25 | 2018-11-16 | 哈尔滨工业大学 | A kind of system obtaining all resource records of domain name |
CN109165334A (en) * | 2018-09-20 | 2019-01-08 | 恒安嘉新(北京)科技股份公司 | A method of establishing CDN producer primary knowledge base |
CN109660411A (en) * | 2019-02-25 | 2019-04-19 | 北京云中融信网络科技有限公司 | A kind of method and device of optimization instant messaging network link connection |
CN110113370A (en) * | 2018-02-01 | 2019-08-09 | 北京视联动力国际信息技术有限公司 | A kind of communication connection method for building up and device based on view networking |
CN110572486A (en) * | 2019-08-13 | 2019-12-13 | 河北上通云天网络科技有限公司 | domain name resolution system based on MAC address |
CN110933664A (en) * | 2019-12-01 | 2020-03-27 | 杭州云缔盟科技有限公司 | Method for accelerating acquisition of terminal public network IP |
CN111786990A (en) * | 2020-06-29 | 2020-10-16 | 杭州优云科技有限公司 | Defense method and system for WEB active push skip page |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055979A1 (en) * | 2001-09-19 | 2003-03-20 | Cooley William Ray | Internet domain name resolver |
CN101820451A (en) * | 2009-02-26 | 2010-09-01 | 上海数讯信息技术有限公司 | Dynamic domain name service optimizing system |
CN102025795A (en) * | 2010-01-22 | 2011-04-20 | 中国移动通信集团北京有限公司 | DNS response message processing method, DNS server and system |
-
2012
- 2012-01-10 CN CN2012100057246A patent/CN102546854A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055979A1 (en) * | 2001-09-19 | 2003-03-20 | Cooley William Ray | Internet domain name resolver |
CN101820451A (en) * | 2009-02-26 | 2010-09-01 | 上海数讯信息技术有限公司 | Dynamic domain name service optimizing system |
CN102025795A (en) * | 2010-01-22 | 2011-04-20 | 中国移动通信集团北京有限公司 | DNS response message processing method, DNS server and system |
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685590B (en) * | 2012-09-14 | 2017-06-23 | 阿里巴巴集团控股有限公司 | Obtain the method and system of IP address |
CN103685590A (en) * | 2012-09-14 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Method and system for obtaining IP (internet protocol) address |
WO2014048241A1 (en) * | 2012-09-29 | 2014-04-03 | 北京奇虎科技有限公司 | Browser and domain name resolution method thereof |
CN104144123A (en) * | 2013-05-10 | 2014-11-12 | 中国电信股份有限公司 | Method and system for having access to internet and routing type gateway device |
CN104144123B (en) * | 2013-05-10 | 2017-06-16 | 中国电信股份有限公司 | Access method, system and the route type gateway apparatus of internet |
CN104717312B (en) * | 2013-12-13 | 2018-08-03 | 中国移动通信集团公司 | A kind of determining method and device for accessing Internet resources interface |
CN104717312A (en) * | 2013-12-13 | 2015-06-17 | 中国移动通信集团公司 | Method and device for determining network resource access interfaces |
CN103685603B (en) * | 2013-12-19 | 2018-01-02 | 北京奇安信科技有限公司 | Domain name system resolution and equipment |
CN103685603A (en) * | 2013-12-19 | 2014-03-26 | 北京奇虎科技有限公司 | Domain name system analyzing method and device |
CN103685604B (en) * | 2013-12-20 | 2017-07-11 | 北京奇安信科技有限公司 | A kind of domain name pre-parsed method and device |
CN103701949A (en) * | 2013-12-26 | 2014-04-02 | 上海斐讯数据通信技术有限公司 | Voice domain name resolving method for home gateway |
CN103701949B (en) * | 2013-12-26 | 2019-09-13 | 上海斐讯数据通信技术有限公司 | A kind of included domain name analytic method of the voice for home gateway |
CN103685611A (en) * | 2013-12-31 | 2014-03-26 | 山石网科通信技术有限公司 | Network access processing method and device |
CN104239207A (en) * | 2014-09-17 | 2014-12-24 | 广州华多网络科技有限公司 | Method and device for debugging application program |
CN104935683A (en) * | 2015-06-29 | 2015-09-23 | 北京经天科技有限公司 | Buffer processing method and device for domain name resolution |
CN107231446A (en) * | 2016-03-23 | 2017-10-03 | 北京京东尚科信息技术有限公司 | Synchronous IP collocation methods and device |
CN110113370A (en) * | 2018-02-01 | 2019-08-09 | 北京视联动力国际信息技术有限公司 | A kind of communication connection method for building up and device based on view networking |
CN108156277A (en) * | 2018-03-19 | 2018-06-12 | 北京泰策科技有限公司 | Domain name based on open dns server corresponds to the detection method of Internet resources |
CN108833424A (en) * | 2018-06-25 | 2018-11-16 | 哈尔滨工业大学 | A kind of system obtaining all resource records of domain name |
CN109165334A (en) * | 2018-09-20 | 2019-01-08 | 恒安嘉新(北京)科技股份公司 | A method of establishing CDN producer primary knowledge base |
CN109165334B (en) * | 2018-09-20 | 2022-05-27 | 恒安嘉新(北京)科技股份公司 | Method for establishing CDN manufacturer basic knowledge base |
CN109660411A (en) * | 2019-02-25 | 2019-04-19 | 北京云中融信网络科技有限公司 | A kind of method and device of optimization instant messaging network link connection |
CN110572486A (en) * | 2019-08-13 | 2019-12-13 | 河北上通云天网络科技有限公司 | domain name resolution system based on MAC address |
CN110933664A (en) * | 2019-12-01 | 2020-03-27 | 杭州云缔盟科技有限公司 | Method for accelerating acquisition of terminal public network IP |
CN110933664B (en) * | 2019-12-01 | 2022-09-20 | 杭州云缔盟科技有限公司 | Method for accelerating acquisition of terminal public network IP |
CN111786990A (en) * | 2020-06-29 | 2020-10-16 | 杭州优云科技有限公司 | Defense method and system for WEB active push skip page |
CN111786990B (en) * | 2020-06-29 | 2021-02-02 | 杭州优云科技有限公司 | Defense method and system for WEB active push skip page |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102546854A (en) | Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server | |
CN106302842B (en) | Domain name resolution method, device and system | |
US11632353B2 (en) | Delegating DNS records to additional providers | |
WO2015120750A1 (en) | Dns-based ipv6 and ipv4 interworking method | |
CN103281409B (en) | Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol | |
US10498694B2 (en) | Mapping IPv4 knowledge to IPv6 | |
CN106790503A (en) | It is a kind of to realize the IPv4 websites without skylight using the device upgraded to IPv6 based on HTTP reverse proxys | |
CN106797410A (en) | Domain name analytic method and device | |
CN103856580B (en) | A kind of method that IPv6 client computer accesses IPv4 servers | |
CN108848205B (en) | CNAME domain name resolution method for distinguishing IPv4 and IPv6 | |
CN100473072C (en) | Network address server | |
CN102457588A (en) | Method and device for implementing rDNS | |
CN108055168B (en) | Http protocol debugging system, device and method | |
CN109327559B (en) | Domain name resolution method and device based on hybrid cloud platform | |
CN107613039B (en) | IP address attribution inquiry method, device, system and storage medium | |
Berger et al. | Internet nameserver IPv4 and IPv6 address relationships | |
CN104079682B (en) | A kind of address conversion method and device based on domain name system DNS | |
CN104702707B (en) | A kind of data processing method and device | |
CN104253796B (en) | Quick area's recognition methods based on network address binding region layer level in domain name system | |
CN113946587A (en) | Handle identifier analysis caching method, query method and handle identifier analysis system | |
US7788407B1 (en) | Apparatus and methods for providing an application level gateway for use in networks | |
Lencse et al. | Design of a tiny multi-threaded DNS64 server | |
CN105657077A (en) | Network address translation traversal method and network address translation equipment | |
CN105245626B (en) | The method for realizing website addressing using quick domain name in private network | |
CN115225606A (en) | Domain name access method and system of cross-network protocol of container cloud platform |
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: 20120704 |