fix bug where ip_type was always set to '4' for AAAA records