465
Comment:
|
← Revision 4 as of 2019-06-19 12:53:53 ⇥
464
|
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