WO2017166524A1 - 域名解析方法及装置 - Google Patents
域名解析方法及装置 Download PDFInfo
- Publication number
- WO2017166524A1 WO2017166524A1 PCT/CN2016/089538 CN2016089538W WO2017166524A1 WO 2017166524 A1 WO2017166524 A1 WO 2017166524A1 CN 2016089538 W CN2016089538 W CN 2016089538W WO 2017166524 A1 WO2017166524 A1 WO 2017166524A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- domain name
- server
- load
- terminal device
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
Definitions
- the present patent application relates to Internet technologies, and in particular, to a domain name resolution method and apparatus.
- the Domain Name System is the basic protocol of the Internet to translate the Internet Protocol (IP) addresses between domain names and networks.
- the DNS server has the following two functions: one is to save the domain name and corresponding IP address of all hosts in the network; the other is to convert the domain name into an IP address.
- the process of mapping a domain name to an IP address is called "domain name resolution.”
- a domain name can correspond to one or more IP addresses.
- the browser sends the domain name to the default DNS server.
- the DNS server resolves the domain name to get the IP address.
- domain names (such as www.le.com) mostly correspond to multiple IP addresses, and any one of the multiple IP addresses can be selected and returned to the user, so that the user can access the corresponding server through the IP address.
- the server corresponding to the IP address returned to the user is currently heavily loaded, the server response will be slow, and accordingly, the terminal device accesses the network at a slower speed, which reduces the user's network experience.
- the object of the present invention is to provide a domain name resolution method and device, so as to improve the speed at which the terminal device accesses the network when the terminal device sends the domain name resolution request, and the IP address of the server with the least load is fed back to the terminal device. To enhance the user's web experience.
- a domain name resolution method including: receiving a domain name resolution request sent by a terminal device; obtaining domain name information from the domain name resolution request, and acquiring An IP address of the plurality of servers corresponding to the domain name information; selecting a server with the least load among the plurality of servers; and transmitting an IP address of the server with the least load to the terminal device, so that the terminal device accesses the device The server with the least load.
- the processing of selecting the least loaded server among the plurality of servers comprises: respectively acquiring the load of the plurality of servers from a predetermined monitoring server; and selecting the server with the least load.
- the amount of load is obtained by at least one of a download speed, a number of connections of the terminal, and a duration of download response.
- a domain name resolution apparatus including: a request receiving module, configured to receive a domain name resolution request sent by a terminal device; and a domain name and address obtaining module, configured to obtain a domain name from the domain name resolution request And obtaining an IP address of the plurality of servers corresponding to the domain name information; a server selection module, configured to select a server with the least load among the plurality of servers; and an address sending module, configured to use an IP of the server with the least load An address is sent to the terminal device to enable the terminal device to access the server with the least load.
- the server selection module includes:
- a load acquiring unit configured to separately acquire load amounts of the multiple servers from a predetermined monitoring server
- Server pick-up unit for selecting the server with the least load.
- the amount of load is obtained by at least one of a download speed, a number of connections of the terminal, and a duration of download response.
- the method and device for resolving a domain name by receiving a domain name resolution request sent by a terminal device, further obtaining domain name information from a domain name resolution request, and acquiring IP addresses of multiple servers corresponding to the domain name information, and selecting the plurality of servers
- the server with the least load in the server implements the feedback of the IP address of the server with the least load to the terminal device, thereby improving the speed at which the terminal device accesses the network and improving the network experience of the user.
- FIG. 1 is a flowchart showing a domain name resolution method according to Embodiment 1 of the present invention.
- FIG. 2 is a flowchart showing a domain name parsing method according to Embodiment 2 of the present invention
- FIG. 3 is a logic block diagram showing a domain name resolution apparatus according to Embodiment 3 of the present invention.
- FIG. 4 is a logic block diagram showing a domain name resolution apparatus according to a fourth embodiment of the present invention.
- a basic idea of some embodiments of the present invention is to provide a technical solution for domain name resolution. Specifically, first, the domain name resolution request sent by the terminal device is received; secondly, the domain name information is obtained from the domain name resolution request, and the IP addresses of the plurality of servers corresponding to the domain name information are obtained, and the least load is selected from the obtained multiple servers.
- the server realizes the feedback of the IP address of the server with the least load to the terminal device, thereby providing a fast and smooth network environment for the terminal device, thereby improving the user's network experience.
- FIG. 1 is a flowchart showing a domain name resolution method according to Embodiment 1 of the present invention. This method can be performed, for example, on a DNS server.
- step S110 a domain name resolution request sent by a terminal device is received.
- the domain name of the website to be accessed for example, www.le.com
- the user first sends a domain name resolution request to the DNS server through the terminal device, and the domain name resolution request is used to parse the domain name through the DNS server.
- step S120 the domain name information is obtained from the domain name resolution request, and the IP addresses of the plurality of servers corresponding to the domain name information are obtained.
- the domain name of the domain name resolution request may be detected in the DNS cache, that is, the DNS cache search is performed, and the record of the domain name is searched from the cache. If the domain name of the domain name resolution request does not exist in the DNS cache, the domain name of the domain name resolution request is parsed by the DNS server. Of course, after receiving the domain name resolution request, the domain name of the domain name resolution request can be directly parsed through the DNS server, thereby obtaining the IP addresses of the multiple servers. If there is a record of the domain name of the domain name resolution request in the DNS cache, the IP address corresponding to the domain name is stored in the DNS cache. Here, the IP address may be plural. Then you can get the IP addresses of multiple servers directly from the DNS cache.
- step S130 the server with the least load among the plurality of servers is selected.
- the IP addresses of the foregoing multiple servers include two IP addresses 1.1.1.1 and 1.1.1.2, wherein the server with the IP address of 1.1.1.1 has the least current load, then 1.1.1.1 is the most selected by the DNS server. Excellent result, that is, the server with the least load.
- step S140 the IP address of the least loaded server is sent to the terminal device, so that the terminal device accesses the least loaded server.
- the method for parsing the domain name provided by the embodiment of the present invention further obtains the domain name information from the domain name resolution request by acquiring the domain name resolution request sent by the terminal device, and obtains the IP addresses of the plurality of servers corresponding to the domain name information, and selects the load of the multiple servers.
- the least number of servers implements the feedback of the IP address of the server with the least load to the terminal device, thereby improving the speed at which the terminal device accesses the network and improving the user's network experience.
- FIG. 2 is a flowchart showing a domain name parsing method according to Embodiment 2 of the present invention, which may be regarded as another specific implementation scheme of FIG. 1. This method can be performed on the domain name resolution device as shown in FIG.
- step S210 a domain name resolution request sent by the terminal device is received.
- step S220 the domain name information is obtained from the domain name resolution request, and the IP addresses of the plurality of servers corresponding to the domain name information are obtained.
- the steps S210 and S220 are the same as the processing of the steps S110 and S120 in the first embodiment. For details, refer to the steps of the steps S110 and S120, and details are not described herein.
- the steps S230 and S240 may be the refinement of the step 130 in the first embodiment, as follows:
- step S230 the load amounts of the plurality of servers are respectively acquired from predetermined monitoring servers.
- a dedicated monitoring server may be preset, and a preset monitoring server periodically sends a load status request message to each server, and each server returns information of each current load amount to the monitoring server.
- the above processing can also be done by the DNS server itself. If it is a preset monitoring server, the DNS server is required to obtain information about the load of each server from the monitoring server. The server with the least load is selected according to the information of the load of each server to provide network services for the user. In addition, you can also store each of the above The amount of load on the server, and the amount of stored storage is updated based on feedback from each server in each cycle.
- the foregoing load amount may be obtained by at least one of a download speed, a connection number of the terminal, and a download response duration, but is not limited thereto.
- the load amount of each server can be determined according to data such as the number of connections of the terminal, the download response time, the download speed, and the like that can reflect the load status of the server.
- step S240 the server with the least load is selected.
- each server After obtaining the load of each of the above servers, each server can be sorted according to the load, and the server with the least load can be selected.
- step S250 the IP address of the least loaded server is sent to the terminal device, so that the terminal device accesses the least loaded server.
- step S250 is the same as the processing of the step S140 in the first embodiment.
- steps in the above S140 are not described herein again.
- the load of the plurality of servers is obtained through the predetermined monitoring server, thereby providing a judgment basis for selecting the server with the least load, and the IP address of the server with the least load is more conveniently and quickly sent to the terminal device. Therefore, the terminal device accesses the network through the server with the least load, which greatly improves the speed of accessing the network and improves the network experience of the user;
- the multi-dimensional data reflecting the load status of the server obtains the load of the server, thereby accurately selecting the server with the least load.
- FIG. 3 is a logic block diagram showing a domain name resolution apparatus according to a third embodiment of the present invention.
- the domain name resolution method flow as described in the first embodiment can be performed.
- the domain name resolution device includes a request receiving module 310, a domain name and address obtaining module 320, a server selecting module 330, and an address sending module 340.
- the request receiving module 310 is configured to receive a domain name resolution request sent by the terminal device.
- the domain name and address obtaining module 320 is configured to obtain domain name information from the domain name resolution request, and obtain an IP address of multiple servers corresponding to the domain name information.
- the server selection module 330 is configured to select a server with the least load among the plurality of servers.
- the address sending module 340 is configured to send an IP address of the server with the least load to the terminal device, so that the terminal device accesses the server with the least load.
- the domain name resolution device provided by the embodiment of the present invention further obtains the domain name information from the domain name resolution request by acquiring the domain name resolution request sent by the terminal device, and obtains the IP addresses of the plurality of servers corresponding to the domain name information, and selects the multiple servers.
- the server with the least load implements the feedback of the IP address of the server with the least load to the terminal device, thereby improving the speed at which the terminal device accesses the network and improving the network experience of the user.
- FIG. 4 is a logic block diagram showing a domain name resolution apparatus according to Embodiment 4 of the present invention.
- the domain name resolution method flow as described in the second embodiment can be performed.
- the server selection module 330 may specifically include:
- the load amount obtaining unit 3301 is configured to separately acquire the load amounts of the plurality of servers from a predetermined monitoring server.
- the server selection unit 3302 is used to select the server with the least load.
- the load amount is obtained by at least one of a download speed, a connection number of the terminal, and a download response duration.
- the load of the plurality of servers is obtained through the predetermined monitoring server, thereby providing a judgment basis for selecting the server with the least load, and transmitting the IP address of the server with the least load to the terminal device more conveniently and quickly. Therefore, the terminal device accesses the network through the server with the least load, which greatly improves the speed of accessing the network and improves the network experience of the user;
- the multi-dimensional data reflecting the load status of the server obtains the load of the server, thereby accurately selecting the server with the least load.
- the above method according to the present invention can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or can be downloaded through a network.
- a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or can be downloaded through a network.
- the computer code originally stored in a remote recording medium or non-transitory machine readable medium and to be stored in a local recording medium, whereby the methods described herein can be stored using a general purpose computer, a dedicated processor, or programmable or dedicated Such software processing on a recording medium of hardware such as an ASIC or an FPGA.
- a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, when the software or computer code is The processing methods described herein are implemented when the processor or hardware is accessed and executed. Moreover, when a general purpose computer accesses code for implementing the processing shown herein, the execution of the code converts the general purpose computer into a special purpose computer for performing the processing shown herein.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明一个实施例提供一种域名解析方法及装置,其中,域名解析方法包括:接收终端设备发送的域名解析请求;从所述域名解析请求中获取域名信息,并获取所述域名信息对应的多个服务器的IP地址;选取所述多个服务器当中负载最少的服务器;将所述负载最少的服务器的IP地址发送至所述终端设备,以使所述终端设备访问所述负载最少的服务器。本发明部分实施例的域名解析方法及装置,实现了在终端设备发送域名解析请求时,将负载最少的服务器的IP地址反馈给终端设备,从而提高了终端设备访问网络的速度,提升了用户的网络体验。
Description
本申请要求于2016年03月31日提交中国专利局、申请号为201610202667.9的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本专利申请涉及互联网技术,尤其涉及一种域名解析方法及装置。
域名系统(Domain Name System,DNS)是Internet的基础协议,用以完成域名到网络之间互联的协议(Internet Protocol,IP)地址的翻译工作。DNS服务器具有以下两种功能:一是保存有该网络中所有主机的域名和对应IP地址;二是将域名转换为IP地址。其中,将域名映射为IP地址的过程就称为“域名解析”。一个域名可对应一个或多个IP地址。
通常,用户在浏览器的地址栏输入某网站的域名时,浏览器就将该域名发送给预设的DNS服务器。DNS服务器解析该域名得到IP地址。对于一些大型网站的域名(如www.le.com)大多对应多个IP地址,可从这多个IP地址中任意选取一个IP地址返回给用户,以使用户通过该IP地址访问相应的服务器。然而,如果返回给用户的IP地址对应的服务器当前负载较重,势必会使得服务器响应缓慢,相应地,终端设备访问网络的速度也较慢,降低了用户的网络体验。
发明内容
本发明部分实施例的目的在于,提供一种域名解析方法及装置,以实现在终端设备发送域名解析请求时,将负载最少的服务器的IP地址反馈给终端设备,从而提高终端设备访问网络的速度,提升用户的网络体验。
根据本发明的一方面,提供一种域名解析方法,包括:接收终端设备发送的域名解析请求;从所述域名解析请求中获取域名信息,并获取
所述域名信息对应的多个服务器的IP地址;选取所述多个服务器当中负载最少的服务器;将所述负载最少的服务器的IP地址发送至所述终端设备,以使所述终端设备访问所述负载最少的服务器。
在一个实施例中,所述选取所述多个服务器当中负载最少的服务器的处理包括:从预定的监控服务器分别获取所述多个服务器的负载量;选取负载最少的服务器。
在一个实施例中,所述负载量通过下载速度、终端的连接数量以及下载响应时长中的至少一个获得。
根据本发明的另一方面,还提供一种域名解析装置,包括:请求接收模块,用于接收终端设备发送的域名解析请求;域名及地址获取模块,用于从所述域名解析请求中获取域名信息,并获取所述域名信息对应的多个服务器的IP地址;服务器选取模块,用于选取所述多个服务器当中负载最少的服务器;地址发送模块,用于将所述负载最少的服务器的IP地址发送至所述终端设备,以使所述终端设备访问所述负载最少的服务器。
在一个实施例中,所述服务器选取模块包括:
负载量获取单元,用于从预定的监控服务器分别获取所述多个服务器的负载量;
服务器选取单元,用于选取负载最少的服务器。
在一个实施例中,所述负载量通过下载速度、终端的连接数量以及下载响应时长中的至少一个获得。
根据本发明部分实施例提供的域名解析方法及装置,通过接收终端设备发送的域名解析请求,进一步从域名解析请求中获取域名信息,并获取域名信息对应的多个服务器的IP地址,选取这多个服务器中负载最少的服务器,实现了将负载最少的服务器的IP地址反馈给终端设备,从而提高了终端设备访问网络的速度,提升了用户的网络体验。
图1是示出根据本发明实施例一的域名解析方法的流程图;
图2是示出根据本发明实施例二的域名解析方法的流程图;
图3是示出根据本发明实施例三的域名解析装置的逻辑框图;
图4是示出根据本发明实施例四的域名解析装置的逻辑框图。
本发明部分实施例的基本构思是,提供一种域名解析的技术方案。具体来说,首先,接收终端设备发送的域名解析请求;其次,从域名解析请求中获取域名信息,并获取域名信息对应的多个服务器的IP地址,进一步从获取的多个服务器中选取负载最少的服务器,从而实现了将负载最少的服务器的IP地址反馈给终端设备,进而为终端设备提供了一个快速且顺畅的网络环境,提升了用户的网络体验。
下面结合附图详细描述本发明部分的示例性实施例域名解析方法及装置。
实施例一
图1是示出根据本发明实施例一的域名解析方法的流程图。可在例如DNS服务器上执行该方法。
参照图1,在步骤S110,接收终端设备发送的域名解析请求。
当用户通过终端设备访问网络时,需要输入待访问的网站的域名,例如www.le.com,才能够访问该网站的服务器。用户首先通过终端设备向DNS服务器发送域名解析请求,域名解析请求用于通过DNS服务器对域名进行解析。
在步骤S120,从所述域名解析请求中获取域名信息,并获取所述域名信息对应的多个服务器的IP地址。
在具体的实现方式中,接收到域名解析请求之后,可以先检测DNS缓存中是否存在域名解析请求的域名的记录,即执行DNS缓存查找,从缓存中查找该域名的记录。如果在DNS缓存中不存在该域名解析请求的域名的记录,则通过DNS服务器对域名解析请求的域名进行解析。当然,在接受到域名解析请求之后,也可以直接通过DNS服务器对域名解析请求的域名进行解析,从而得到多个服务器的IP地址。如果在DNS缓存中存在该域名解析请求的域名的记录,则在DNS缓存中存有该域名对应的IP地址。这里,该IP地址可以是多个。那么可直接从DNS缓存中获取多个服务器的IP地址。
在步骤S130,选取所述多个服务器当中负载最少的服务器。
举例来说,前述多个服务器的IP地址包括有1.1.1.1和1.1.1.2两个IP地址,其中,IP地址是1.1.1.1的服务器当前负载最少,那么,1.1.1.1就是DNS服务器选取的最优结果,即负载最少的服务器。
在步骤S140,将所述负载最少的服务器的IP地址发送至所述终端设备,以使所述终端设备访问所述负载最少的服务器。
本发明实施例提供的域名解析方法,通过接收终端设备发送的域名解析请求,进一步从域名解析请求中获取域名信息,并获取域名信息对应的多个服务器的IP地址,选取这多个服务器中负载最少的服务器,实现了将负载最少的服务器的IP地址反馈给终端设备,从而提高了终端设备访问网络的速度,提升了用户的网络体验。
实施例二
图2是示出根据本发明实施例二的域名解析方法的流程图,所述实施例可视为图1的又一种具体的实现方案。可在如图4所示的域名解析装置上执行该方法。
参照图2,在步骤S210,接收终端设备发送的域名解析请求。
在步骤S220,从所述域名解析请求中获取域名信息,并获取所述域名信息对应的多个服务器的IP地址。
这里,步骤S210和步骤S220分别与上述实施例一中步骤S110和步骤S120处理方式相同,具体可参见上述S110和S120的步骤内容,在此不再赘述。
其中,步骤S230和S240可以为上述实施例一中步骤130的细化,具体如下:
在步骤S230,从预定的监控服务器分别获取所述多个服务器的负载量。
在具体的实现方式中,可预先设定专门的监控服务器,由预设的监控服务器周期性地向各个服务器发送负载状态请求消息,各个服务器将各自当前的负载量的信息返回给监控服务器。上述处理还可由DNS服务器本身完成。如果是预设的监控服务器,则需要DNS服务器从监控服务器处获取各个服务器的负载量的信息。依据各个服务器的负载量的信息选择负载最少的服务器为用户提供网络服务。此外,还可存储上述各个
服务器的负载量,并根据各个服务器在每个周期的反馈更新存储的负载量。
需要说明的是,上述负载量可通过下载速度、终端的连接数量以及下载响应时长中的至少一个获得,但不限于此。举例来说,假设“下载响应时长(1.1.1.1)”=20s,“下载响应时长(1.1.1.2)=10s”,这里,下载响应时长越长,表明服务器的负担越重。再比如,“终端的连接数量(1.1.1.1)”=1000个,“终端的连接数量(1.1.1.2)=500个”,终端的连接数量越多,表明服务器的负担越重。因此,可依据如终端的连接数量、下载响应时长、下载速度等能够反映服务器的负载状态的数据,来确定各个服务器的负载量。
在步骤S240,选取负载最少的服务器。
在获得上述各个服务器的负载量之后,可根据负载量对各个服务器进行排序,从中选取负载最少的服务器。
在步骤S250:将所述负载最少的服务器的IP地址发送至所述终端设备,以使所述终端设备访问所述负载最少的服务器。
这里,步骤S250与上述实施例一中步骤S140处理方式相同,具体可参见上述S140的步骤内容,在此不再赘述。
本发明部分实施例提供的域名解析方法,具有如下技术效果:
一方面,通过预定的监控服务器获取多个服务器的负载量,从而为选取负载最少的服务器提供判断依据,更加方便、快捷地将负载最少的服务器的IP地址发送给终端设备。从而终端设备通过负载最少的服务器访问网络,极大地提高了访问网络的速度,提升了用户的网络体验;
另一方面,基于下载速度、终端的连接数量以及下载响应时长等,多维度的反映服务器的负载状态的数据获得服务器的负载量,从而准确地选取负载最少的服务器。
实施例三
基于相同的技术构思,图3是示出根据本发明实施例三的域名解析装置的逻辑框图。可用以执行如实施例一所述的域名解析方法流程。
参照图3,域名解析装置包括:请求接收模块310、域名及地址获取模块320、服务器选取模块330和地址发送模块340。
请求接收模块310用于接收终端设备发送的域名解析请求。
域名及地址获取模块320用于从所述域名解析请求中获取域名信息,并获取所述域名信息对应的多个服务器的IP地址。
服务器选取模块330用于选取所述多个服务器当中负载最少的服务器。
地址发送模块340用于将所述负载最少的服务器的IP地址发送至所述终端设备,以使所述终端设备访问所述负载最少的服务器。
本发明部分实施例提供的域名解析装置,通过接收终端设备发送的域名解析请求,进一步从域名解析请求中获取域名信息,并获取域名信息对应的多个服务器的IP地址,选取这多个服务器中负载最少的服务器,实现了将负载最少的服务器的IP地址反馈给终端设备,从而提高了终端设备访问网络的速度,提升了用户的网络体验。
实施例四
基于相同的技术构思,图4是示出根据本发明实施例四的域名解析装置的逻辑框图。可用以执行如实施例二所述的域名解析方法流程。
参照图4,服务器选取模块330可具体包括:
负载量获取单元3301用于从预定的监控服务器分别获取所述多个服务器的负载量。
服务器选取单元3302用于选取负载最少的服务器。
进一步地,所述负载量通过下载速度、终端的连接数量以及下载响应时长中的至少一个获得。
本发明部分实施例提供的域名解析装置,具有如下技术效果:
一是通过预定的监控服务器获取多个服务器的负载量,从而为选取负载最少的服务器提供判断依据,更加方便、快捷地将负载最少的服务器的IP地址发送给终端设备。从而终端设备通过负载最少的服务器访问网络,极大地提高了访问网络的速度,提升了用户的网络体验;
二是基于下载速度、终端的连接数量以及下载响应时长等,多维度的反映服务器的负载状态的数据获得服务器的负载量,从而准确地选取负载最少的服务器。
需要指出,根据实施的需要,可将本申请中描述的各个部件/步骤拆分为更多部件/步骤,也可将两个或多个部件/步骤或者部件/步骤的部分操作组合成新的部件/步骤,以实现本发明的目的。
上述根据本发明的方法可在硬件、固件中实现,或者被实现为可存储在记录介质(诸如CD ROM、RAM、软盘、硬盘或磁光盘)中的软件或计算机代码,或者被实现通过网络下载的原始存储在远程记录介质或非暂时机器可读介质中并将被存储在本地记录介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件(诸如ASIC或FPGA)的记录介质上的这样的软件处理。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件(例如,RAM、ROM、闪存等),当所述软件或计算机代码被计算机、处理器或硬件访问且执行时,实现在此描述的处理方法。此外,当通用计算机访问用于实现在此示出的处理的代码时,代码的执行将通用计算机转换为用于执行在此示出的处理的专用计算机。
以上所述,仅为本发明部分实施例的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。
Claims (6)
- 一种域名解析方法,包括:接收终端设备发送的域名解析请求;从所述域名解析请求中获取域名信息,并获取所述域名信息对应的多个服务器的IP地址;选取所述多个服务器当中负载最少的服务器;将所述负载最少的服务器的IP地址发送至所述终端设备,以使所述终端设备访问所述负载最少的服务器。
- 根据权利要求1所述的方法,其中,所述选取所述多个服务器当中负载最少的服务器的处理包括:从预定的监控服务器分别获取所述多个服务器的负载量;选取负载最少的服务器。
- 根据权利要求2所述的方法,其中,所述负载量通过下载速度、终端的连接数量以及下载响应时长中的至少一个获得。
- 一种域名解析装置,包括:请求接收模块,用于接收终端设备发送的域名解析请求;域名及地址获取模块,用于从所述域名解析请求中获取域名信息,并获取所述域名信息对应的多个服务器的IP地址;服务器选取模块,用于选取所述多个服务器当中负载最少的服务器;地址发送模块,用于将所述负载最少的服务器的IP地址发送至所述终端设备,以使所述终端设备访问所述负载最少的服务器。
- 根据权利要求4所述的装置,其中,所述服务器选取模块包括:负载量获取单元,用于从预定的监控服务器分别获取所述多个服务器的负载量;服务器选取单元,用于选取负载最少的服务器。
- 根据权利要求5所述的装置,其中,所述负载量通过下载速度、终端的连接数量以及下载响应时长中的至少一个获得。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/242,526 US20170289243A1 (en) | 2016-03-31 | 2016-08-21 | Domain name resolution method and electronic device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610202667.9 | 2016-03-31 | ||
| CN201610202667.9A CN105847462A (zh) | 2016-03-31 | 2016-03-31 | 域名解析方法及装置 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US15/242,526 Continuation US20170289243A1 (en) | 2016-03-31 | 2016-08-21 | Domain name resolution method and electronic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017166524A1 true WO2017166524A1 (zh) | 2017-10-05 |
Family
ID=56596588
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/089538 Ceased WO2017166524A1 (zh) | 2016-03-31 | 2016-07-10 | 域名解析方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105847462A (zh) |
| WO (1) | WO2017166524A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111064821A (zh) * | 2019-12-23 | 2020-04-24 | 北京达佳互联信息技术有限公司 | 边缘节点的ip地址的确定方法和装置 |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108011994B (zh) * | 2017-12-15 | 2022-03-01 | 网宿科技股份有限公司 | 一种查询dns记录的方法和系统 |
| CN108881506A (zh) * | 2018-06-04 | 2018-11-23 | 华为技术有限公司 | 一种基于多可用分区az的域名解析方法及装置 |
| CN115150359A (zh) | 2019-08-20 | 2022-10-04 | 华为技术有限公司 | 域名系统查询的方法和通信装置 |
| CN112486692A (zh) * | 2020-12-18 | 2021-03-12 | 深圳市潮流网络技术有限公司 | 服务器负载均衡方法和装置、负载信息处理方法和装置 |
| CN115225608A (zh) * | 2022-07-22 | 2022-10-21 | 济南浪潮数据技术有限公司 | 一种dns域名解析的负载均衡方法、装置、设备及介质 |
| CN115333927B (zh) * | 2022-07-29 | 2023-10-27 | 上海浦东发展银行股份有限公司 | 一种客户端域名切换方法、装置、电子设备和存储介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101115016A (zh) * | 2007-08-23 | 2008-01-30 | 创新科存储技术(深圳)有限公司 | 一种实现应用服务器负载均衡的方法及系统 |
| CN101710905A (zh) * | 2009-12-17 | 2010-05-19 | 中国联合网络通信集团有限公司 | 一种基于策略的地址解析控制方法与系统 |
| CN102316172A (zh) * | 2010-07-05 | 2012-01-11 | 中国电信股份有限公司 | 一种dns解析方法、系统和sag设备 |
| CN102457440A (zh) * | 2012-01-13 | 2012-05-16 | 华为软件技术有限公司 | 实现负载均衡的方法、dns服务器和客户端 |
| CN102523231A (zh) * | 2011-12-27 | 2012-06-27 | 北京蓝汛通信技术有限责任公司 | 一种基于dns解析的流量调度方法、装置及服务器 |
| US20140281032A1 (en) * | 2013-03-13 | 2014-09-18 | Google Inc. | Resolving a host expression to an internet protocol address |
-
2016
- 2016-03-31 CN CN201610202667.9A patent/CN105847462A/zh active Pending
- 2016-07-10 WO PCT/CN2016/089538 patent/WO2017166524A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101115016A (zh) * | 2007-08-23 | 2008-01-30 | 创新科存储技术(深圳)有限公司 | 一种实现应用服务器负载均衡的方法及系统 |
| CN101710905A (zh) * | 2009-12-17 | 2010-05-19 | 中国联合网络通信集团有限公司 | 一种基于策略的地址解析控制方法与系统 |
| CN102316172A (zh) * | 2010-07-05 | 2012-01-11 | 中国电信股份有限公司 | 一种dns解析方法、系统和sag设备 |
| CN102523231A (zh) * | 2011-12-27 | 2012-06-27 | 北京蓝汛通信技术有限责任公司 | 一种基于dns解析的流量调度方法、装置及服务器 |
| CN102457440A (zh) * | 2012-01-13 | 2012-05-16 | 华为软件技术有限公司 | 实现负载均衡的方法、dns服务器和客户端 |
| US20140281032A1 (en) * | 2013-03-13 | 2014-09-18 | Google Inc. | Resolving a host expression to an internet protocol address |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111064821A (zh) * | 2019-12-23 | 2020-04-24 | 北京达佳互联信息技术有限公司 | 边缘节点的ip地址的确定方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105847462A (zh) | 2016-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017166524A1 (zh) | 域名解析方法及装置 | |
| CN107395683B (zh) | 一种回源路径的选择方法及服务器 | |
| CN102077189B (zh) | 使用网络计算组件的请求路由 | |
| US9160703B2 (en) | Request routing management based on network components | |
| JP5893034B2 (ja) | ネットワーク環境における要求ルーティング | |
| CN101981572B (zh) | 请求路由 | |
| CN105516385B (zh) | 域名解析方法、服务器和系统 | |
| US20110320522A1 (en) | Context-specific network resource addressing model for distributed services | |
| CN106161669A (zh) | 一种快速域名解析方法和系统、及其终端和服务器 | |
| WO2013143403A1 (zh) | 一种访问网站的方法和系统 | |
| CN104158919A (zh) | 网页访问实现方法、服务器和客户端 | |
| WO2018112944A1 (zh) | 域名解析方法和装置 | |
| CN102739811B (zh) | 域名解析的方法和设备 | |
| CN102984286A (zh) | 一种dns服务器的缓存更新方法、装置及系统 | |
| CN108173979B (zh) | 一种报文处理方法、装置、设备及存储介质 | |
| CN106161667A (zh) | 一种域名解析方法及装置 | |
| CN106911735B (zh) | 数据获取方法及装置 | |
| CN109639748A (zh) | Dns服务器的缓存更新方法、装置、系统及域名系统 | |
| CN106210158B (zh) | 一种域名解析的同步方法和设备 | |
| CN106209486B (zh) | 域名解析生效的检测方法、浏览器、服务端和系统 | |
| US20160210366A1 (en) | Method and apparatus for providing media resource | |
| CN105704171A (zh) | 实现cdn访问的系统和方法 | |
| US10333966B2 (en) | Quarantining an internet protocol address | |
| CN103248707A (zh) | 文件访问方法、系统以及设备 | |
| CN113315852B (zh) | 一种域名解析的方法、装置及系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16896296 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16896296 Country of ref document: EP Kind code of ref document: A1 |