Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How would an application choose between IPv6 and IPv4 in an environment supporting both protocols?

0
Posted

How would an application choose between IPv6 and IPv4 in an environment supporting both protocols?

0

In IPv6/IPv4 dual environment, each application decides which protocol to use. If an application supports o­nly IPv4, this application communicates with IPv4, of course. Applications supporting both IPv4 and IPv6 are usually written so that they attempt to use IPv6 first, and it that fails, they try IPv4. For example, when you input an URL to a Web browser supporting two protocols, the browser sends DNS query to DNS, in order to find the IP address of the specified host. DNS returns either IPv4 address o­nly, IPv6 address o­nly, or both. Web browser tries to find IPv6 address from the DNS reply. If the browser finds IPv6 address, it accesses the destination host with IPv6 address. If not, IPv4 address is used. In this way, application usually makes the choice between two protocols transparent to user. But in some cases, users need be able to specify which protocol to use. Some applications are designed so that users can configure IP version.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.