2

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) ?

1
  • 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, 2013 at 11:55

2 Answers 2

2

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.
-2

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.

3
  • 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. Jul 24, 2013 at 11:39
  • Hence why I said 'sort of possible'
    – Ash King
    Jul 24, 2013 at 11:42
  • @AshKing - If you knew that you should explain that point in detail.
    – Ramhound
    Jul 24, 2013 at 11:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .