I am working on a project for discovering IPv6 host over the internet and I have a question. Is there any way that I can send a request to an IPv4 address and return me back their IPv6 address (if it has any) ?

  • There is no direct translation from IPv6 to IPv4. Any translation would only be visible to the NAT device itself assigning the addresses. As Grawity explains you can prefix an IPv4 address but the resulting address is NOT an actual IPv6 address. – Ramhound Jul 24 '13 at 11:55
up vote 2 down vote accepted

You could:

  • take the IP4 address and do a reverse lookup. This gives you a hostname.
  • look for AAAA records for that hostname. That will give you an IP6 address.

It is sort of possible, look at this link:

https://www.ultratools.com/tools/ipv4toipv6

If you know the ipv4 address already you can convert it from there, whether you can integrate this into your project I dunno, depends on what your coding in.

  • The "conversion" is useless, as it only converts to "IPv4-mapped" address notation (which could be done by just prefixing the IPv4 address with ::ffff:); the "mapped" addresses still are IPv4 addresses and cannot be used to communicate over an IPv6 network. See RFC 4291 and RFC 4038 for why they exist at all. – grawity Jul 24 '13 at 11:39
  • Hence why I said 'sort of possible' – Ash King Jul 24 '13 at 11:42
  • @AshKing - If you knew that you should explain that point in detail. – Ramhound Jul 24 '13 at 11:55

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.