Implementation of getAuth with best_prefix_len
Documentation for getAuth feature