add ipv6 support for GetRecord
fix function naming