Move the manipulation of site_name into the caller function dsgetdcname().