The invention discloses
a domain name resolution method and device oriented to multiple network planes, and belongs to the technical field of
domain name resolution. A service sends
a domain name resolution request to
a domain name resolution service; after receiving the request, the
domain name resolution service checks whether a corresponding address in a validity period is stored in an equipment cache according to a resolution type; and when the analysis type is A and AAAA types, if the IPv6 address exists in the cache, returning the address to the service, and if the IPv4 address exists in the cache, returning the IPv6 address inquired by the DNS
server to the service or returning the IPv4 address in the cache to the service when the IPv6 address is still not inquired in an overtime state. According to the method and the device, each service of the
terminal equipment can customize the resolution type and the
timeout duration according to own requirements, whether the corresponding IP exists in the cache of the equipment or not is inquired before
polling the DNS
server, the IP in the cache is directly returned when the target IP is not polled in a short time, the
domain name resolution efficiency is optimized, and the user experience is improved.