CACHING RESPONSES FOR SCOPED AND NON-SCOPED DOMAIN NAME SYSTEM QUERIES
First Claim
1. A method for domain name resolution in an electronic device with a plurality of network interfaces, comprising:
- in the electronic device,receiving a scoped request from an application to determine an IP address for a domain name, wherein the scoped request comprises an indication that a DNS query generated from the scoped request is to transmitted only on network interfaces specified in the scoped request, and wherein a non-scoped request comprises an indication that a DNS query generated from the non-scoped request can be transmitted on any of the network interfaces;
generating a DNS query from the scoped request and transmitting the DNS query only on the network interfaces specified in the scoped request; and
upon receiving a response to the DNS query,forwarding the response to the application; and
storing a record of the response in a scoped portion of a DNS resolution cache that is used only for storing responses to scoped requests, wherein a non-scoped portion of the DNS resolution cache is used only for storing responses to non-scoped requests.
1 Assignment
0 Petitions
Accused Products
Abstract
In the described embodiments, while executing a DNS resolver, a processing subsystem in an electronic device with a set of network interfaces receives a scoped request from an application to determine an IP address for a domain name. Generally, a DNS query generated from a scoped request is to be transmitted only on network interfaces specified in the scoped request, whereas a DNS query generated from a non-scoped request can be transmitted on any of the network interfaces. The processing subsystem then generates a DNS query from the scoped request and transmits the DNS query on the specified network interfaces. Upon receiving a response to the DNS query, the processing subsystem stores a record of the response in a scoped portion of a DNS resolution cache that is used only for storing responses to scoped requests. The DNS resolution cache also comprises a non-scoped portion that is used only for storing responses to non-scoped requests.
-
Citations
23 Claims
-
1. A method for domain name resolution in an electronic device with a plurality of network interfaces, comprising:
in the electronic device, receiving a scoped request from an application to determine an IP address for a domain name, wherein the scoped request comprises an indication that a DNS query generated from the scoped request is to transmitted only on network interfaces specified in the scoped request, and wherein a non-scoped request comprises an indication that a DNS query generated from the non-scoped request can be transmitted on any of the network interfaces; generating a DNS query from the scoped request and transmitting the DNS query only on the network interfaces specified in the scoped request; and upon receiving a response to the DNS query, forwarding the response to the application; and storing a record of the response in a scoped portion of a DNS resolution cache that is used only for storing responses to scoped requests, wherein a non-scoped portion of the DNS resolution cache is used only for storing responses to non-scoped requests. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
8. An apparatus, comprising:
-
a DNS resolution cache, wherein the DNS resolution cache comprises a memory for caching records of responses to DNS queries; a scoped portion in the DNS resolution cache, wherein the scoped portion is used for caching records of responses to scoped DNS queries; and a non-scoped portion in the DNS resolution cache, wherein the non-scoped portion is used for caching records of responses to non-scoped DNS queries. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. An electronic device, comprising:
-
a processing subsystem, wherein the processing subsystem performs computational operations for the electronic device; a networking subsystem coupled to the processing subsystem, wherein the networking subsystem comprises a plurality of network interfaces; and a DNS resolution cache coupled to the networking subsystem, wherein the DNS resolution cache comprises; a scoped portion that is used to cache responses for scoped requests to determine an IP address for a domain name, wherein a scoped request comprises an indication that a DNS query generated from the scoped request is to transmitted only on network interfaces specified in the scoped request; and a non-scoped portion that is used to cache responses from non-scoped requests to determine an IP address for a domain name, wherein a non-scoped request comprises an indication that a DNS query generated from the non-scoped request is to transmitted on any of the network interfaces. - View Dependent Claims (16)
-
-
17. A computer-readable storage medium storing computer program instructions that, when executed by a processing subsystem, cause the processing subsystem to perform a method for domain name resolution in an electronic device with a plurality of network interfaces, the method comprising:
-
receiving a scoped request from an application to determine an IP address for a domain name, wherein the scoped request comprises an indication that a DNS query generated from the scoped request is to transmitted only on network interfaces specified in the scoped request, and wherein a non-scoped request comprises an indication that a DNS query generated from the non-scoped request can be transmitted on any of the network interfaces; generating a DNS query from the scoped request and transmitting the DNS query only on the network interfaces specified in the scoped request; and upon receiving a response to the DNS query, forwarding the response to the application; and storing a record of the response in a scoped portion of a DNS resolution cache that is used only for storing responses to scoped requests, wherein a non-scoped portion of the DNS resolution cache is used only for storing responses to non-scoped requests. - View Dependent Claims (18, 19, 20, 21, 22, 23)
-
Specification