Revert "Disabled IPv6 in an IPv4 database test."

This reverts commit 7302eaa2d92772011758b5f3bd3e4fe4a5bde481.
Return the correct exception for IPv6 lookup in IPv4 db