2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-22 22:15:30 +00:00

Merge pull request #2366 from bybai/makedns_2

fix 2206 add comments in /etc/named.conf indicating that it is genera…
This commit is contained in:
yangsong
2017-01-06 10:22:27 +08:00
committed by GitHub

View File

@ -1370,6 +1370,7 @@ sub update_namedconf {
flock($newnameconf, LOCK_EX);
seek($newnameconf, 0, 0);
truncate($newnameconf, 0);
print $newnameconf "\#generated by xCAT: /opt/xcat/sbin/makedns -n \n";
for my $l (@newnamed) { print $newnameconf $l; }
flock($newnameconf, LOCK_UN);
close($newnameconf);