removed redundant check and verified that we aren't setting records for localhost