CN104052832B - Method and device for setting IP address of domain name resolution server and server - Google Patents

Method and device for setting IP address of domain name resolution server and server Download PDF

Info

Publication number
CN104052832B
CN104052832B CN201410309697.0A CN201410309697A CN104052832B CN 104052832 B CN104052832 B CN 104052832B CN 201410309697 A CN201410309697 A CN 201410309697A CN 104052832 B CN104052832 B CN 104052832B
Authority
CN
China
Prior art keywords
name resolution
domain name
resolution server
user equipment
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410309697.0A
Other languages
Chinese (zh)
Other versions
CN104052832A (en
Inventor
杨振辉
刘欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201410309697.0A priority Critical patent/CN104052832B/en
Publication of CN104052832A publication Critical patent/CN104052832A/en
Application granted granted Critical
Publication of CN104052832B publication Critical patent/CN104052832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a server for setting an IP address of a domain name resolution server, which can improve the resolution speed of the local domain name resolution server of user equipment. The method comprises the following steps: receiving an IP address of an optimal domain name resolution server which is returned by the server according to the sent request and is adaptive to the network environment of the user equipment; and setting the IP address of the local domain name resolution server according to the IP address of the preferred domain name resolution server. The method comprises the following steps: analyzing a request sent by user equipment to acquire network environment information of the user equipment; searching an IP address of an optimal domain name resolution server which is adaptive to the network environment of the user equipment from a database according to the network environment information of the user equipment; and returning the IP address of the searched preferred domain name resolution server to the user equipment. The invention is suitable for the technical field of computer networks.

Description

Method, device and the server of the IP address of domain name resolution server are set
Technical field
The present invention relates to technical field of the computer network, more particularly to a kind of IP address that domain name resolution server is set Method, device and server.
Background technology
Domain name resolution server (domain name server, abbreviation DNS) is one of Internet basic setting important Part, when user accesses a website, user equipment can all initiate domain name resolution server request to parse domain name, For example, when user opens an A webpage, first passing through the IP address (Internet protocol address) of the A main frames of DNS returns, then By http protocol (HTTP) and the main-machine communication of the IP, content is transmitted.
In the prior art, generally all it is the IP address for the home domain name resolution server that user sets user equipment manually, When the network environment of user equipment changes or when user translates domain names into the IP address setting mistake of server, it will lead The speed very slow or user for family access network address of applying can not open website.
The content of the invention
The present invention provides a kind of method, device and the server of the IP address for setting domain name resolution server, helps to carry The local domain name resolution server of high user equipment parses the speed of domain name.
On the one hand, the invention provides a kind of method for the IP address for setting domain name resolution server, applied to being installed on First application of user equipment, including:
Preferred domain name resolution server, which is sent, to server obtains request;
Receive it is that the server is returned according to the request, with adaptable preferred of the network environment of the user equipment The IP address of domain name resolution server;
According to the IP address of the preferred domain name resolution server of reception, the domain name solution for setting the user equipment local The IP address of server is analysed, so as to access internet by the preferred domain name resolution server.
Alternatively, the preferred domain name resolution server obtains the IP address that the user equipment is carried in request, with The server is set to determine that the network environment with the user equipment is adapted according to the IP address of the user equipment preferred Name server, and return to the IP address of the preferred name server;
It is described to receive what network environment that the server is returned according to the request and the user equipment was adapted It is preferred that the IP address of domain name resolution server, including:Receive it is that the server is returned according to the request, set with the user The IP address of the adaptable preferred domain name resolution server of standby network environment, wherein, the preferred domain name resolution server is At least meet the domain name resolution server of one of following condition:A) corresponding to the IP address of the preferred domain name resolution server City, city corresponding with the IP address of the user equipment is identical;B) the IP address institute of the preferred domain name resolution server Corresponding ISP, ISP corresponding with the IP address of the user equipment is identical.
Alternatively, the preferred domain name resolution server obtains IP address and the institute that the user equipment is carried in request The script region name resolution server information of user equipment is stated, the script region name resolution server information includes:The original At least one of the IP address of home domain name resolution server, response time, Connection Time, so that the server is according to institute State the IP address and script region name resolution server information determination and the network environment of the user equipment of user equipment Adaptable preferred name server, and return to the IP address of the preferred name server;
It is described to receive what network environment that the server is returned according to the request and the user equipment was adapted It is preferred that the IP address of domain name resolution server includes:Receive it is that the server is returned according to the request, set with the user The IP address of the adaptable preferred domain name resolution server of standby network environment, wherein, the preferred domain name resolution service is extremely The domain name resolution server of one of following condition is met less:A) city corresponding to the IP address of the preferred domain name resolution server City, city corresponding with the IP address of the user equipment is identical;B) the IP address institute of the preferred domain name resolution server is right The ISP answered, ISP corresponding with the IP address of the user equipment is identical;C) it is described It is preferred that the parsing time of domain name resolution server is less than the parsing time of the script region name resolution server;D) it is described preferred The Connection Time of domain name resolution server is less than the Connection Time of the script region name resolution server;E) the preferred domain name The IP address of resolution server and the IP address of the script region name resolution server are differed.
Alternatively, the server returns to the IP address of at least two preferred domain name resolution servers;It is described according to reception The preferred domain name resolution server IP address, the IP address of the local domain name resolution server of the user equipment is set Including:According to the IP address of receive at least two preferred domain name resolution servers, to the preferred domain name resolution server Tested the speed;The IP address of most fast domain name resolution server will be responded in test result, be set to the user equipment local Domain name resolution server IP address.
Alternatively, first application is browser.Browser can obtain preferred domain name mapping according to the above method and take Business device, and preferential domain name resolution server is set to the local domain name resolution server of user equipment, so, clear Device is look at when accessing internet, network will be accessed by preferred domain name resolution server, therefore, it is possible to improve the visit of internet Ask speed.
The method of the IP address of the setting domain name resolution server of the embodiment of the present invention, the preference field returned according to server The IP address of name resolution server sets the IP address of the local domain name resolution server of user equipment, wherein, the server is returned The IP address of the preferred domain name resolution server returned be server according to the preferred domain name resolution server of transmission obtain request and What the network environment of user equipment was returned, so, because the IP address of the preferred domain name resolution server of return is set with user What standby network environment was adapted, the problem of domain name resolution server exception or slow resolution speed can be avoided, so that, improve The local domain name resolution server of user equipment parses the speed of domain name.
On the other hand, the invention provides a kind of device of the IP address of setting domain name resolution server, applied to installation In the first application of user equipment, including:
Transmitting element, request is obtained for sending preferred domain name resolution server to server;
Receiving unit, for receiving network rings that the server is returned according to the request, with the user equipment The IP address of the adaptable preferred domain name resolution server in border;
Setting unit, for the IP address of the preferred domain name resolution server according to reception, sets the user to set The IP address of standby local domain name resolution server, so as to access internet by the preferred domain name resolution server.
Alternatively, in the preferred domain name resolution server acquisition request that the transmitting element is sent the user is carried to set Standby IP address, so that the server determines the network environment with the user equipment according to the IP address of the user equipment Adaptable preferred name server, and return to the IP address of the preferred name server;
The receiving unit, for receiving net that the server is returned according to the request, with the user equipment The IP address of the adaptable preferred domain name resolution server of network environment, wherein, the preferred domain name resolution server is at least full The domain name resolution server of one of the following condition of foot:A) city corresponding to the IP address of the preferred domain name resolution server, City corresponding with the IP address of the user equipment is identical;B) corresponding to the IP address of the preferred domain name resolution server ISP, ISP corresponding with the IP address of the user equipment is identical.
Alternatively, in the preferred domain name resolution server acquisition request that the transmitting element is sent the user is carried to set Standby IP address and the script region name resolution server information of the user equipment, the script region name resolution server letter Breath includes:At least one of the IP address of the script region name resolution server, response time, Connection Time, so that institute Server is stated to be determined and the user according to the IP address of the user equipment and the script region name resolution server information The adaptable preferred name server of the network environment of equipment, and return to the IP address of the preferred name server;
The receiving unit, for receiving net that the server is returned according to the request, with the user equipment The IP address of the adaptable preferred domain name resolution server of network environment, wherein, the preferred domain name resolution service is at least to meet The domain name resolution server of one of following condition:A) city corresponding to the IP address of the preferred domain name resolution server, with The corresponding city of IP address of the user equipment is identical;B) it is mutual corresponding to the IP address of the preferred domain name resolution server The Internet services provider, ISP corresponding with the IP address of the user equipment is identical;C) preference field The parsing time of name resolution server is less than the parsing time of the script region name resolution server;D) the preferred domain name solution The Connection Time for analysing server is less than the Connection Time of the script region name resolution server;E) the preferred domain name mapping clothes The IP address and the IP address of the script region name resolution server of business device are differed.
Alternatively, the receiving unit, at least two preferred domain name resolution servers returned for the reception server IP address;The setting unit includes:Speed measuring module, for according at least two preferred domain name resolution servers received IP address, tests the speed to the preferred domain name resolution server;Setup module, for most fast domain will to be responded in test result The IP address of name resolution server, is set to the IP address of the local domain name resolution server of the user equipment.
Alternatively, first application is browser.Browser can obtain preferred domain name resolution server, and will be preferential Domain name resolution server be set to the local domain name resolution server of user equipment, so, accessing mutual in browser During networking, network will be accessed by preferred domain name resolution server, therefore, it is possible to improve the access speed of internet.
The device of the IP address of the setting domain name resolution server of the embodiment of the present invention, setting unit connects according to receiving unit The IP address for the preferred domain name resolution server returned from server received sets the local domain name resolution server of user equipment IP address, wherein, the IP address of preferred domain name resolution server that the server is returned is that server is sent out according to transmitting element The preferred domain name resolution server that send obtains request, and the network environment of user equipment is returned, so, preferred due to return The IP address of domain name resolution server is adapted with the network environment of user equipment, domain name resolution server can be avoided different The problem of normal or resolution speed is slow, so that, improve the speed that the local domain name resolution server of user equipment parses domain name.
On the other hand, the invention provides a kind of method of the IP address of setting domain name resolution server, including:
Receive the preferred domain name resolution server acquisition request that user equipment is sent;
Parameter in the request is parsed, the network environment information of the user equipment is obtained;
According to the network environment information of the user equipment, the network environment with the user equipment is searched from database The IP address of adaptable preferred domain name resolution server;
The IP address of the preferred domain name resolution server found is returned into the user equipment, so that described use Family equipment sets the IP address of domain name resolution server according to the IP address of the preferred domain name resolution server received.
Alternatively, the parameter in the request is parsed, and obtains the network environment information of the user equipment Including:Parameter in the request is parsed, the corresponding city of IP address and the internet clothes of the user equipment are obtained Be engaged in provider;
The network environment information according to the user equipment, searches the network with the user equipment from database The IP address of the adaptable preferred domain name resolution server of environment, including:According to the network environment information of the user equipment, from The IP address for the preferred domain name resolution server being adapted with the user equipment network environment is searched in database, wherein, institute It is the domain name resolution server at least meeting one of following condition to state preferred domain name resolution server:A) the preferred domain name mapping City corresponding to the IP address of server, city corresponding with the IP address of the user equipment is identical;B) preference field ISP corresponding to the IP address of name resolution server, interconnection corresponding with the IP address of the user equipment Net service provider identical.
Alternatively, the parameter in the request is parsed, and obtains the network environment information of the user equipment Including:Parameter in the request is parsed, the corresponding city of IP address and the internet clothes of the user equipment are obtained Business provider and the script region name resolution server information of the user equipment;Wherein, the script of the user equipment Domain name resolution server information includes:In the IP address of the script region name resolution server, response time, Connection Time It is at least one;
The network environment information according to the user equipment, searches the network with the user equipment from database The IP address of the adaptable preferred domain name resolution server of environment, including:According to the network environment information of the user equipment, from The IP address of the preferred domain name resolution server adaptable with the network environment of the user equipment is searched in database, wherein, The preferred domain name resolution service is the domain name resolution server at least meeting one of following condition:A) the preferred domain name mapping City corresponding to the IP address of server, city corresponding with the IP address of the user equipment is identical;B) preference field ISP corresponding to the IP address of name resolution server, interconnection corresponding with the IP address of the user equipment Net service provider identical;C) the parsing time of the preferred domain name resolution server is less than the script region name analysis service The parsing time of device;D) Connection Time of the preferred domain name resolution server is less than the script region name resolution server Connection Time;E) IP address of the IP address of the preferred domain name resolution server and the script region name resolution server is not It is identical.
Alternatively, the information of the script region name resolution server of the user equipment also includes the original of the user equipment The corresponding city of IP address of home domain name resolution server and ISP;The setting domain name resolution server The method of IP address also include:By the corresponding city of IP address of the script region name resolution server of the user equipment and ISP stores in the database.
Alternatively, the method for the IP address of described setting domain name resolution server also includes:Judge that user equipment is local Domain name resolution server whether safety;When the local domain name resolution server of the user equipment is dangerous, used to described Family equipment sends message, so that the user equipment reminds user to change the local domain name resolution server of the user equipment.
Alternatively, whether the domain name resolution server for judging that user equipment is local includes safely:Judge the user Whether the local domain name resolution server of equipment meets any one in following condition, if meeting, it is determined that the user sets Standby local domain name resolution server is dangerous:The number of users of the local domain name resolution server of the user equipment is less than pre- The first threshold first set;The response time of the local domain name resolution server of the user equipment is less than set in advance second Threshold value;There is the user of different cities, the local domain name resolution server of the user equipment is set to local domain name mapping Server;The local domain name resolution server of the user equipment is reported.
Alternatively, the parameter in the request is parsed, and obtains the script region name solution of the user equipment After the information for analysing server, in addition to:According to the script region name resolution server response time of the user equipment, sentence The number of times of the script region name resolution server response time time-out of the disconnected user equipment, if more than the 3rd threshold value, if super Cross, it is determined that the script region name resolution server of the user equipment is faulty.
Alternatively the parameter in the request is parsed, and obtains the script region name parsing of the user equipment After the information of server, in addition to:According to the script region name resolution server Connection Time of the user equipment, judge to work as The main frame of the script region name resolution server of the user equipment and the script region name resolution server of the user equipment Between Connection Time time-out number of times, if more than the 4th threshold value, if exceeding, it is determined that the script region of the user equipment The main frame of name resolution server is faulty.
The method of the IP address of the setting domain name resolution server of the embodiment of the present invention, according to the network of the user equipment Environmental information, searches the IP of the preferred domain name resolution server adaptable with the network environment of the user equipment from database Address, and be back to the user equipment, in order to which the user equipment can be according to the IP of the preferred domain name resolution server of return Address sets the IP address of the local domain name resolution server of the user equipment, so, due to being back to the excellent of the user equipment The IP address for selecting domain name resolution server is adapted with the network environment of the user equipment, therefore, it is possible to avoid domain name solution The problem of analysing server exception or slow resolution speed, so that, improve the local domain name resolution server parsing domain of user equipment The speed of name.
Another further aspect, the invention provides a kind of method of server, including:
Receiving unit, the preferred domain name resolution server for receiving user equipment transmission obtains request;
Resolution unit, for being parsed to the parameter in the request, obtains the network environment letter of the user equipment Breath;
Searching unit, for the network environment information according to the user equipment, is searched and the user from database The IP address of the adaptable preferred domain name resolution server of the network environment of equipment;
Returning unit, sets for the IP address of the preferred domain name resolution server found to be returned into the user It is standby, so that IP address of the user equipment according to the preferred domain name resolution server received, sets user equipment sheet The IP address of the domain name resolution server on ground.
Alternatively, the resolution unit, for being parsed to the parameter in the request, obtains the user equipment The corresponding city of IP address and ISP;
The searching unit, for the network environment information according to the user equipment, from database search with it is described The IP address of the adaptable preferred domain name resolution server of the network environment of user equipment, wherein, the preferred domain name mapping clothes Business device is the domain name resolution server at least meeting one of following condition:A) the IP address institute of the preferred domain name resolution server Corresponding city, city corresponding with the IP address of the user equipment is identical;B) IP of the preferred domain name resolution server ISP corresponding to address, ISP corresponding with the IP address of user equipment phase Together.
Alternatively, the resolution unit, for being parsed to the parameter in the request, obtains the user equipment The corresponding city of IP address and ISP and the script region name resolution server information of the user equipment; Wherein, the script region name resolution server information of the user equipment includes:The IP of the script region name resolution server At least one of address, response time, Connection Time;
The searching unit, for the network environment information according to the user equipment, from database search with it is described The IP address of the adaptable preferred domain name resolution server of the network environment of user equipment, wherein, the preferred domain name mapping clothes It is the domain name resolution server at least meeting one of following condition to be engaged in:A) the IP address institute of the preferred domain name resolution server is right The city answered, city corresponding with the IP address of the user equipment is identical;B) IP of the preferred domain name resolution server ISP corresponding to location, ISP corresponding with the IP address of the user equipment is identical; C) the parsing time of the preferred domain name resolution server is less than the parsing time of the script region name resolution server;D) institute The Connection Time for stating preferred domain name resolution server is less than the Connection Time of the script region name resolution server;E) it is described excellent The IP address and the IP address of the script region name resolution server of domain name resolution server is selected to differ.
Alternatively, the information of the script region name resolution server of the user equipment also includes the original of the user equipment The corresponding city of IP address of home domain name resolution server and ISP;The server also includes:Storage Unit, for the corresponding city of IP address of the script region name resolution server of the user equipment and Internet service to be carried For business's storage in the database.
Alternatively, the server also includes:First judging unit, the domain name mapping clothes local for judging user equipment Whether business device is safe;Reminding unit, for when the local domain name resolution server of the user equipment is dangerous, being used to described Family equipment sends message, so that the user equipment reminds user to change the local domain name resolution server of the user equipment.
Alternatively, first judging unit, for whether judging the local domain name resolution server of the user equipment Meet any one in following condition, if meeting, it is determined that the local domain name resolution server of the user equipment is dangerous: The number of users of the local domain name resolution server of the user equipment is less than first threshold set in advance;The user sets The response time of standby local domain name resolution server is less than Second Threshold set in advance;There is the user of different cities, by institute State the local domain name resolution server of user equipment and be set to local domain name resolution server;The local domain of the user equipment Name resolution server is reported.
Alternatively, the server also includes:Second judging unit, for the script region name according to the user equipment The resolution server response time, judge the number of times of the script region name resolution server response time time-out of the user equipment, Whether more than the 3rd threshold value, if exceeding, it is determined that the script region name resolution server of the user equipment is faulty.
Alternatively, the server also includes:3rd judging unit, for the script region name according to the user equipment The resolution server Connection Time, judge the original of the script region name resolution server and the user equipment when the user equipment The number of times of Connection Time time-out between the main frame of home domain name resolution server, if more than the 4th threshold value, if exceeding, really The main frame of the script region name resolution server of the fixed user equipment is faulty.
The server of the embodiment of the present invention, searching unit is according to the network environment information of the user equipment, from database The IP address of the middle lookup preferred domain name resolution server adaptable with the network environment of user equipment is simultaneously returned by returning unit To the user equipment, in order to which the user equipment can set the use according to the IP address of the preferred domain name resolution server of return The IP address of the local domain name resolution server of family equipment, so, because the preferred domain name mapping for being back to the user equipment takes The IP address of business device is adapted with the network environment of the user equipment, domain name resolution server can be avoided abnormal or solution Slow-footed problem is analysed, so that, improve the speed that the local domain name resolution server of user equipment parses domain name.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for the IP address of the setting domain name resolution server of the present invention;
Fig. 2 is the structural representation of the embodiment of device one of the IP address of the setting domain name resolution server of the present invention;
Fig. 3 is the structural representation of another embodiment of device of the IP address of the setting domain name resolution server of the present invention;
Fig. 4 is the schematic flow sheet of the method for the IP address of the setting domain name resolution server of the present invention;
Fig. 5 is the structural representation of the embodiment of server one of the present invention;
Fig. 6 is the structural representation of another embodiment of server of the present invention;
Fig. 7 is the structural representation of the another embodiment of server of the present invention.
Embodiment
Below in conjunction with the accompanying drawings the method for IP address that domain name resolution server is set a kind of to the embodiment of the present invention, device and Server is described in detail.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its Its embodiment, belongs to the scope of protection of the invention.
Referring to shown in Fig. 1, the present invention is a kind of set domain name resolution server IP address method embodiment, Applied to the first application for being installed on user equipment, including:
S11, to server send preferred domain name resolution server and obtain and ask;
What network environment that S12, the reception server are returned according to the request and the user equipment was adapted It is preferred that the IP address of domain name resolution server;
S13, the IP address according to the preferred domain name resolution server of reception, the domain for setting the user equipment local The IP address of name resolution server.
The method of the IP address of the setting domain name resolution server of the embodiment of the present invention, the preference field returned according to server The IP address of name resolution server sets the IP address of the local domain name resolution server of user equipment, wherein, the server is returned The IP address of the preferred domain name resolution server returned be server according to the preferred domain name resolution server of transmission obtain request and What the network environment of user equipment was returned, so, because the IP address of the preferred domain name resolution server of return is set with user What standby network environment was adapted, the problem of domain name resolution server exception or slow resolution speed can be avoided, so that, improve The local domain name resolution server of user equipment parses the speed of domain name.
The method of the IP address of the setting domain name resolution server of the embodiment of the present invention, applied to being installed on user equipment First application, such as applied to a application on personal computer or mobile terminal such as mobile phone or tablet personal computer On so that this applies such as browser etc. to have the function of realizing the above method, consequently facilitating being applied by this from described Preferred domain name resolution server is obtained on server, to personal computer or mobile terminal as mobile phone or tablet personal computer etc. are local Domain name resolution server optimizes configuration, improves network access speed.
In abovementioned steps S11, the server that preferred domain name resolution server obtains request is received, is used to use Equipment local domain name resolution server in family provides the server of the IP address of preferred domain name resolution server.On that server Being safeguarded by operation personnel has the domain name resolution server list of different regions and different ISPs.
Preferably, when the network environment for monitoring the user equipment changes, preferred domain name is sent to the server Resolution server obtains request;Or the response time time-out of the domain name resolution server of the user equipment, sent out to the server Preferred domain name resolution server is sent to obtain request;Or timing sends preferred domain name resolution server acquisition to the server and asked Ask.
It is foregoing setting domain name resolution server IP address method embodiment in, in order to avoid user across Time delay caused by Internet Service Provider or cross-region are accessed, it is possible to increase the local domain name mapping clothes of user equipment The speed for device parsing domain name of being engaged in, alternatively, the preferred domain name resolution server, which is obtained in request, carries the user equipment IP address so that the server according to the IP address of the user equipment determine and the user equipment network environment phase The preferred name server adapted to, and return to the IP address of the preferred name server.
In the same manner, it is described to receive network environment that the server is returned according to the request, with the user equipment The IP address (S12) of adaptable preferred domain name resolution server, can include:The server is received to be returned according to the request IP address return, preferred domain name resolution server adaptable with the network environment of the user equipment, wherein, domain name Resolution server is the domain name resolution server at least meeting one of following condition:A) IP of the preferred domain name resolution server City corresponding to address, city corresponding with the IP address of the user equipment is identical;B) the preferred domain name resolution service ISP corresponding to the IP address of device, Internet service corresponding with the IP address of the user equipment is provided Business is identical.
It is alternatively, described excellent in the embodiment of the method for the IP address of foregoing setting domain name resolution server Select domain name resolution server to obtain in request and carry the IP address of the user equipment and the script region of the user equipment Name resolution server information, the script region name resolution server information includes:The script region name resolution server At least one of IP address, response time, Connection Time so that the server according to the IP address of the user equipment and The script region name resolution server information determines the preferred domain name service adaptable with the network environment of the user equipment Device, and return to the IP address of the preferred name server.
In the present embodiment, for example, the IP address and/or home domain name resolution server information to the user equipment of acquisition are entered Row is sent to the server after arranging.IP address and/or home domain name resolution server information to the user equipment of acquisition After being arranged, following form can be formed:
http://www.xxx.com/getdnsLocaldns=114.114.114.114&t1=33&t2=44
Wherein, t1 represents the response time of the home domain name resolution server, and t2 represents the home domain name resolution server With the main frame of the home domain name resolution server Connection Time.
In the embodiment of the method for the IP address of foregoing setting domain name resolution server, in order to make user The resolution speed of the home domain name resolution server of equipment is faster, alternatively, described to receive the server according to the request IP address (S12) return, preferred domain name resolution server adaptable with the network environment of the user equipment, can be wrapped Include:Receive preferred domain name that the server is returned according to the request, adaptable with the network environment of the user equipment The IP address of resolution server, wherein, the preferred domain name resolution server is the domain name for also at least meeting one of following condition Resolution server:A) city corresponding to the IP address of the preferred domain name resolution server, with the IP of the user equipment The corresponding city in location is identical;B) ISP corresponding to the IP address of the preferred domain name resolution server, with The corresponding ISP of IP address of the user equipment is identical;C) parsing of the preferred domain name resolution server Time is less than the parsing time of the script region name resolution server;D) Connection Time of the preferred domain name resolution server Less than the Connection Time of the script region name resolution server;E) IP address of the preferred domain name resolution server with it is described The IP address of script region name resolution server is differed.
Preferably, the parsing time of the preferred domain name resolution server being averaged for the preferred domain name resolution server The parsing time;When the Connection Time of the preferred domain name resolution server is the average connection of the preferred domain name resolution server Between.
In the embodiment of the method for the IP address of foregoing setting domain name resolution server, alternatively, the clothes Business device returns to the IP address of at least two preferred domain name resolution servers;The preferred domain name mapping according to reception takes The IP address of business device, setting the IP address (S13) of the local domain name resolution server of the user equipment includes:According to receiving The preferred domain name resolution server IP address, the preferred domain name resolution server is tested the speed;By test result The middle IP address for responding most fast domain name resolution server, is set to the IP of the local domain name resolution server of the user equipment Address.
In the embodiment of the present invention, the IP address of the preferred domain name resolution server received from server can have one, Can have multiple, can be to the plurality of preferred domain name resolution service when the IP address of preferred domain name resolution server has multiple Device is tested the speed, and therefrom to determine the IP address for responding most fast domain name resolution server, and is set to the user equipment sheet The IP address of the domain name resolution server on ground, so that, the time that the domain name of the website accessed user is parsed is reduced, to carry High user accesses the speed of website.
Referring to shown in Fig. 2, the present invention is a kind of set domain name resolution server IP address device embodiment, Applied to the first application for being installed on user equipment, including:Transmitting element 11, takes for sending preferred domain name mapping to server Business device obtains request;Receiving unit 12, it is that the server is returned according to the request, with the user equipment for receiving The IP address of the adaptable preferred domain name resolution server of network environment;Setting unit 13, for according to the described preferred of reception The IP address of domain name resolution server, sets the IP address of the local domain name resolution server of the user equipment, so as to pass through The preferred domain name resolution server accesses internet.
The device of the IP address of the setting domain name resolution server of the embodiment of the present invention, setting unit 13 is returned according to server The IP address of the preferred domain name resolution server returned sets the IP address of the local domain name resolution server of user equipment, wherein, The IP address for the preferred domain name resolution server that the server is returned is preferred domain name resolution server of the server according to transmission What the network environment of acquisition request and user equipment was returned, so, due to the IP address of the preferred domain name resolution server of return It is to be adapted with the network environment of user equipment, domain name resolution server exception or resolution speed asking slowly can be avoided Topic, so that, improve the speed that the local domain name resolution server of user equipment parses domain name.
The device of the IP address of the setting domain name resolution server of the embodiment of the present invention, applied to being installed on user equipment First application, and the functional module of first application can be turned into.Such as, by the setting domain name resolution server of the embodiment of the present invention IP address device, applied to a application on personal computer or mobile terminal such as mobile phone or tablet personal computer On such as browser, and as the functional module of this application.So this application is just enabled to realize above-mentioned functions, so that just In obtaining preferred domain name resolution server from the server by this application, to personal computer or mobile terminal such as The local domain name resolution server such as mobile phone or tablet personal computer optimizes configuration, improves network access speed.
It is foregoing setting domain name resolution server IP address device embodiment in, in order to avoid user across Time delay caused by Internet Service Provider or cross-region are accessed, it is possible to increase the local domain name mapping clothes of user equipment The speed for device parsing domain name of being engaged in, alternatively, the preferred domain name resolution server that the transmitting element 11 is sent is obtained to be taken in request IP address with the user equipment, so that the server is determined and the user according to the IP address of the user equipment The adaptable preferred name server of the network environment of equipment, and return to the IP address of the preferred name server.
In the same manner, alternatively, the receiving unit 12, for receive the server according to it is described request return, with The IP address of the adaptable preferred domain name resolution server of the network environment of the user equipment, wherein, the preferred domain name solution It is the domain name resolution server at least meeting one of following condition to analyse server:A) IP of the preferred domain name resolution server City corresponding to location, city corresponding with the IP address of the user equipment is identical;B) the preferred domain name resolution server IP address corresponding to ISP, ISP corresponding with the IP address of the user equipment It is identical.
In the embodiment of the device of the IP address of foregoing setting domain name resolution server, alternatively, the hair The preferred domain name resolution server for sending unit 11 to send obtains the IP address and the use that the user equipment is carried in request The script region name resolution server information of family equipment, the script region name resolution server information includes:The script At least one of the IP address of domain name resolution server, response time, Connection Time, so that the server is used according to described The IP address of family equipment and the script region name resolution server information determine that the network environment with the user equipment is mutually fitted The preferred name server answered, and return to the IP address of the preferred name server;
In the present embodiment, for example, can be to the IP address and/or home domain name resolution server information of the user equipment of acquisition The server is sent to after being arranged.IP address and/or home domain name resolution server letter to the user equipment of acquisition After breath is arranged, following form can be formed:
http://www.xxx.com/getdnsLocaldns=114.114.114.114&t1=33&t2=44
Wherein, t1 represents the response time of the home domain name resolution server, and t2 represents the home domain name resolution server With the main frame of the home domain name resolution server Connection Time.
In order to make user equipment home domain name resolution server resolution speed faster, alternatively, it is described receive Unit 12, is adapted for receiving network environment that the server is returned according to the request and the user equipment It is preferred that the IP address of domain name resolution server, wherein, the preferred domain name resolution service is at least to meet one of following condition Domain name resolution server:A) city corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding city of IP address is identical;B) Internet service corresponding to the IP address of the preferred domain name resolution server is provided Business, ISP corresponding with the IP address of the user equipment is identical;C) the preferred domain name resolution server Parsing the time be less than the script region name resolution server the parsing time;D) company of the preferred domain name resolution server Connect Connection Time of the time less than the script region name resolution server;E) IP address of the preferred domain name resolution server Differed with the IP address of the script region name resolution server.
Preferably, the parsing time of the preferred domain name resolution server being averaged for the preferred domain name resolution server The parsing time;When the Connection Time of the preferred domain name resolution server is the average connection of the preferred domain name resolution server Between.
, can in the embodiment of the device of the IP address of foregoing setting domain name resolution server referring to shown in Fig. 3 Selection of land, the receiving unit 12, the IP address of at least two preferred domain name resolution servers returned for the reception server;Institute Stating setting unit 13 includes:Speed measuring module 131, the IP of at least two preferred domain name resolution servers received for basis Location, tests the speed to the preferred domain name resolution server;Setup module 132, for most fast domain will to be responded in test result The IP address of name resolution server, is set to the IP address of the local domain name resolution server of the user equipment.
In the present embodiment, the IP address of the preferred domain name resolution server received from server can have one, can also Have multiple, when the IP address of preferred domain name resolution server has multiple, the plurality of preferred domain name resolution server can be entered Row tests the speed, therefrom to determine the IP address of response most fast domain name resolution server, and it is local to be set to the user equipment The IP address of domain name resolution server, so that, the time that the domain name of the website accessed user is parsed is reduced, to improve use Family accesses the speed of website.
It is optional in each embodiment of the method and device of the IP address of foregoing setting domain name resolution server Ground, first application is browser.
Referring to shown in Fig. 4, the present invention is a kind of set domain name resolution server IP address method embodiment, Including:
S21, the preferred domain name resolution server acquisition request for receiving user equipment transmission;
S22, the request is parsed, obtain the network environment information of the user equipment;
S23, the network environment information according to the user equipment, search the network with the user equipment from database The IP address of the adaptable preferred domain name resolution server of environment;
S24, the IP address of the preferred domain name resolution server found returned into the user equipment, so that institute IP address of the user equipment according to the preferred domain name resolution server received is stated, the IP of domain name resolution server is set Location;
Preferably, the IP address of at least one preferred domain name resolution server described in finding is in the form of a list Return to the user equipment;The IP address of domain name resolution server in the domain name resolution server list can for 1, Can be multiple.
The method of the IP address of the setting domain name resolution server of the embodiment of the present invention, according to the network of the user equipment Environmental information, searches the IP of the preferred domain name resolution server adaptable with the network environment of the user equipment from database Address, and be back to the user equipment, in order to which the user equipment can be according to the IP of the preferred domain name resolution server of return Address sets the IP address of the local domain name resolution server of the user equipment, so, due to being back to the domain of the user equipment The IP address of name resolution server is adapted with the network environment of the user equipment, domain name resolution server can be avoided different The problem of normal or resolution speed is slow, so that, improve the speed that the local domain name resolution server of user equipment parses domain name.
It is foregoing setting domain name resolution server IP address device embodiment in, in order to avoid user across Time delay caused by Internet Service Provider or cross-region are accessed, it is possible to increase the local domain name mapping clothes of user equipment The speed for device parsing domain name of being engaged in, alternatively, the parameter in the request is parsed, and obtains the net of the user equipment Network environmental information (S22) includes:Parameter in the request is parsed, the IP address for obtaining the user equipment is corresponding City and ISP.
In the same manner, the network environment information according to the user equipment, searches from database and is set with the user The IP address (S23) of the adaptable preferred domain name resolution server of standby network environment, can include:According to the user equipment Network environment information, the preferred domain name resolution service adaptable with the network environment of the user equipment is searched from database The IP address of device, wherein, the preferred domain name resolution server is the domain name resolution server at least meeting one of following condition: A) city corresponding to the IP address of the preferred domain name resolution server, city corresponding with the IP address of the user equipment It is identical;B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address it is identical.
It is alternatively, described right in the embodiment of the device of the IP address of foregoing setting domain name resolution server Parameter in the request is parsed, and is obtained the network environment information (S22) of the user equipment and is included:To in the request Parameter parsed, obtain the corresponding city of IP address and ISP and the use of the user equipment The script region name resolution server information of family equipment;Wherein, the script region name resolution server information of the user equipment Including:At least one of the IP address of the script region name resolution server, response time, Connection Time;Response time The response time of the script region name resolution server of user equipment is represented, the Connection Time represents the script region name of user equipment The main frame of resolution server and the script region name resolution server Connection Time.
In the present embodiment, the IP of the preferred domain name resolution server adaptable with the network environment of the user equipment is searched When address, be easy to by changing section matching condition to select optimal domain name resolution server, for example, with user In the preferred domain name resolution server that the network environment of equipment matches, the response time is most short;In addition, the home domain name solution Analysis server info can also include, the number of users of the domain name resolution server.
The network environment information according to the user equipment, searches the network with the user equipment from database The IP address (S23) of the adaptable preferred domain name resolution server of environment, can include:According to the network rings of the user equipment Environment information, the IP of the preferred domain name resolution server adaptable with the network environment of the user equipment is searched from database Location, wherein, the preferred domain name resolution service is the domain name resolution server at least meeting one of following condition:A) it is described preferred City corresponding to the IP address of domain name resolution server, city corresponding with the IP address of the user equipment is identical;B) institute The ISP corresponding to the IP address of preferred domain name resolution server is stated, the IP address pair with the user equipment The ISP answered is identical;C) the parsing time of the preferred domain name resolution server is less than the script region name The parsing time of resolution server;D) Connection Time of the preferred domain name resolution server parses less than the script region name The Connection Time of server;E) IP address of the preferred domain name resolution server and the script region name resolution server IP address is differed.
Preferably, the parsing time of the preferred domain name resolution server being averaged for the preferred domain name resolution server The parsing time;When the Connection Time of the preferred domain name resolution server is the average connection of the preferred domain name resolution server Between.
In the embodiment of the device of the IP address of foregoing setting domain name resolution server, for expanding data storehouse The quantity of the IP address of middle domain name resolution server, alternatively, the letter of the script region name resolution server of the user equipment The breath also corresponding city of IP address of the script region name resolution server including the user equipment and Internet service is provided Business;The method of the IP address of the setting domain name resolution server also includes:The script region name of the user equipment is parsed The corresponding city of IP address of server and ISP's storage are in the database.
In the embodiment of the device of the IP address of foregoing setting domain name resolution server, in order to prevent user from visiting The domain name for the website asked is held as a hostage, and can ensure user security, alternatively, the described IP address for setting domain name resolution server Method also include:Judge whether the local domain name resolution server of user equipment is safe;When the local domain of the user equipment When name resolution server is dangerous, message is sent to the user equipment, so that the user equipment reminds user that replacing is described The local domain name resolution server of user equipment.
Alternatively, whether the domain name resolution server for judging that user equipment is local includes safely:Judge the user Whether the local domain name resolution server of equipment meets any one in following condition, if meeting, it is determined that the user sets Standby local domain name resolution server is dangerous:The number of users of the local domain name resolution server of the user equipment is less than pre- The first threshold first set;The response time of the local domain name resolution server of the user equipment is less than set in advance second Threshold value;There is the user of different cities, the local domain name resolution server of the user equipment is set to local domain name mapping Server;The local domain name resolution server of the user equipment is reported.
In the embodiment of the device of the IP address of foregoing setting domain name resolution server, rung in order to quick Faulty using family domain name resolution server, alternatively, the parameter in the request is parsed, and obtains the user After the information of the script region name resolution server of equipment, in addition to:Parsed according to the script region name of the user equipment Server response time, judge the number of times of the script region name resolution server response time time-out of the user equipment, if More than the 3rd threshold value, if exceeding, it is determined that the script region name resolution server of the user equipment is faulty.
In the embodiment of the device of the IP address of foregoing setting domain name resolution server, rung in order to quick Answer the main frame of the home domain name resolution server of user equipment faulty, alternatively, the parameter in the request is carried out After parsing, the information for the script region name resolution server for obtaining the user equipment, in addition to:According to the user equipment The script region name resolution server Connection Time, judge when the user equipment script region name resolution server and institute The number of times of Connection Time time-out between the main frame for the script region name resolution server for stating user equipment, if more than the 4th threshold Value, if exceeding, it is determined that the main frame of the script region name resolution server of the user equipment is faulty.
Referring to shown in Fig. 5, a kind of embodiment of server of the invention, including:Receiving unit 21, is used for receiving The preferred domain name resolution server that family equipment is sent obtains request;Resolution unit 22, for being carried out to the parameter in the request Parsing, obtains the network environment information of the user equipment;Searching unit 23, for the network environment according to the user equipment Information, the IP of the preferred domain name resolution server adaptable with the network environment of the user equipment is searched from database Location;Returning unit 24, for the IP address of the preferred domain name resolution server found to be returned into the user equipment, So that IP address of the user equipment according to the preferred domain name resolution server received, set user equipment local The IP address of domain name resolution server.
The server of the embodiment of the present invention, searching unit 23 is according to the network environment information of the user equipment, from data The IP address of the preferred domain name resolution server adaptable with the network environment of user equipment is searched in storehouse and by returning unit 24 The user equipment is back to, in order to which the user equipment can be set according to the IP address of the preferred domain name resolution server of return The IP address of the local domain name resolution server of the user equipment, so, because the domain name mapping for being back to the user equipment takes The IP address of business device is adapted with the network environment of the user equipment, domain name resolution server can be avoided abnormal or solution Slow-footed problem is analysed, so that, improve the speed that the local domain name resolution server of user equipment parses domain name.
In the embodiment of the present invention, it is preferable that returning unit 24 will find described at least one preferred domain name mapping The IP address of server returns to the user equipment in the form of a list;Preferred domain name in the domain name resolution server list The IP address of resolution server can be 1, can also be multiple;Furthermore it is possible to according to number of users, response time or company Connect the time is ranked up to the IP address of the preferred domain name resolution server in the domain name resolution server list, in order to client End efficiently sets the IP address of the local domain name resolution server of user equipment.
In the embodiment of aforementioned server, in order to avoid user's crossing internet service supplier or cross-region Time delay caused by accessing, it is possible to increase the local domain name resolution server of user equipment parses the speed of domain name, alternatively, Alternatively, the resolution unit 22, for being parsed to the parameter in the request, obtains the IP address of the user equipment Corresponding city and ISP.
In the same manner, alternatively, the searching unit 23, for the network environment information according to the user equipment, from number According to the IP address that the preferred domain name resolution server adaptable with the network environment of the user equipment is searched in storehouse, wherein, institute It is the domain name resolution server at least meeting one of following condition to state preferred domain name resolution server:A) the preferred domain name mapping City corresponding to the IP address of server, city corresponding with the IP address of the user equipment is identical;B) preference field ISP corresponding to the IP address of name resolution server, interconnection corresponding with the IP address of the user equipment Net service provider identical.
In the embodiment of aforementioned server, alternatively, the resolution unit 22, in the request Parameter is parsed, and obtains the corresponding city of IP address and ISP and the user of the user equipment The script region name resolution server information of equipment;Wherein, the script region name resolution server packet of the user equipment Include:At least one of the IP address of the script region name resolution server, response time, Connection Time;Response time table Show the response time of the script region name resolution server of user equipment, the Connection Time represents the script region name solution of user equipment Analyse server and the script region name resolution server main frame Connection Time.
In the present embodiment, it is easy to searching the preferred domain name resolution service adaptable with the network environment of the user equipment When the IP address of device, by changing section matching condition to select optimal domain name resolution server, for example, with In the preferred domain name resolution server that the network environment of family equipment matches, the response time is most short.
The searching unit 23, for the network environment information according to the user equipment, is searched and institute from database The IP address of the adaptable preferred domain name resolution server of network environment of user equipment is stated, wherein, the preferred domain name mapping It is the domain name resolution server at least meeting one of following condition to service:A) the IP address institute of the preferred domain name resolution server Corresponding city, city corresponding with the IP address of the user equipment is identical;B) IP of the preferred domain name resolution server ISP corresponding to address, ISP corresponding with the IP address of user equipment phase Together;C) the parsing time of the preferred domain name resolution server is less than the parsing time of the script region name resolution server; D) Connection Time of the preferred domain name resolution server is less than the Connection Time of the script region name resolution server;E) institute The IP address and the IP address of the script region name resolution server for stating preferred domain name resolution server are differed.
Preferably, the parsing time of the preferred domain name resolution server being averaged for the preferred domain name resolution server The parsing time;The Connection Time of the preferred domain name resolution server is the average connection of the preferred domain name resolution server Time.
Referring to shown in Fig. 6, in the embodiment of aforementioned server, for domain name resolution service in expanding data storehouse The quantity of the IP address of device, alternatively, the information of the script region name resolution server of the user equipment also include described use The corresponding city of IP address of the script region name resolution server of family equipment and ISP;The server is also Including:Memory cell 25, for by the corresponding city of IP address of the script region name resolution server of the user equipment and ISP stores in the database.
, can in order to prevent the domain name of website of user's access to be held as a hostage in the embodiment of aforementioned server User security is ensured, alternatively, the server also includes:First judging unit 26, the domain local for judging user equipment Whether name resolution server is safe;Reminding unit 27, for when the local domain name resolution server of the user equipment it is dangerous When, message is sent to the user equipment, so that the user equipment reminds user to change the local domain name of the user equipment Resolution server.
Alternatively, first judging unit 26, for judging that the local domain name resolution server of the user equipment is The no any one met in following condition, if meeting, it is determined that the local domain name resolution server of the user equipment is uneasy Entirely:The number of users of the local domain name resolution server of the user equipment is less than first threshold set in advance;The user The response time of the local domain name resolution server of equipment is less than Second Threshold set in advance;There is the user of different cities, will The local domain name resolution server of the user equipment is set to local domain name resolution server;The user equipment is local Domain name resolution server is reported.
Referring to shown in Fig. 7, in the embodiment of aforementioned server, in order to quick response user's domain name mapping Server is faulty, alternatively, and the server also includes:Second judging unit 28, for the original according to the user equipment The home domain name resolution server response time, judge the script region name resolution server response time time-out of the user equipment Number of times, if more than the 3rd threshold value, if exceeding, it is determined that the script region name resolution server of the user equipment have therefore Barrier.
In the embodiment of aforementioned server, parsed in order to the script region name of quick response user equipment The main frame of server is faulty, alternatively, and the server also includes:3rd judging unit 29, for being set according to the user The standby script region name resolution server Connection Time, judge the script region name resolution server when the user equipment and institute The number of times of Connection Time time-out between the main frame for the script region name resolution server for stating user equipment, if more than the 4th threshold Value, if exceeding, it is determined that the main frame of the script region name resolution server of the user equipment is faulty.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can be readily occurred in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (22)

1. a kind of method for setting domain name resolution server IP address, it is characterised in that applied to being installed on the of user equipment One application, including:
Preferred domain name resolution server, which is sent, to server obtains request;
Receive preferred domain name that the server is returned according to the request, adaptable with the network environment of the user equipment The IP address of resolution server;
According to the IP address of the preferred domain name resolution server of reception, the domain name mapping clothes that the user equipment is local are set The IP address of business device, so that passing through the preferred domain name resolution server accesses internet;
The preferred domain name resolution server obtains the IP address that the user equipment is carried in request, so that the server The preferred name server adaptable with the network environment of the user equipment is determined according to the IP address of the user equipment, and Return to the IP address of the preferred name server;
It is described receive it is that the server is returned according to the request, with adaptable preferred of the network environment of the user equipment The IP address of domain name resolution server includes:
Receive preferred domain name that the server is returned according to the request, adaptable with the network environment of the user equipment The IP address of resolution server, wherein, the preferred domain name resolution server is the domain name solution at least meeting one of following condition Analyse server:
A) city corresponding to the IP address of the preferred domain name resolution server, it is corresponding with the IP address of the user equipment City is identical;
B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address is identical.
2. the method for the IP address of setting domain name resolution server according to claim 1, it is characterised in that
The preferred domain name resolution server obtains the IP address and the user equipment that the user equipment is carried in request Script region name resolution server information, the script region name resolution server information includes:The script region name solution At least one of the IP address of server, response time, Connection Time are analysed, so that the server is according to the user equipment IP address and the script region name resolution server information determine and adaptable excellent of the network environment of the user equipment Name server is selected, and returns to the IP address of the preferred name server;
It is described receive it is that the server is returned according to the request, with adaptable preferred of the network environment of the user equipment The IP address of domain name resolution server includes:
Receive preferred domain name that the server is returned according to the request, adaptable with the network environment of the user equipment The IP address of resolution server, wherein, the preferred domain name resolution service is the domain name mapping at least meeting one of following condition Server:
A) city corresponding to the IP address of the preferred domain name resolution server, it is corresponding with the IP address of the user equipment City is identical;
B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address is identical;
C) the parsing time of the preferred domain name resolution server is less than the parsing time of the script region name resolution server;
D) Connection Time of the preferred domain name resolution server is less than the Connection Time of the script region name resolution server;
E) IP address of the preferred domain name resolution server and the IP address of the script region name resolution server are differed.
3. the method for the IP address of setting domain name resolution server according to claim 1 or 2, it is characterised in that
The server returns to the IP address of at least two preferred domain name resolution servers;
The IP address of the preferred domain name resolution server according to reception, the domain name solution for setting the user equipment local The IP address of analysis server includes:
According to the IP address of receive at least two preferred domain name resolution servers, the preferred domain name resolution server is entered Row tests the speed;
The IP address of most fast domain name resolution server will be responded in test result, be set to the local domain name of the user equipment The IP address of resolution server.
4. the method for the IP address of setting domain name resolution server according to claim 1 or 2, it is characterised in that described First application is browser.
5. a kind of device for the IP address that domain name resolution server is set, it is characterised in that applied to being installed on user equipment First application, including:
Transmitting element, request is obtained for sending preferred domain name resolution server to server;
Receiving unit, for receiving network environment phase that the server is returned according to the request, with the user equipment The IP address of the preferred domain name resolution server adapted to;
Setting unit, for the IP address of the preferred domain name resolution server according to reception, sets the user equipment sheet The IP address of the domain name resolution server on ground, so as to access internet by the preferred domain name resolution server;
The preferred domain name resolution server that the transmitting element is sent obtains the IP address that the user equipment is carried in request, So that the server is determined and adaptable excellent of the network environment of the user equipment according to the IP address of the user equipment Name server is selected, and returns to the IP address of the preferred name server;
The receiving unit, for receiving network rings that the server is returned according to the request, with the user equipment The IP address of the adaptable preferred domain name resolution server in border, wherein, the preferred domain name resolution server is at least to meet such as The domain name resolution server of one of lower condition:
A) city corresponding to the IP address of the preferred domain name resolution server, it is corresponding with the IP address of the user equipment City is identical;
B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address is identical.
6. the device of the IP address of setting domain name resolution server according to claim 5, it is characterised in that
The preferred domain name resolution server that the transmitting element is sent obtains the IP address that the user equipment is carried in request With the script region name resolution server information of the user equipment, the script region name resolution server information includes:Institute At least one of the IP address of script region name resolution server, response time, Connection Time are stated, so that the server root The network with the user equipment is determined according to the IP address of the user equipment and the script region name resolution server information The adaptable preferred name server of environment, and return to the IP address of the preferred name server;
The receiving unit, for receiving network rings that the server is returned according to the request, with the user equipment The IP address of the adaptable preferred domain name resolution server in border, wherein, the preferred domain name resolution service is at least to meet as follows The domain name resolution server of one of condition:
A) city corresponding to the IP address of the preferred domain name resolution server, it is corresponding with the IP address of the user equipment City is identical;
B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address is identical;
C) the parsing time of the preferred domain name resolution server is less than the parsing time of the script region name resolution server;
D) Connection Time of the preferred domain name resolution server is less than the Connection Time of the script region name resolution server;
E) IP address of the preferred domain name resolution server and the IP address of the script region name resolution server are differed.
7. the method for the IP address of the setting domain name resolution server according to claim 5 or 6, it is characterised in that
The receiving unit, the IP address of at least two preferred domain name resolution servers returned for the reception server;
The setting unit includes:
Speed measuring module, for the IP address according at least two preferred domain name resolution servers received, to the preference field Name resolution server is tested the speed;
Setup module, for the IP address by most fast domain name resolution server is responded in test result, is set to the user The IP address of the local domain name resolution server of equipment.
8. the method for the IP address of the setting domain name resolution server according to claim 5 or 6, it is characterised in that described First application is browser.
9. a kind of method of the IP address of setting domain name resolution server, it is characterised in that including:
Receive the preferred domain name resolution server acquisition request that user equipment is sent;
Parameter in the request is parsed, the network environment information of the user equipment is obtained;
According to the network environment information of the user equipment, the network environment searched from database with the user equipment is mutually fitted The IP address for the preferred domain name resolution server answered;
The IP address of the preferred domain name resolution server found is returned into the user equipment, so that the user sets The standby IP address according to the preferred domain name resolution server received, sets the domain name mapping clothes that the user equipment is local The IP address of business device, so that passing through the preferred domain name resolution server accesses internet;
The preferred domain name resolution server obtains the IP address that the user equipment is carried in request;
The parameter in the request is parsed, and is obtained the network environment information of the user equipment and is included:
Parameter in the request is parsed, the corresponding city of IP address and the Internet service of the user equipment is obtained Provider;
The network environment information according to the user equipment, searches the network environment with the user equipment from database The IP address of adaptable preferred domain name resolution server, including:
According to the network environment information of the user equipment, the network environment searched from database with the user equipment is mutually fitted The IP address for the preferred domain name resolution server answered, wherein, the preferred domain name resolution server is at least to meet following condition One of domain name resolution server:
A) city corresponding to the IP address of the preferred domain name resolution server, it is corresponding with the IP address of the user equipment City is identical;
B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address is identical.
10. the method for the IP address of setting domain name resolution server according to claim 9, it is characterised in that
The preferred domain name resolution server obtains the IP address and the user equipment that the user equipment is carried in request Script region name resolution server information;Wherein, the script region name resolution server information of the user equipment includes:Institute State at least one of the IP address of script region name resolution server, response time, Connection Time;
The parameter in the request is parsed, and is obtained the network environment information of the user equipment and is included:
Parameter in the request is parsed, the corresponding city of IP address and the Internet service of the user equipment is obtained Provider and the script region name resolution server information of the user equipment;
The network environment information according to the user equipment, searches the network environment with the user equipment from database The IP address of adaptable preferred domain name resolution server, including:
According to the network environment information of the user equipment, the network environment searched from database with the user equipment is mutually fitted The IP address for the preferred domain name resolution server answered, wherein, the preferred domain name resolution service be at least meet following condition it One domain name resolution server:
A) city corresponding to the IP address of the preferred domain name resolution server, it is corresponding with the IP address of the user equipment City is identical;
B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address is identical;
C) the parsing time of the preferred domain name resolution server is less than the parsing time of the script region name resolution server;
D) Connection Time of the preferred domain name resolution server is less than the Connection Time of the script region name resolution server;
E) IP address of the preferred domain name resolution server and the IP address of the script region name resolution server are differed.
11. the method for the IP address of setting domain name resolution server according to claim 10, it is characterised in that the use The information of the script region name resolution server of the family equipment also script region name resolution server including the user equipment The corresponding city of IP address and ISP;
Methods described also includes:
By the corresponding city of IP address of the script region name resolution server of the user equipment and ISP Storage is in the database.
12. the method for the IP address of setting domain name resolution server according to claim 9, it is characterised in that also include:
Judge whether the local domain name resolution server of user equipment is safe;
When the local domain name resolution server of the user equipment is dangerous, message is sent to the user equipment, so that institute Stating user equipment reminds user to change the local domain name resolution server of the user equipment.
13. the method for the IP address of setting domain name resolution server according to claim 12, it is characterised in that described to sentence Whether the local domain name resolution server of disconnected user equipment includes safely:
Judge whether the local domain name resolution server of the user equipment meets any one in following condition, if meeting, Then determine that the local domain name resolution server of the user equipment is dangerous:
The number of users of the local domain name resolution server of the user equipment is less than first threshold set in advance;
The response time of the local domain name resolution server of the user equipment is less than Second Threshold set in advance;
There is the user of different cities, the local domain name resolution server of the user equipment is set into local domain name mapping takes Business device;
The local domain name resolution server of the user equipment is reported.
14. the method for the IP address of setting domain name resolution server according to claim 10, it is characterised in that described right Parameter in the request is parsed, after the information for the script region name resolution server for obtaining the user equipment, also Including:
According to the script region name resolution server response time of the user equipment, the script region of the user equipment is judged The number of times of name resolution server response time time-out, if more than the 3rd threshold value, if exceeding, it is determined that the original of the user equipment Home domain name resolution server is faulty.
15. the method for the IP address of setting domain name resolution server according to claim 10, it is characterised in that described right Parameter in the request is parsed, after the information for the script region name resolution server for obtaining the user equipment, also Including:
According to the script region name resolution server Connection Time of the user equipment, judge with working as the script of the user equipment Between the main frame of the script region name resolution server of domain name resolution server and the user equipment Connection Time time-out Number of times, if more than the 4th threshold value, if exceeding, it is determined that the main frame of the script region name resolution server of the user equipment has Failure.
16. a kind of server, it is characterised in that including:
Receiving unit, the preferred domain name resolution server for receiving user equipment transmission obtains request;
Resolution unit, for being parsed to the parameter in the request, obtains the network environment information of the user equipment;
Searching unit, for the network environment information according to the user equipment, is searched and the user equipment from database The adaptable preferred domain name resolution server of network environment IP address;
Returning unit, for the IP address of the preferred domain name resolution server found to be returned into the user equipment, So that IP address of the user equipment according to the preferred domain name resolution server received, set user equipment local The IP address of domain name resolution server;
The resolution unit, for being parsed to the parameter in the request, obtains the IP address correspondence of the user equipment City and ISP;
The searching unit, for the network environment information according to the user equipment, is searched and the user from database The IP address of the adaptable preferred domain name resolution server of the network environment of equipment, wherein, the preferred domain name resolution server It is the domain name resolution server at least meeting one of following condition:
A) city corresponding to the IP address of the preferred domain name resolution server, it is corresponding with the IP address of the user equipment City is identical;
B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address is identical.
17. server according to claim 16, it is characterised in that:
The resolution unit, for being parsed to the parameter in the request, obtains the IP address correspondence of the user equipment City and ISP and the user equipment script region name resolution server information;Wherein, it is described The script region name resolution server information of user equipment includes:The IP address of the script region name resolution server, response At least one of time, Connection Time;
The searching unit, for the network environment information according to the user equipment, is searched and the user from database The IP address of the adaptable preferred domain name resolution server of the network environment of equipment, wherein, the preferred domain name resolution service is At least meet the domain name resolution server of one of following condition:
A) city corresponding to the IP address of the preferred domain name resolution server, it is corresponding with the IP address of the user equipment City is identical;
B) ISP corresponding to the IP address of the preferred domain name resolution server, with the user equipment The corresponding ISP of IP address is identical;
C) the parsing time of the preferred domain name resolution server is less than the parsing time of the script region name resolution server;
D) Connection Time of the preferred domain name resolution server is less than the Connection Time of the script region name resolution server;
E) IP address of the preferred domain name resolution server and the IP address of the script region name resolution server are differed.
18. server according to claim 17, it is characterised in that:
The information of the script region name resolution server of the user equipment also includes the script region name solution of the user equipment Analyse the corresponding city of IP address and the ISP of server;
The server also includes:
Memory cell, for by the corresponding city of IP address of the script region name resolution server of the user equipment and interconnection Net service provider is stored in database.
19. server according to claim 16, it is characterised in that also include:
First judging unit, for judging whether the local domain name resolution server of user equipment is safe;
Reminding unit, for when the local domain name resolution server of the user equipment is dangerous, being sent out to the user equipment Message is sent, so that the user equipment reminds user to change the local domain name resolution server of the user equipment.
20. server according to claim 19, it is characterised in that:
First judging unit, for judging whether the local domain name resolution server of the user equipment meets following condition In any one, if meeting, it is determined that the local domain name resolution server of the user equipment is dangerous:
The number of users of the local domain name resolution server of the user equipment is less than first threshold set in advance;
The response time of the local domain name resolution server of the user equipment is less than Second Threshold set in advance;
There is the user of different cities, the local domain name resolution server of the user equipment is set into local domain name mapping takes Business device;
The local domain name resolution server of the user equipment is reported.
21. server according to claim 17, it is characterised in that also include:
Second judging unit, for the script region name resolution server response time according to the user equipment, judges described The number of times of the script region name resolution server response time time-out of user equipment, if more than the 3rd threshold value, if exceeding, really The script region name resolution server of the fixed user equipment is faulty.
22. server according to claim 17, it is characterised in that also include:
3rd judging unit, for the script region name resolution server Connection Time according to the user equipment, institute is worked as in judgement State the script region name resolution server of user equipment and the script region name resolution server of the user equipment main frame it Between Connection Time time-out number of times, if more than the 4th threshold value, if exceeding, it is determined that the script region name of the user equipment The main frame of resolution server is faulty.
CN201410309697.0A 2014-06-30 2014-06-30 Method and device for setting IP address of domain name resolution server and server Active CN104052832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410309697.0A CN104052832B (en) 2014-06-30 2014-06-30 Method and device for setting IP address of domain name resolution server and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410309697.0A CN104052832B (en) 2014-06-30 2014-06-30 Method and device for setting IP address of domain name resolution server and server

Publications (2)

Publication Number Publication Date
CN104052832A CN104052832A (en) 2014-09-17
CN104052832B true CN104052832B (en) 2017-08-25

Family

ID=51505181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410309697.0A Active CN104052832B (en) 2014-06-30 2014-06-30 Method and device for setting IP address of domain name resolution server and server

Country Status (1)

Country Link
CN (1) CN104052832B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105848197A (en) * 2015-01-15 2016-08-10 中兴通讯股份有限公司 Method, device and system for measuring network speed
CN105530329B (en) * 2015-12-03 2019-02-15 中国互联网络信息中心 A kind of novel domain name resolution service method and apparatus for supporting name to search for
CN106161671A (en) * 2016-06-23 2016-11-23 深圳市贝美互动科技有限公司 The optimum IP acquisition methods of a kind of embedded device and system thereof
CN106686155B (en) * 2016-12-09 2020-09-29 北京奇虎科技有限公司 Domain name resolution disaster tolerance method and device
CN106790766A (en) * 2017-02-17 2017-05-31 郑州云海信息技术有限公司 A kind of dns server intelligent configuration method for client
CN108667946B (en) * 2017-03-31 2020-11-20 贵州白山云科技股份有限公司 Multi-domain name mutual backup analysis management method, device and system
CN107181644B (en) * 2017-06-16 2019-09-27 北京小度信息科技有限公司 Method and apparatus for monitoring the network performance of network application
CN107980217B (en) * 2017-07-14 2021-06-01 达闼机器人有限公司 Method and device for acquiring address of local domain name server and authoritative domain name server
CN107623756A (en) * 2017-10-13 2018-01-23 四川长虹电器股份有限公司 Lift the system and method for terminal device network access performance
CN109922120B (en) * 2018-12-10 2022-04-05 网宿科技股份有限公司 Method and terminal for improving DNS availability
CN110191200A (en) * 2019-04-16 2019-08-30 北京奇艺世纪科技有限公司 Network Access Method, device, electronic equipment and computer-readable medium
CN114301872B (en) * 2021-12-27 2023-12-26 奇安信科技集团股份有限公司 Domain name based access method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202763A (en) * 2006-12-11 2008-06-18 国际商业机器公司 Method and system for network processing node cache data in a communication network
CN101483635A (en) * 2008-01-10 2009-07-15 华为技术有限公司 Method and apparatus for IP address selection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030065785A1 (en) * 2001-09-28 2003-04-03 Nikhil Jain Method and system for contacting a device on a private network using a specialized domain name server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202763A (en) * 2006-12-11 2008-06-18 国际商业机器公司 Method and system for network processing node cache data in a communication network
CN101483635A (en) * 2008-01-10 2009-07-15 华为技术有限公司 Method and apparatus for IP address selection

Also Published As

Publication number Publication date
CN104052832A (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN104052832B (en) Method and device for setting IP address of domain name resolution server and server
CN102932451B (en) A kind of resolution system for content distributing network
CN104767775B (en) Web application information push method and system
Weaver et al. Redirecting {DNS} for Ads and Profit
CN103825895B (en) A kind of information processing method and electronic equipment
CN104994133B (en) A kind of mobile Web web page access user experience perception evaluating method based on network KPI
EP2924941B1 (en) Method and device for preventing service illegal access
CN103257989B (en) Web page download time is analyzed
CN103716398B (en) The monitoring method and monitoring system of CDN server
CN110535684A (en) A kind of method and apparatus that web-browsing service perception assessment is realized based on DPI
CN103856436B (en) Method, home gateway and the Internet of selecting network by user equipment layer protocol
CN103167044A (en) Intelligent analysis method of domain name system (DNS) and poking measurement device and system
CN104301161B (en) Computational methods, computing device and the communication system of quality of service index
CN104158919A (en) Webpage access implementation method, server and client
CN105323121B (en) A kind of Network status detection method and device
CN105897947B (en) The Network Access Method and device of mobile terminal
CN101164321A (en) Process for managing resource address requests and associated gateway device
CN106453216A (en) Malicious website interception method, malicious website interception device and client
CN104168316B (en) A kind of Webpage access control method, gateway
CN102055813A (en) Access controlling method for network application and device thereof
CN103581351B (en) The method and apparatus of network access
CN105743684B (en) The configuration method and router of router under a kind of ap mode
JP2002007232A (en) Performance testing method and server testing device for www server
CN103269479A (en) Call ticket processing method, device and system
CN107534930A (en) A kind of recommendation method, terminal and the graphic user interface of Wi Fi focuses

Legal Events

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

Effective date of registration: 20181228

Address after: 519031 Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing

Patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TR01 Transfer of patent right