Differences between revisions 3 and 4
Revision 3 as of 2008-05-21 13:15:13
Size: 465
Editor: chamberl
Comment:
Revision 4 as of 2019-06-19 12:53:53
Size: 464
Editor: yashaqua
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

In this instance I was creating slave zone files from the named.conf, which had zone entires for all zones in the format bak.domain.edu. The sed business removes extraneous characters I encountered, it may need tuning depending on how your named.conf is formated.
In this instance I was creating slave zone files from the named.conf, which had zone entires for all zones in the format bak.domain.edu. The sed business removes extraneous characters I encountered, it may need tuning depending on how your named.conf is formatted.

Creating Zone files from named.conf

In this instance I was creating slave zone files from the named.conf, which had zone entires for all zones in the format bak.domain.edu. The sed business removes extraneous characters I encountered, it may need tuning depending on how your named.conf is formatted.

# for line in `grep bak. /var/named/chroot/etc/named.conf | awk '{print $2}' |sed 's/.\(.*\)/\1/' |sed 's/\(.*\)../\1/'`;do touch $line;done