Don't infinite loop if all dns queries are in use