title: Is it possible to set getaddrinfo() to only retrieve IPV4 addresses by default?
body: <p>Php curl uses getaddrinfo() to resolve hostnames to IP addresses. By setting an option it is easy to make it lookup IPV4 addresses but that will take quite some doing and will be quite difficult to undo when we get IPv6 up and running properly on our networks. </p>
  
  <p>Is there any way to set getaddrinfo() to default to IPv4 lookups for our entire Ubuntu server? </p>
  
  <p>Thanks
  Wayne</p>