摘要 |
The disclosure provides an apparatus for achieving the function of DNS resolution agent, a Domain Name System (DNS) server list adjusting unit in the apparatus is configured to, when no request response is received from a DNS server in a waiting time, reduce the priority of the DNS server to the lowest level in a DNS server list. The disclosure also provides a method for achieving the function of DNS resolution agent, the method includes the following steps: when a DNS request is not a repeated request, a DNS request message is sent to DNS servers in a DNS server list in turn according to a fixed time interval; when a valid request response is received in a waiting time, the request response is delivered to a DNS requester; when no request response is received from the DNS server in the waiting time, the priority of the DNS server is reduced to the lowest level in the DNS server list. With the disclosure, a DNS request from a device attached to a home gateway can be responded accurately and speedily and the DNS resolution efficiency can be increased significantly. |