|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
wildcards and pipe backendHi,
I am in the middle of migrating from BIND to PowerDNS using pipebackend, and I have run into some trouble. ---- First, wildcard records. Say, I have the following records: foo.example.com IN CNAME 1.2.3.4 *.example.com IN CNAME 1.1.1.1 Obviously dig foo.example.com should return 1.2.3.4 but dig bar.example.com should return 1.1.1.1 The question is: if I know I have wildcard records, then I have to do a wildcard query? Currently what I do is to first query non-wildcard records, and if none is found, then I do a wildcard match. Is that correct? Do the backend have to know about wilcrads at all? ---- Second: AXFR. I often get AXFR queries from pdns, which look like "AXFR 1". What zone should I return in this case? What I do now is to store the last domain queried, and when an AXFR is received, I send out the zone according to that last domain. Is this correct? Thanks, - Csongor _______________________________________________ Pdns-users mailing list Pdns-users@... http://mailman.powerdns.com/mailman/listinfo/pdns-users |
|
|
Re: wildcards and pipe backendOn Wed, Sep 23, 2009 at 10:17 PM, Fagyal Csongor
<concept@...> wrote: > The question is: if I know I have wildcard records, then I have to do a > wildcard query? Currently what I do is to first query non-wildcard records, > and if none is found, then I do a wildcard match. Is that correct? Do the > backend have to know about wilcrads at Backends should not do any thinking about wildcards, and only answer with a wildcard if queried for one explicitly. > I often get AXFR queries from pdns, which look like "AXFR 1". > What zone should I return in this case? > > What I do now is to store the last domain queried, and when an AXFR is > received, I send out the zone according to that last domain. Is this > correct? You should be setting the 'zone ID' field in the answers your PIPE backend provides. The AXFR query you'll get is for that zone ID number. So make sure you have a unique number per zone. Good luck! _______________________________________________ Pdns-users mailing list Pdns-users@... http://mailman.powerdns.com/mailman/listinfo/pdns-users |
|
|
Re: wildcards and pipe backendHi,
> On Wed, Sep 23, 2009 at 10:17 PM, Fagyal Csongor > <concept@...> wrote: > >> The question is: if I know I have wildcard records, then I have to do a >> wildcard query? Currently what I do is to first query non-wildcard records, >> and if none is found, then I do a wildcard match. Is that correct? Do the >> backend have to know about wilcrads at >> > Backends should not do any thinking about wildcards, and only answer > with a wildcard if queried for one explicitly. > >> I often get AXFR queries from pdns, which look like "AXFR 1". >> What zone should I return in this case? >> >> What I do now is to store the last domain queried, and when an AXFR is >> received, I send out the zone according to that last domain. Is this >> correct? >> > > You should be setting the 'zone ID' field in the answers your PIPE > backend provides. The AXFR query you'll get is for that zone ID > number. So make sure you have a unique number per zone. > blog my experiences now :D BTW, just for the record: my original example was wrong - A records, not CNAME records, as I used IP-s there. - Fagzal _______________________________________________ Pdns-users mailing list Pdns-users@... http://mailman.powerdns.com/mailman/listinfo/pdns-users |
| Free embeddable forum powered by Nabble | Forum Help |