Fix IP range check and default DNS value