Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for application to query IP address and communication terminal

A technology of IP address and application program, which is applied in the field of communication, can solve the problems of not being able to obtain an IP address and refuse TCP connections, etc., and achieve the effect of improving the probability of successful IP address query

Active Publication Date: 2017-03-01
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the prior art, many DNS servers will reject TCP connections
When UDP and TCP are used to obtain the IP address from the DNS server, the application program of the DNS client will query the secondary DNS server through TCP in order to obtain the IP address. In the prior art, the query through TCP The secondary DNS server will not query successfully, and thus cannot obtain the IP address

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 for application to query IP address and communication terminal
  • Method for application to query IP address and communication terminal
  • Method for application to query IP address and communication terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Apparently, the described embodiments are some, not all, embodiments of the present invention. Based on the implementation manners in the present invention, all other implementation manners obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0050] It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that ...

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 present invention provides a method for an application to query an IP address and a communication terminal. The method for the application to query an IP address includes the following steps that: the application sends query information to a DNS (domain name system) server to query the IP address of a host name of a website through using a UDP (user datagram protocol); a DNS response packet sent by the DNS server in response to the query information is received; whether the DNS response packet is truncated is judged; when the DNS response packet is truncated, a TCP (transmission control protocol) is utilized to try to connect the DNS server; whether the connection to the DNS server by using the TCP is successful is judged; when the connection to the DNS server by using the TCP fails, the UDP is utilized to try to connect an auxiliary DNS server; whether the connection to the auxiliary DNS server by using the UDP is successful is judged; and when the connection to the auxiliary DNS server by using the UDP succeeds, the IP address is returned to the application. With the method adopted, the success probability of IP address query can be improved.

Description

technical field [0001] The invention relates to the communication field, in particular to a method for an application program to query an IP address and a communication terminal. Background technique [0002] Domain Name System (Domain Name System, DNS) uses User Datagram Protocol (User Datagram Protocol, UDP) to transmit by default. Now each website often uses multiple servers for load balancing, and the hostname (Hostname) of this website corresponds to an IP address. When an application program installed on a DNS client (for example, an Android mobile phone) needs to query the IP address of a website host name, a recursive query method is usually used. At this time, the DNS answer (answer) packet sent by the DNS server in response to the recursive query is relatively large, thus easily exceeding the carrying capacity of the UDP. When the DNS response packet exceeds 512 bytes, the excess part will be truncated. When the DNS client receives the truncated DNS response pac...

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/12
CPCH04L61/4511
Inventor 王伟
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD