Patent ID: 11895215
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 5:
6. An application server access method, wherein the method comprises:
receiving, by a terminal, a first operation of a user, wherein the first operation indicates to access a first domain name;
sending, by the terminal, a first domain name resolution request to a domain name system server in response to receiving the first operation of the user, wherein the first domain name resolution request is used to request an IPv4 address and an IPv6 address corresponding to the first domain name;
sending, by the terminal, a first connection request to an application server, wherein the first connection request comprises the IPv6 address corresponding to the first domain name;
in response to determining that connection to the application server by using the IPv6 address fails, setting, by the terminal, the first domain name corresponding to the IPv6 address to restricted information;
receiving, by the terminal, a second operation of the user, wherein the second operation indicates to re-access the first domain name;
sending, by the terminal, a second connection request to the application server in response to receiving the second operation of the user, wherein the second connection request comprises the IPv4 address corresponding to the first domain name; and
in response to determining that air-interface communication of the terminal is normal and determining that a retransmission timer comprises an IPv6-type socket, a status of the IPv6-type socket is a preset state, and a quantity of retransmission times of the first connection request is greater than a preset quantity of times, determining, by the terminal, that the connection to the application server by using the IPv6 address fails.