Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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.
share|improve this answer

It is sort of possible, look at this link:

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.

share|improve this answer
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

You must log in to answer this question.

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