A client pointed out today that he couldn't set his rDNS record and it turns out it's because of the IPv6 formatting PHP does. For this thread here's the example IPv6 address I'm using: 1111:0001:0000:0003:0004:0005:0006:0007
Part A of my question is are both of these formats considered valid?
<?php
$ip = inet_ntop(inet_pton('1111:0001:0000:0003:0004:0005:0006:0007'));
echo $ip;
?>I'm surprised this is the first time this problem has cropped up but any help is appreciated. Thanks!
Part A of my question is are both of these formats considered valid?
- 1111:1:0:3:4:5:6:7
- 1111:1::3:4:5:6:7
<?php
$ip = inet_ntop(inet_pton('1111:0001:0000:0003:0004:0005:0006:0007'));
echo $ip;
?>I'm surprised this is the first time this problem has cropped up but any help is appreciated. Thanks!
Last edited by a moderator: