Apple DNS name which has only IPv4 addresses
Hello Apple team,
Our servers does not support IPv6 addresses. When we are sending the push notifications, if it is IPv4 address, it is working and when when it is IPv6 address, we are getting below exception.
Caused by: io.netty.channel.AbstractChannel$AnnotatedSocketException: Network is unreachable: api.push.apple.com/2620:149:208:430d:0:0:0:a:443
Caused by: java.net.SocketException: Network is unreachable
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:481)
at sun.nio.ch.Net.connect(Net.java:473)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:662)
at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:91)
at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:88)
at java.security.AccessController.doPrivileged(AccessController.java:746)
at io.netty.util.internal.SocketUtils.connect(SocketUtils.java:88)
at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:315)
Can we get DNS name which has only IPv4 addresses so that we can add allow communication to only those DNS.
Please let us know.
Thanks.