diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 6f8ef970e..31b5b6e0f 100755 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -1370,6 +1370,7 @@ sub update_namedconf { flock($newnameconf, LOCK_EX); seek($newnameconf, 0, 0); truncate($newnameconf, 0); + print $newnameconf "\#This file is generated by xCAT.\n"; for my $l (@newnamed) { print $newnameconf $l; } flock($newnameconf, LOCK_UN); close($newnameconf);