[Pdns-users] Using zone2sql with internal and external views
Julian Kippels
kippels at hhu.de
Fri Apr 21 12:59:46 UTC 2017
Hi,
I am trying to use zone2sql to migrate from BIND 9.6 to PowerDNS
3.4.11. My named.conf looks like this:
view "internal" {
match-clients { 127.0.0.1; !134.99.128.5; !134.99.128.6; 134.99.0.0/16; 193.159.219.208/28; 192.168.0.0/16; 10.0.0.0/8; 172.16.0.0/12; };
zone "uni-duesseldorf.de" {
type master;
file "master/internal/uni-duesseldorf.zon";
notify yes;
};
zone "99.134.IN-ADDR.ARPA" {
type master;
file "master/internal/uni-duesseldorf.rev";
notify yes;
};
zone "168.192.IN-ADDR.ARPA" {
type master;
file "master/192.168.rev";
notify yes;
};
zone "10.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "16.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "17.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "18.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "19.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "20.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "21.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "22.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "23.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "24.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "25.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "26.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "27.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "28.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
zone "29.172.IN-ADDR.ARPA" { type master; file "master/10.rev"; notify yes; };
include "named-singleview.inc";
};
view "external" {
match-clients { any };
zone "uni-duesseldorf.de" {
type master; allow-query { any; };
file "master/external/uni-duesseldorf.zon";
};
zone "99.134.IN-ADDR.ARPA" {
type master; allow-query { any; };
file "master/external/uni-duesseldorf.rev";
};
include "named-singleview.inc";
};
If I run zone2sql like this I get a syntax error on line 4 (zone "uni-duesseldorf.de"....). If I remove the views and run it again, it's working. How can I keep these views intact using zone2sql?
Thanks in advance
Julian
More information about the Pdns-users
mailing list