Validate hostname and port number of new records.