Hi all,
Im currently fased with a issue that i can't seem to figure out.
The server is by default installed with ipv6 and added ipv6 after install added ipv6 addresses true direct admin interface all working fine.
All ipv4 and ipv6 ip addresses are working fine but the issue that i have is many procces are by default using the ipv6 address for outgoing connection instead of the ipv4 address.
Im now having troubles querrying whois servers as many do not support ipv6 yet.
For example when i use the following in a php script on the server
It won't give me a any result becouse it can't connect as the whois server aint ipv6 ready this is not only with whois.eu but many more.
I have also seen that exim will use the ipv6 address for outbound e-mail.
How can you force the use of the ipv4 address on the box without disableing ipv6 ?
Im currently fased with a issue that i can't seem to figure out.
The server is by default installed with ipv6 and added ipv6 after install added ipv6 addresses true direct admin interface all working fine.
All ipv4 and ipv6 ip addresses are working fine but the issue that i have is many procces are by default using the ipv6 address for outgoing connection instead of the ipv4 address.
Im now having troubles querrying whois servers as many do not support ipv6 yet.
For example when i use the following in a php script on the server
PHP:
$fulldomain = 'domain.com';
$ns = @fsockopen('whois.eu',43);
if($ns){
if($_POST['tld'] == "nl"){
fputs($ns,"is $fulldomain\r\n");
}else{
fputs($ns,"$fulldomain\r\n");
}
$result = '';
while(!feof($ns))
$result .= fgets($ns,128);
fclose($ns);
It won't give me a any result becouse it can't connect as the whois server aint ipv6 ready this is not only with whois.eu but many more.
I have also seen that exim will use the ipv6 address for outbound e-mail.
How can you force the use of the ipv4 address on the box without disableing ipv6 ?