CN105681489A - Method and apparatus for DNS query of domain name system - Google Patents

Method and apparatus for DNS query of domain name system Download PDF

Info

Publication number
CN105681489A
CN105681489A CN201610118320.6A CN201610118320A CN105681489A CN 105681489 A CN105681489 A CN 105681489A CN 201610118320 A CN201610118320 A CN 201610118320A CN 105681489 A CN105681489 A CN 105681489A
Authority
CN
China
Prior art keywords
domain name
high frequency
address
frequency access
terminal
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
CN201610118320.6A
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.)
BEIJING NETENTSEC Inc
Original Assignee
BEIJING NETENTSEC Inc
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 BEIJING NETENTSEC Inc filed Critical BEIJING NETENTSEC Inc
Priority to CN201610118320.6A priority Critical patent/CN105681489A/en
Publication of CN105681489A publication Critical patent/CN105681489A/en
Pending legal-status Critical Current

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

Abstract

The invention discloses a method for DNS query of a domain name system. The method comprises: whether a domain system in a domain system DNS query request obtained from a terminal belongs to a high-frequency access domain name is determined; and if so, an internet protocol (IP) address corresponding to the domain name is queried locally and is sent to the terminal. Meanwhile, the invention also discloses an apparatus for DNS query of a domain name system.

Description

The method of a kind of domain name system DNS inquiry and device
Technical field
The present invention relates to communication technical field, particularly relate to method and the device of the inquiry of a kind of domain name system DNS.
Background technology
When carrying out website visiting, terminal needs first usually to domain name system (DomainNameSystem, DNS) server sends DNS query request, after terminal receives the response information of DNS service device feedback, this website is accessed according to Internet protocol (InternetProtocol, the IP) address in this response information. But when each terminal is bigger to the visit capacity of certain website, as carried out in the online curricula-variable time period in colleges and universities, when each terminal is bigger to the visit capacity of curricula-variable website, the speed that DNS service device feeds back above-mentioned response information can be slower, the speed of the IP address making terminal acquisition domain name corresponding is relatively slow, causes the speed of terminal access website slow.
The speed of IP address corresponding to domain name is obtained in order to accelerate terminal, correlation technique provides two kinds of DNS query modes, a kind of mode is that gateway equipment is to the internet-based control message protocol (InternetControlMessageProtocol of each DNS service device, ICMP) value sorts, to know the access quality of each DNS service device; Gateway equipment sends DNS query request to the DNS service device that access quality is high; Gateway equipment sends the response information of DNS service device feedback to terminal; Terminal is according to the IP address access websites in this response information. Another kind of mode is that the method that gateway equipment exports balancing link load by network address translation (NetworkAddressTranslation, NAT) sends DNS query request to each DNS service device; Gateway equipment sends the response information of DNS service device feedback to terminal; Terminal is according to the IP address access websites in this response information. But there are the following problems for the DNS query mode that correlation technique provides: when each terminal is bigger to the visit capacity of certain website, the speed of the IP address that terminal acquisition domain name is corresponding still slowly, causes the speed of terminal access website slow; Namely terminal can not be made to obtain IP address corresponding to high frequency access domain name fast.
Summary of the invention
In view of this, the embodiment of the present invention expects to provide method and the device of a kind of domain name system DNS inquiry, so that terminal obtains IP address corresponding to high frequency access domain name fast.
For achieving the above object, the technical scheme of the present invention is achieved in that
The embodiment of the invention discloses the method for a kind of domain name system DNS inquiry, described method comprises:
Judge from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name;
When domain name belongs to described high frequency access domain name, inquiring the Internet protocol IP address that domain name is corresponding from this locality, send gives described terminal.
Further, described method also comprises:
When domain name does not belong to described high frequency access domain name, obtain IP address corresponding to domain name by preferred link from preferred DNS service device, and the described IP address got is sent to described terminal.
Further, described method also comprises:
The present flow rate according to each link of timing calculates described preferred link, and the response speed according to each DNS service device calculates described preferred server.
Further, described method also comprises:
Timing obtain IP address corresponding to described high frequency access domain name from DNS service device, and upgrade the IP address that the local described high frequency access domain name stored is corresponding.
Further, before whether the domain name the domain name system DNS inquiry request that described judgement obtains from terminal belongs to high frequency access domain name, described method also comprises:
After receiving acceleration query pattern open command, the domain name in the domain name system DNS inquiry request obtained from terminal is added up.
The embodiment of the invention also discloses the device of a kind of domain name system DNS inquiry, described device comprises:
Judge module, for judging from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name;
First inquiry module, for when domain name belongs to described high frequency access domain name, inquiring the Internet protocol IP address that domain name is corresponding from this locality, send gives described terminal.
Further, described device also comprises:
2nd inquiry module, for when domain name does not belong to described high frequency access domain name, obtaining IP address corresponding to domain name by preferred link from preferred DNS service device, and the described IP address got be sent to described terminal.
Further, described device also comprises:
Preferred link calculates module, and the present flow rate according to each link for timing calculates described preferred link; Preferred server calculates module, for calculating described preferred server according to the response speed of each DNS service device.
Further, described device also comprises:
IP address more new module, obtains IP address corresponding to described high frequency access domain name for timing from DNS service device, and upgrades the IP address that the local described high frequency access domain name stored is corresponding.
Further, described device also comprises: statistics module, before whether belonging to high frequency access domain name for the domain name the domain name system DNS inquiry request that obtains from terminal in described judgement, after receiving acceleration query pattern open command, the domain name in the domain name system DNS inquiry request obtained from terminal is added up.
The method of a kind of domain name system DNS inquiry that the embodiment of the present invention provides and device, judge from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name; When domain name belongs to high frequency access domain name, inquiring the Internet protocol IP address that domain name is corresponding from this locality, send is to terminal. So, terminal can be realized making to obtain IP address corresponding to high frequency access domain name fast, it is to increase the speed of terminal access high frequency access websites, it is to increase the Experience Degree of user.
Accompanying drawing explanation
The schematic flow sheet of the method for a kind of domain name system DNS inquiry that Fig. 1 provides for the embodiment of the present invention;
The structural representation one of the device of a kind of domain name system DNS inquiry that Fig. 2 provides for the embodiment of the present invention;
The structural representation two of the device of a kind of domain name system DNS inquiry that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 is the structural representation of the device specific embodiment of a kind of domain name system DNS provided by the invention inquiry;
Fig. 5 is the schematic flow sheet of the method specific embodiment of a kind of domain name system DNS provided by the invention inquiry;
Fig. 6 be a kind of domain name system DNS provided by the invention inquiry method in upgrade the schematic flow sheet of IP address, preferred server and preferred link specific embodiment.
Embodiment
In embodiments of the present invention, gateway equipment judges from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name; When domain name belongs to high frequency access domain name, gateway equipment inquires Internet protocol IP address corresponding to domain name from this locality, and send is to terminal.
Below in conjunction with the drawings and specific embodiments, the present invention is described in more detail.
The schematic flow sheet of the method for a kind of domain name system DNS inquiry that Fig. 1 provides for the embodiment of the present invention, as shown in Figure 1, the method comprises:
Step 101: judge from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name.
Specifically, this step can be, gateway equipment judges from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name.
Wherein, described terminal can be Personal Computer (PersonalComputer, PC), or is the terminals such as mobile phone.
Specifically, before this step, the method that the embodiment of the present invention provides can also comprise: after gateway equipment receives acceleration query pattern open command, the domain name in the domain name system DNS inquiry request obtained from terminal is added up by gateway equipment.
Specifically, it is described after gateway equipment receives acceleration query pattern open command, domain name in the domain name system DNS inquiry request obtained from terminal is added up by gateway equipment, can comprise, after gateway equipment receives acceleration query pattern open command, the domain name system DNS inquiry request obtained from terminal is carried out parsing and obtains domain name by gateway equipment; Operation that the secondary numerical value that this domain name is corresponding is performed to add one by gateway equipment. Namely, after gateway equipment receives acceleration query pattern open command, gateway equipment starts to implement method provided by the invention.
Specifically, this step 101 can be, gateway equipment judges whether secondary numerical value corresponding to the domain name in DNS query request exceedes predetermined threshold value; When secondary numerical value exceedes predetermined threshold value, gateway equipment confirms that this domain name belongs to high frequency access domain name, otherwise, gateway equipment confirms that this domain name does not belong to high frequency access domain name. Namely described high frequency access domain name refers to that accessed number of times exceedes the domain name of predetermined threshold value within a time period.
Wherein, described predetermined threshold value can be arranged according to practical situation. As in actual applications, if when within a time period, the accessed number of times of domain name is more than 100 times, the speed of this domain name of terminal access starts to affect the website that user uses this domain name corresponding, and in that case, this predetermined threshold value can be set to 100.
It should be noted that, the method that the embodiment of the present invention provides can also comprise: after gateway equipment receives acceleration query pattern out code, and all numerical value are performed clear operation by gateway equipment; The DNS query request obtained from terminal is directly sent to DNS service device by gateway equipment. Namely, after gateway equipment receives acceleration query pattern out code, gateway equipment stops implementing method provided by the invention.
Step 102: when the domain name in DNS query request belongs to high frequency access domain name, inquiring the Internet protocol IP address that this domain name is corresponding from this locality, send is to terminal.
Specifically, this step can be, when the domain name in DNS query request belongs to high frequency access domain name, gateway equipment inquires Internet protocol IP address corresponding to this domain name from this locality, and send is to terminal. So, terminal can be realized making to obtain IP address corresponding to high frequency access domain name fast, it is to increase the speed of terminal access high frequency access websites, it is to increase the Experience Degree of user.
It should be noted that, the method that the embodiment of the present invention provides can also comprise, and when the domain name in DNS query request belongs to high frequency access domain name, gateway equipment judges whether record this domain name in high frequency access domain name table; When not recording this domain name in high frequency access domain name table, gateway equipment is accessed domain name table to high frequency and is added this domain name, otherwise, gateway equipment is not accessed domain name table to high frequency and is added this domain name; When domain name in DNS query request does not belong to high frequency access domain name, gateway equipment judges whether record this domain name in high frequency access domain name table; When having recorded this domain name in high frequency access domain name table, gateway equipment is accessed domain name table from high frequency and is deleted this domain name, otherwise, gateway equipment does not perform deletion operation.
It should be noted that, the method that the embodiment of the present invention provides can also comprise, the IP address corresponding from DNS service device acquisition high frequency access domain name of gateway equipment timing, and upgrades the IP address that the local high frequency access domain name stored is corresponding.
Specifically, the IP address corresponding from DNS service device acquisition high frequency access domain name of described gateway equipment timing, and upgrade the IP address that the local high frequency access domain name stored is corresponding, can be, the IP address corresponding from the domain name DNS service device acquisition high frequency access domain name table of gateway equipment timing, and upgrade in the cache memory (Cache) of gateway equipment the IP address that the domain name in the high frequency access domain name table stored is corresponding. Accordingly, this step 102 can be, when the domain name in DNS query request belongs to high frequency access domain name, gateway equipment inquires Internet protocol IP address corresponding to this domain name from the Cache of gateway equipment, and send is to terminal. So that gateway equipment directly can inquire IP address corresponding to high frequency access domain name from the Cache of gateway equipment, send is to terminal.
It should be noted that, the method that the embodiment of the present invention provides can also comprise, when domain name in DNS query request does not belong to high frequency access domain name, gateway equipment obtains IP address corresponding to this domain name by preferred link from preferred DNS service device, and the IP address got is sent to terminal. Thus on the speed basis improving terminal access high frequency access websites, realization makes each balancing link load, make full use of the bandwidth of each link so that terminal can also obtain IP address corresponding to other domain name fast, it is to increase the speed of other website of terminal access.
Specifically, when described domain name in DNS query request does not belong to high frequency access domain name, gateway equipment obtains IP address corresponding to this domain name by preferred link from preferred DNS service device, and the IP address got is sent to terminal, can comprise, when domain name in DNS query request does not belong to high frequency access domain name, gateway equipment is export to send DNS query request to preferred DNS service device taking preferred link, and this DNS query request comprises this domain name; Gateway equipment receives the response information of preferred DNS service device feedback; This response information of gateway device parses obtains IP address;This IP address is sent to terminal by gateway equipment.
Specifically, said process can also comprise, and when this response information of gateway device parses does not obtain IP address, it is export to send DNS query request step to preferred DNS service device taking preferred link that gateway equipment returns execution described.
It should be noted that, the method that the embodiment of the present invention provides can also comprise, and the present flow rate according to each link of gateway equipment timing calculates preferred link, and the response speed according to each DNS service device calculates preferred server.
Specifically, the response speed according to each DNS service device of described gateway equipment timing calculates preferred server, it is possible to comprise, the timing of gateway equipment send DNS query request to the different DNS service device on different link; Gateway equipment receives the response information of each DNS service device feedback; Gateway equipment calculates the speed of each DNS service device feedback response information, and DNS service device corresponding for maximum speed value is confirmed as preferred server.
Specifically, the present flow rate according to each link of described gateway equipment timing calculates preferred link, it is possible to comprise, the present flow rate value obtaining each link of gateway equipment timing; Gateway equipment compares each present flow rate value, and link corresponding for maximum present flow rate value is confirmed as preferred link. If link is divided into A link, B link and C link, the present flow rate of A link be 10M, B link present flow rate be the present flow rate of 5M, C link be 1M, then A link is confirmed as preferred link.
It should be noted that, the efficiency obtaining preferred server and preferred link to improve, preferred server and preferred link can be calculated while upgrading IP address corresponding to high frequency access domain name, specifically, when prefixed time interval arrives, gateway equipment starts to send DNS query request to the different DNS service device on different link, described DNS query request comprises a high frequency access domain name in high frequency access domain name table, till the DNS query request that all high frequencies access domain name accessed by high frequency in domain name table is corresponding sends; Gateway equipment receives the response information of each DNS service device feedback; Each response information of gateway device parses obtains IP address corresponding to each high frequency access domain name; The IP address that the high frequency access domain name stored in its Cache of gateway renewal and renovation of equipment is corresponding; Gateway equipment calculates preferred server according to the response speed of each DNS service device, and upgrades the preferred server stored; Gateway equipment calculates preferred link according to the present flow rate of each link, and upgrades the preferred link stored.
Wherein, prefixed time interval can be arranged according to practical situation, if in actual applications, when prefixed time interval is t, the IP address that the high frequency access domain name of gateway device memory storage is corresponding, when being all the up-to-date IP address of high frequency access domain name usually, this prefixed time interval can be set to t.
Accessing domain name such as current high frequency and comprise A domain name, B domain name, link comprises A link, B link, A link corresponding A 1 server, A2 server, B link corresponding B1 server, B2 server. When prefixed time interval arrives, gateway equipment sends DNS query request respectively to A1 server, A2 server, B1 server and B2 server, and this request comprises A domain name; Gateway equipment sends DNS query request respectively to A1 server, A2 server, B1 server and B2 server, and this request comprises B domain name;Gateway equipment receives the response information of each DNS service device feedback; Each response information of gateway device parses obtains IP address corresponding to A domain name and IP address corresponding to B domain name; The IP address that the A domain name stored in its Cache of gateway renewal and renovation of equipment is corresponding and IP address corresponding to B domain name; Gateway equipment calculates preferred server according to the response speed of A1, A2, B1 and B2 server, and upgrades the preferred server stored; Gateway equipment calculates preferred link according to the present flow rate of A link, B link, and upgrades the preferred link stored.
It should be noted that, in actual applications, it is possible to by gateway equipment thread execution step 101 and 102, by the IP address of the renewal high frequency access domain name of another thread timing, calculate preferred server and calculate preferred link.
In order to realize aforesaid method, the present invention discloses the device of a kind of domain name system DNS inquiry.
The structural representation of the device of a kind of domain name system DNS inquiry that Fig. 2 provides for the embodiment of the present invention, as shown in Figure 2, the device of domain name system DNS query comprises:
Judge module 201, for judging from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name;
First inquiry module 202, for when domain name belongs to described high frequency access domain name, inquiring the Internet protocol IP address that domain name is corresponding from this locality, send gives described terminal.
Further, as shown in Figure 3, described device also comprises:
2nd inquiry module 203, for when domain name does not belong to described high frequency access domain name, obtaining IP address corresponding to domain name by preferred link from preferred DNS service device, and the described IP address got be sent to described terminal.
Further, as shown in Figure 3, described device also comprises:
Preferred link calculates module 204, and the present flow rate according to each link for timing calculates described preferred link; Preferred server calculates module 205, for calculating described preferred server according to the response speed of each DNS service device.
Further, as shown in Figure 3, described device also comprises:
More new module 206, IP address, obtain IP address corresponding to described high frequency access domain name for timing from DNS service device, and upgrade the IP address that the local described high frequency access domain name stored is corresponding.
Further, as shown in Figure 3, described device also comprises: statistics module 207, before whether belonging to high frequency access domain name for the domain name the domain name system DNS inquiry request that obtains from terminal in described judgement, after receiving acceleration query pattern open command, the domain name in the domain name system DNS inquiry request obtained from terminal is added up.
In actual applications, described judgement module 201, first inquiry module 202, 2nd inquiry module 203, preferred link calculates module 204, preferred server calculates module 205, more new module 206 and statistics module 207 all can by the central processing unit (CentralProcessingUnit being arranged in gateway equipment in IP address, CPU), microprocessor (MicroProcessorUnit, MPU), digital signal processor (DigitalSignalProcessor, DSP), or field-programmable gate array (FieldProgrammableGateArray, etc. FPGA) realize.
Fig. 4 is the structural representation of the device specific embodiment of a kind of domain name system DNS provided by the invention inquiry, as shown in Figure 4, specifically comprise: parsing module 208, statistics module 207, judge module 201, first inquiry module 202, the 2nd inquiry module 203, IP address more new module 206, preferred server calculate module 205 and preferred link calculating module 204;
Parsing module 208, for, after receiving acceleration query pattern open command, carrying out parsing to the domain name system DNS inquiry request obtained from terminal and obtain domain name;
Statistics module 207, for adding up resolving the domain name obtained;
Judge module 201, resolve whether the domain name obtained belongs to high frequency access domain name for judging according to statistics;
First inquiry module 202, resolves IP address corresponding to the domain name obtained for inquiring from Cache, and send is to terminal;
2nd inquiry module 203 for inquiring preferred link and preferred server from this locality; Being export to send DNS query request to preferred DNS service device taking preferred link, this DNS query request comprises the domain name resolved and obtain; Receive the response information of preferred DNS service device feedback, resolve this response information and obtain IP address, and this IP address is sent to terminal.
More new module 206, IP address, for starting when prefixed time interval arrives to send DNS query request to the different DNS service device on different link, this DNS query request comprises a high frequency access domain name, till DNS query request corresponding for all high frequencies access domain name being sent; Receive the response information of each DNS service device feedback, resolve each response information and obtain IP address corresponding to each high frequency access domain name; Upgrade in Cache the IP address that the high frequency access domain name stored is corresponding.
Preferred server calculates module 205, for calculating preferred server according to the response speed of each DNS service device, and upgrades the preferred server stored.
Preferred link calculates module 204, calculates preferred link for the present flow rate according to each link, and upgrades the preferred link stored.
In actual applications, described judgement module 201, first inquiry module 202, 2nd inquiry module 203, preferred link calculates module 204, preferred server calculates module 205, more new module 206, IP address, statistics module 207 and parsing module 208 all can by the central processing unit (CentralProcessingUnit being arranged in gateway equipment, CPU), microprocessor (MicroProcessorUnit, MPU), digital signal processor (DigitalSignalProcessor, DSP), or field-programmable gate array (FieldProgrammableGateArray, etc. FPGA) realize.
Fig. 5 is the schematic flow sheet of the method specific embodiment of a kind of domain name system DNS provided by the invention inquiry, and as shown in Figure 5, concrete steps comprise:
Step 501: after receiving acceleration query pattern open command, the domain name system DNS inquiry request obtained from terminal is carried out parsing and obtains domain name.
Specifically, this step can be, after gateway equipment receives acceleration query pattern open command, the domain name system DNS inquiry request obtained from terminal is carried out parsing and obtains domain name by gateway equipment.
Step 502: add up resolving the domain name obtained.
Specifically, this step can be, the domain name resolving acquisition is added up by gateway equipment.
Specifically, this step can be, operation that the secondary numerical value that the domain name resolving acquisition is corresponding is performed to add by gateway equipment.
Step 503: judge according to statistics to resolve whether the domain name obtained belongs to high frequency access domain name.
Specifically, this step can be, gateway equipment judges according to statistics to resolve whether the domain name obtained belongs to high frequency access domain name.
Specifically, this step can comprise, and gateway equipment judges whether the secondary numerical value resolving the domain name obtained corresponding exceedes predetermined threshold value;When secondary numerical value exceedes predetermined threshold value, gateway equipment confirms that this domain name belongs to high frequency access domain name, otherwise, gateway equipment confirms that this domain name does not belong to high frequency access domain name.
When resolving the domain name obtained and belong to high frequency access domain name, perform step 504, otherwise, perform step 505.
Step 504: inquiring from Cache and resolve IP address corresponding to the domain name obtained, send is to terminal.
Specifically, this step can be, gateway equipment inquires from its Cache resolves IP address corresponding to the domain name obtained, and send is to terminal.
Step 505: inquire preferred link and preferred server from this locality.
Specifically, this step can be, gateway equipment inquires preferred link and preferred server from this locality.
Step 506: being export to send DNS query request to preferred DNS service device taking preferred link, this DNS query request comprises the domain name resolved and obtain.
Specifically, this step can be, gateway equipment is export to send DNS query request to preferred DNS service device taking preferred link, and this DNS query request comprises the domain name resolved and obtain.
Step 507~step 508: the response information receiving preferred DNS service device feedback, resolves this response information and obtains IP address, and this IP address is sent to terminal.
Specifically, this step is, gateway equipment receives the response information of preferred DNS service device feedback, resolves this response information and obtains IP address, and this IP address is sent to terminal.
Specifically, when resolution response information does not obtain IP address, step 505 is returned.
Fig. 6 be a kind of domain name system DNS provided by the invention inquiry method in upgrade the schematic flow sheet of IP address, preferred server and preferred link specific embodiment, as shown in Figure 6, concrete steps comprise:
Step 601: start when prefixed time interval arrives to send DNS query request to the different DNS service device on different link, this DNS query request comprises a high frequency access domain name, till DNS query request corresponding for all high frequencies access domain name being sent.
Specifically, this step can be, when prefixed time interval arrives, gateway equipment starts to send DNS query request to the different DNS service device on different link, this DNS query request comprises a high frequency access domain name, till DNS query request corresponding for all high frequencies access domain name being sent.
Wherein, prefixed time interval can be arranged according to practical situation, if in actual applications, when prefixed time interval is t, the IP address that the high frequency access domain name of gateway device memory storage is corresponding, when being all the up-to-date IP address of high frequency access domain name usually, this prefixed time interval can be set to t.
Accessing domain name such as current high frequency and comprise A domain name, B domain name, link comprises A link, B link, A link corresponding A 1 server, A2 server, B link corresponding B1 server, B2 server. When prefixed time interval arrives, gateway equipment sends DNS query request respectively to A1 server, A2 server, B1 server and B2 server, and this request comprises A domain name; Gateway equipment sends DNS query request respectively to A1 server, A2 server, B1 server and B2 server, and this request comprises B domain name.
Step 602: the response information receiving each DNS service device feedback, resolves each response information and obtains IP address corresponding to each high frequency access domain name.
Specifically, this step can be, gateway equipment receives the response information of each DNS service device feedback, resolves each response information and obtains IP address corresponding to each high frequency access domain name.
Step 603: upgrade in Cache the IP address that the high frequency access domain name stored is corresponding.
Specifically, this step can be, the IP address that the high frequency access domain name stored in its Cache of gateway renewal and renovation of equipment is corresponding.
Step 604: calculate preferred server according to the response speed of each DNS service device, and upgrade the preferred server stored.
Specifically, this step can be, gateway equipment calculates preferred server according to the response speed of each DNS service device, and upgrades the preferred server stored.
Step 605: calculate preferred link according to the present flow rate of each link, and upgrade the preferred link stored.
Specifically, this step can be, gateway equipment calculates preferred link according to the present flow rate of each link, and upgrades the preferred link stored.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations, and protection scope of the present invention is as the criterion with claim.

Claims (10)

1. the method for a domain name system DNS inquiry, it is characterised in that, described method comprises:
Judge from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name;
When domain name belongs to described high frequency access domain name, inquiring the Internet protocol IP address that domain name is corresponding from this locality, send gives described terminal.
2. method according to claim 1, it is characterised in that, described method also comprises:
When domain name does not belong to described high frequency access domain name, obtain IP address corresponding to domain name by preferred link from preferred DNS service device, and the described IP address got is sent to described terminal.
3. method according to claim 2, it is characterised in that, described method also comprises:
The present flow rate according to each link of timing calculates described preferred link, and the response speed according to each DNS service device calculates described preferred server.
4. method according to claim 1, it is characterised in that, described method also comprises:
Timing obtain IP address corresponding to described high frequency access domain name from DNS service device, and upgrade the IP address that the local described high frequency access domain name stored is corresponding.
5. method according to claim 1, it is characterised in that, before whether the domain name the domain name system DNS inquiry request that described judgement obtains from terminal belongs to high frequency access domain name, described method also comprises:
After receiving acceleration query pattern open command, the domain name in the domain name system DNS inquiry request obtained from terminal is added up.
6. the device of a domain name system DNS inquiry, it is characterised in that, described device comprises:
Judge module, for judging from whether the domain name the domain name system DNS inquiry request that terminal obtains belongs to high frequency access domain name;
First inquiry module, for when domain name belongs to described high frequency access domain name, inquiring the Internet protocol IP address that domain name is corresponding from this locality, send gives described terminal.
7. device according to claim 6, it is characterised in that, described device also comprises:
2nd inquiry module, for when domain name does not belong to described high frequency access domain name, obtaining IP address corresponding to domain name by preferred link from preferred DNS service device, and the described IP address got be sent to described terminal.
8. device according to claim 7, it is characterised in that, described device also comprises:
Preferred link calculates module, and the present flow rate according to each link for timing calculates described preferred link; Preferred server calculates module, for calculating described preferred server according to the response speed of each DNS service device.
9. device according to claim 6, it is characterised in that, described device also comprises:
IP address more new module, obtains IP address corresponding to described high frequency access domain name for timing from DNS service device, and upgrades the IP address that the local described high frequency access domain name stored is corresponding.
10. device according to claim 6, it is characterized in that, described device also comprises: statistics module, before whether belonging to high frequency access domain name for the domain name the domain name system DNS inquiry request that obtains from terminal in described judgement, after receiving acceleration query pattern open command, the domain name in the domain name system DNS inquiry request obtained from terminal is added up.
CN201610118320.6A 2016-03-02 2016-03-02 Method and apparatus for DNS query of domain name system Pending CN105681489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610118320.6A CN105681489A (en) 2016-03-02 2016-03-02 Method and apparatus for DNS query of domain name system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610118320.6A CN105681489A (en) 2016-03-02 2016-03-02 Method and apparatus for DNS query of domain name system

Publications (1)

Publication Number Publication Date
CN105681489A true CN105681489A (en) 2016-06-15

Family

ID=56306425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610118320.6A Pending CN105681489A (en) 2016-03-02 2016-03-02 Method and apparatus for DNS query of domain name system

Country Status (1)

Country Link
CN (1) CN105681489A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099428A (en) * 2018-01-31 2019-08-06 腾讯科技(深圳)有限公司 Wireless Fidelity WiFi network access method, device and terminal
CN111191156A (en) * 2019-12-20 2020-05-22 中移(杭州)信息技术有限公司 Network request resource scheduling method and device and computer readable storage medium
CN113821461A (en) * 2021-09-24 2021-12-21 牙木科技股份有限公司 Domain name resolution caching method, DNS (Domain name Server) and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7313632B2 (en) * 2002-01-08 2007-12-25 Samsung Electronics Co., Ltd. Apparatus for converting internet protocal address, and communication method using the same
CN102104636A (en) * 2009-12-22 2011-06-22 英特尔公司 Domain name system lookup latency reduction
CN103973834A (en) * 2014-05-12 2014-08-06 重庆邮电大学 Domain name resolution (DNS) acceleration method and device based on home gateway
CN104935683A (en) * 2015-06-29 2015-09-23 北京经天科技有限公司 Buffer processing method and device for domain name resolution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7313632B2 (en) * 2002-01-08 2007-12-25 Samsung Electronics Co., Ltd. Apparatus for converting internet protocal address, and communication method using the same
CN102104636A (en) * 2009-12-22 2011-06-22 英特尔公司 Domain name system lookup latency reduction
CN103973834A (en) * 2014-05-12 2014-08-06 重庆邮电大学 Domain name resolution (DNS) acceleration method and device based on home gateway
CN104935683A (en) * 2015-06-29 2015-09-23 北京经天科技有限公司 Buffer processing method and device for domain name resolution

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099428A (en) * 2018-01-31 2019-08-06 腾讯科技(深圳)有限公司 Wireless Fidelity WiFi network access method, device and terminal
CN110099428B (en) * 2018-01-31 2022-03-04 腾讯科技(深圳)有限公司 Wireless fidelity WiFi network access method, device and terminal
CN111191156A (en) * 2019-12-20 2020-05-22 中移(杭州)信息技术有限公司 Network request resource scheduling method and device and computer readable storage medium
CN111191156B (en) * 2019-12-20 2023-09-05 中移(杭州)信息技术有限公司 Network request resource scheduling method, device and computer readable storage medium
CN113821461A (en) * 2021-09-24 2021-12-21 牙木科技股份有限公司 Domain name resolution caching method, DNS (Domain name Server) and computer readable storage medium
CN113821461B (en) * 2021-09-24 2023-10-27 牙木科技股份有限公司 Domain name resolution caching method, DNS server and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
WO2013131472A1 (en) Message processing method, device and system
CN102651861B (en) Download method for mobile terminal, mobile terminal and proxy download server
CN101442566A (en) Method and apparatus for implementing dynamic domain name update
CN104168340A (en) Domain name resolution method, server, terminal and system
CN112217916A (en) Novel caching method and system for industrial internet identification resolution recursive server
CN103167044A (en) Intelligent analysis method of domain name system (DNS) and poking measurement device and system
WO2020206660A1 (en) Network resource request method and apparatus, electronic device and storage medium
CN103338279A (en) Optimal sorting method and system based on domain name resolution
CN113316926B (en) Domain name processing method, device, electronic equipment and storage medium
WO2013185693A1 (en) Method for router to process web page data, and router
CN103905572A (en) Domain name resolution request processing method and device
CN109639748B (en) Cache updating method, device and system of DNS (Domain name Server) and domain name system
CN103152231A (en) Relay device and activation method of electronic device
CN101741902B (en) System and method for Internet terminal to quickly access to Internet server
CN111885216B (en) DNS query method, device, equipment and storage medium
EP2827258A1 (en) Embedded network proxy system, terminal device and proxy method
CN104468852A (en) Method, device and system for client to select IP link address
CN105704246A (en) Network distribution device and method based on SDN architecture
CN103856436A (en) Method for user to select network layer protocol, household gateway and Internet network
CN103812900A (en) Data synchronization method, device and system
CN105681489A (en) Method and apparatus for DNS query of domain name system
CN106470251A (en) Domain name analytic method and virtual DNS authority server
CN102801823A (en) DNS (domain name server) relay 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160615