gns lookup stuff could be improved should report some errors back to the caller lookup functions block forever if they don't get any results. lookup() and lookup_in_master() should take two extra args: one for the max number of results one for the max time to wait