How could I create a small script in C to test this function ?
Do you have MS Visual Studio? With that you should be able to come up with a simple C# console app.
But maybe try PowerShell first. Not sure if that yields the same results really:PS > $o = [System.Net.Dns]::GetHostAddresses("domain.tld") PS > $o Address : 2014353xx AddressFamily : InterNetwork ScopeId : IsIPv6Multicast : False IsIPv6LinkLocal : False IsIPv6SiteLocal : False IsIPv6Teredo : False IsIPv4MappedToIPv6 : False IPAddressToString : 192.168.1.x