[ofa-general] mapping IP addresses to GIDs across IP subnets

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Wed Apr 30 14:30:51 PDT 2008


On Thu, May 01, 2008 at 06:59:47AM +1000, Max Matveev wrote:
> IB GID has the same format as IPv6 address, IPv6 addresses are
> resolvable via DNS' AAAA or A6 records, you can go from IPv4 to name
> to IPv6 address without reinventing the wheel.

Well, you can't just assume that a AAAA record associated with the
reverse of a IPv4 is a GID - it could be a legitimate IPv6 address.
The GID space and IPv6 space are completely distinct, despite the same
format of the address.

The only way I could see to do this with DNS is to introduce a new
record type for GIDs..

Alternatively, you could use DNS to manage a mapping table, ala the
reverse map:

1.0.0.10.ipv4.ibta-addr. AAAA fd83:609c:bdc8:1:213:72ff:fe29:e65d

Jason



More information about the general mailing list