Changeset 2328
- Timestamp:
- 10/07/08 01:58:04 (1 month ago)
- Files:
-
- alternc/trunk/debian/alternc-slave.config (modified) (2 diffs)
- alternc/trunk/debian/alternc-slave.postinst (modified) (2 diffs)
- alternc/trunk/debian/alternc-slave.templates (modified) (1 diff)
- alternc/trunk/debian/alternc.config (modified) (2 diffs)
- alternc/trunk/debian/alternc.postinst (modified) (2 diffs)
- alternc/trunk/debian/changelog (modified) (1 diff)
- alternc/trunk/debian/templates (modified) (1 diff)
- alternc/trunk/etc/alternc/templates/bind/named.conf (modified) (2 diffs)
- alternc/trunk/etc/alternc/templates/bind/named.conf.options (added)
- alternc/trunk/install/alternc.install (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/debian/alternc-slave.config
r2317 r2328 95 95 fi 96 96 97 db_get alternc-slave/bind_internal98 if [ -z "$RET" ]99 then100 db_set alternc-slave/bind_internal "$BIND_INTERNAL"101 fi102 103 97 db_get alternc-slave/default_mx 104 98 if [ -z "$RET" ] … … 171 165 db_input low alternc-slave/sql/overwrite || true 172 166 db_input low alternc-slave/monitor_ip || true 173 db_input low alternc-slave/bind_internal || true174 167 db_go 175 168 alternc/trunk/debian/alternc-slave.postinst
r2320 r2328 80 80 NS2_HOSTNAME="" 81 81 82 # IP that have privilegied access to the DNS server. Separated by ';'.83 BIND_INTERNAL=""84 85 82 # Mail server hostname 86 83 DEFAULT_MX="" … … 121 118 update_var alternc-slave/ns1 NS1_HOSTNAME 122 119 update_var alternc-slave/ns2 NS2_HOSTNAME 123 update_var alternc-slave/bind_internal BIND_INTERNAL124 120 update_var alternc-slave/default_mx DEFAULT_MX 125 121 update_var alternc-slave/mysql/client MYSQL_CLIENT alternc/trunk/debian/alternc-slave.templates
r2319 r2328 143 143 ping us and access apache status pages. Completely optional. 144 144 145 Template:alternc-slave/bind_internal146 Type: string147 _Description: trusted servers for bind:148 IP address or prefix of trusted machines for DNS transfers,149 delimited by ';', optional.150 151 145 Template:alternc-slave/pop_before_smtp_warning 152 146 Type: note alternc/trunk/debian/alternc.config
r2317 r2328 95 95 fi 96 96 97 db_get alternc/bind_internal98 if [ -z "$RET" ]99 then100 db_set alternc/bind_internal "$BIND_INTERNAL"101 fi102 103 97 db_get alternc/default_mx 104 98 if [ -z "$RET" ] … … 171 165 db_input low alternc/sql/overwrite || true 172 166 db_input low alternc/monitor_ip || true 173 db_input low alternc/bind_internal || true174 167 db_go 175 168 alternc/trunk/debian/alternc.postinst
r2317 r2328 80 80 NS2_HOSTNAME="" 81 81 82 # IP that have privilegied access to the DNS server. Separated by ';'.83 BIND_INTERNAL=""84 85 82 # Mail server hostname 86 83 DEFAULT_MX="" … … 121 118 update_var alternc/ns1 NS1_HOSTNAME 122 119 update_var alternc/ns2 NS2_HOSTNAME 123 update_var alternc/bind_internal BIND_INTERNAL124 120 update_var alternc/default_mx DEFAULT_MX 125 121 update_var alternc/mysql/client MYSQL_CLIENT alternc/trunk/debian/changelog
r2327 r2328 29 29 per Debian Policy), some settings are directly overwritten. those 30 30 settings are configured in /etc/alternc/postfix.cf. 31 * simplify the bind configuration: do not overwrite named.conf, put 32 all changes in named.options. get rid of the bind_internal parameter 33 that is not recommended anyways (as it allows recursive queries on an 34 authoritative nameserver). Note that the 'internal' ACL can still be 35 changed in a template if required. named.conf is still deployed by 36 AlternC, but this will be the last release that does so. See #1025 and 37 #1104. 31 38 32 39 -- Antoine Beaupré <anarcat@koumbit.org> Tue, 15 Apr 2008 11:52:56 -0400 alternc/trunk/debian/templates
r2319 r2328 143 143 ping us and access apache status pages. Completely optional. 144 144 145 Template: alternc/bind_internal146 Type: string147 _Description: trusted servers for bind:148 IP address or prefix of trusted machines for DNS transfers,149 delimited by ';', optional.150 151 145 Template: alternc/pop_before_smtp_warning 152 146 Type: note alternc/trunk/etc/alternc/templates/bind/named.conf
r1003 r2328 1 // This is the primary configuration file for the BIND DNS server named. 1 2 // 2 // %%warning_message%% 3 // Please read /usr/share/doc/bind9/README.Debian.gz for information on the 4 // structure of BIND configuration files in Debian, *BEFORE* you customize 5 // this configuration file. 3 6 // 4 acl "internal" { 5 { 6 %%bind_internal%% 7 127.0.0.1; 8 }; 9 }; 7 // If you are just adding zones, please do that in /etc/bind/named.conf.local 10 8 11 include "/ var/alternc/bind/slaveip.conf";9 include "/etc/bind/named.conf.options"; 12 10 13 options { 14 directory "/var/cache/bind"; 15 16 // forwarders { 17 // 0.0.0.0; 18 // }; 19 version "Name Server Ready"; 20 21 auth-nxdomain no; # conform to RFC1035 22 allow-query { "internal"; }; 23 allow-transfer { "allslaves"; }; 24 recursion no; 25 }; 26 11 // prime the server with knowledge of the root servers 27 12 zone "." { 28 13 type hint; 29 14 file "/etc/bind/db.root"; 30 15 }; 16 17 // be authoritative for the localhost forward and reverse zones, and for 18 // broadcast zones as per RFC 1912 31 19 32 20 zone "localhost" { … … 50 38 }; 51 39 52 include "/etc/bind/rndc.key"; 53 54 // add entries for other zones below here 55 include "/var/alternc/bind/automatic.conf"; 40 include "/etc/bind/named.conf.local"; alternc/trunk/install/alternc.install
r2325 r2328 26 26 if [ -e /etc/bind/named.conf ]; then 27 27 CONFIG_FILES="$CONFIG_FILES etc/bind/templates/zone.template 28 etc/bind/templates/named.template etc/bind/named.conf "28 etc/bind/templates/named.template etc/bind/named.conf etc/bind/named.conf.options" 29 29 fi 30 30 if [ -e /etc/courier/authdaemonrc ]; then … … 111 111 print join (\".\", @ip);"` 112 112 113 if [ ! -z "$BIND_INTERNAL" ]; then114 BIND_INTERNAL="$BIND_INTERNAL;"115 fi116 117 113 if [ -z "$MONITOR_IP" ]; then 118 114 MONITOR_IP="127.0.0.1" … … 130 126 s\\%%ns1%%\\$NS1_HOSTNAME\\; 131 127 s\\%%ns2%%\\$NS2_HOSTNAME\\; 132 s\\%%bind_internal%%\\$BIND_INTERNAL\\;133 128 s\\%%mx%%\\$DEFAULT_MX\\; 134 129 s\\%%dbhost%%\\$MYSQL_HOST\\;
