Add the option to preserve GSI_DAEMON_NAME defined in a different config file
Make the dns file creation atomic. Also fix a small edge case bug