[Bind-dlz-testers] How to allow zone transfer?
Brought to you by:
crodster
|
From: Ronald W. <ro...@el...> - 2006-09-12 01:39:54
|
I have now one dns server running with mysql How can I allow zone transfer to a dns without mysql? /var/log/messages shows now: Sep 12 09:31:39 dns named[24445]: transfer of 'xxx.com/IN' from xx.xx.xx.xx#53: failed while receiving responses: REFUSED Sep 12 09:31:39 dns named[24445]: transfer of 'xxx.com/IN' from xx.xx.xx.xx#53: end of transfer DNS server got in named.conf: dlz "Mysql zone" { database "mysql {host=127.0.0.1 dbname=xxx_dns_data ssl=false port=35306 user=xxx pass=shhshh} {select zone from dns_records where zone = '%zone%' limit 1} {select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') when lower(type) = 'soa' then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum) else data end as mydata from dns_records where zone = '%zone%' and host = '%record%'} {} {select ttl, type, host, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') else data end as mydata, resp_person, serial, refresh, retry, expire, minimum from dns_records where zone = '%zone%'} {select zone from xfr_table where zone = '%zone%' and client = '%client%' limit 1} {update data_count set count = count + 1 where zone ='%zone%'}"; }; The receiving site got entries like: zone "xx.com" { type slave; file "slave/xx.com"; masters { xx.xx.xx.xx; }; }; I miss something like allow-transfer { secondary-dns-IP ; }; but where to put it? bye Ronald |