Method and device for choosing DNS (domain name server)

A technology for DNS server and domain name resolution request, which is applied in the field of DNS server selection device, which can solve problems affecting the user's Internet access speed, normal domain name resolution to phishing websites or hosts controlled by hackers, DNS hijacking, etc., so as to improve efficiency and safety effects

Inactive Publication Date: 2014-01-29
BEIJING QIHOO TECH CO LTD +1
View PDF7 Cites 37 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In many network environments (such as residential broadband), the DNS server of the user is often dynamically set to the DNS server of the operator. The domain name resolution efficiency of these DNS servers may be low, or there may be DNS hijacking problems. For example, the user wants to visit hao.360 .cn, but the IP of www.hao123.com is given by DNS server resolution
In addition, because the Trojan horse virus may also tamper with the user's DNS server, resulting in DNS hijacking, making the user unable to access specific IP addresses or resolve normal domain names to phishing websites or hosts controlled by hackers
[0004] In more cases, the DNS server used by the user's local machine is not optimal, or has even failed, which makes the domain name resolution of the user's local machine inefficient or unable to perform domain name resolution, which affects the user's Internet access speed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for choosing DNS (domain name server)
  • Method and device for choosing DNS (domain name server)
  • Method and device for choosing DNS (domain name server)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] refer to figure 1 , shows a flowchart of steps of a method for selecting a DNS server according to an embodiment of the present invention, the method for selecting a DNS server may specifically include the following steps:

[0036] Step S101, determining N DNS servers to be selected, wherein N is a natural number greater than or equal to 2.

[0037] Step S102, sending domain name resolution requests to the N DNS servers to be selected, and obtaining the response time of the N DNS servers to the domain name resolution requests and the resolved IP addresses of the preset domain names carried in the domain name resolution requests.

[0038] Step S103, connect to the IP addresses resolved by the N DNS servers, and obtain the IP response time of the connected IP addresses.

[0039] In the specific implementation, because some sites have multiple servers, and different servers correspond to different IP addresses, different DNS servers may resolve different IP addresses for ...

Embodiment 2

[0043] refer to figure 2 , shows a flowchart of steps of a method for selecting a DNS server according to an embodiment of the present invention, the method for selecting a DNS server may specifically include the following steps:

[0044] Step S201, network detection and repair.

[0045] In a specific implementation, the network detection and repair in step S201 may include one or more of the following three methods:

[0046] Method 1: Detect and repair the validity of the currently used DNS server.

[0047] The DNS server currently used by the user includes a preferred DNS server and an alternate DNS server, wherein the alternate server can be set to be different from the preferred server, the same, or not set. Once the preferred DNS server fails to perform domain name resolution, the backup DNS server will perform domain name resolution.

[0048] In a specific implementation, detecting the validity of the currently used DNS service is to detect whether there is a DNS hij...

Embodiment 3

[0098] refer to image 3 , shows a flowchart of steps of a method for selecting a DNS server according to an embodiment of the present invention, the method for selecting a DNS server may specifically include the following steps:

[0099] Step S301, detecting the validity of the currently used DNS server.

[0100] Specifically, the following sub-steps are included:

[0101] Sub-step S51, clearing the DNS cache.

[0102] In sub-step S52, www.hao.360.cn and www.so.com are preset as detection domain names, and http: / / www.so.com is requested.

[0103] In sub-step S53, it is determined whether the currently used DNS server is valid according to the request result, and corresponding processing is performed.

[0104] include:

[0105] If the request fails, it is determined that the currently used preferred and alternate DNS servers are invalid, and the currently used DNS server is modified to a legal DNS server, for example, the currently used preferred DNS server is modified to ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a device for choosing a DNS (domain name server). The method includes determining N DNSs to be chosen from, wherein N is a natural number larger than or equal to 2; sending a domain name analysis request to the N DNSs, and acquiring response time, to the domain name analysis request, of the N DNSs and IP (internet protocol) addresses which are acquired by analyzing a preset domain name carried in the domain name analysis request respectively; connecting the IP addresses acquired through analysis by the N DNSs, and acquiring IP response time of connection of the IP addresses; according to the response time, of each DNS, to the domain name analysis request and each corresponding IP response time, choosing the DNS from the N DNSs to be chosen from, and using the chosen DNS for domain name analysis. By the method and the device, user domain name analysis efficiency and safety are improved.

Description

technical field [0001] The present invention relates to the technical field of domain name resolution, in particular to a method for selecting a DNS (Domain Name System, domain name system) server, and a device for selecting a DNS server. Background technique [0002] A DNS server refers to a server that saves the domain names and corresponding IP addresses of all hosts in the network and has the function of converting domain names to IP addresses. The process of mapping a domain name to an IP address is called "domain name resolution". The DNS protocol mainly completes domain name resolution, that is, the process of mapping a domain name to an IP address. [0003] In many network environments (such as residential broadband), the DNS server of the user is often dynamically set to the DNS server of the operator. The domain name resolution efficiency of these DNS servers may be low, or there may be DNS hijacking problems. For example, the user wants to visit hao.360 .cn, but ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12H04L29/06
Inventor 丁振刘海军
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products