powerdns用pdnsutil 添加记录

IP="168.192.in-addr.arpa
10.10.in-addr.arpa
"; 
for list  in $IP
do 
pdnsutil create-zone $list ns1.server.com
pdnsutil add-record $list @ NS ns2.server.com
pdnsutil replace-rrset $list . SOA 'ns1.server.com. ns2.server.com. 0 10800 3600 604800 3600'
pdnsutil increase-serial $list
done


for i in {0..255}; do 
    for o in {0..255}; do 
        pdnsutil add-record 168.192.in-addr.arpa $o.$i PTR test.example.com
        done;
done; 

添加新评论 »