Comments (3)
Hi @geoff-maddock,
I've looked into this and unfortunately there's no reliable way of getting limited results of zones. Filtering or paginating inside the package is possible, but it does not prevent timeouts, as all zones still will be retrieved at once. So unless PowerDNS adds pagination to the API itself, it is not possible to get a paginated/filtered list of zones. I'll keep track of this PowerDNS issue and once there's pagination, we'll add it right away to the package.
from powerdns-php.
Thanks for the followup Tristan. This is the first time our team has really looked into the API, so I wasn't completely aware of the limits of the API itself until this week.
Do you have any documentation on how how you handle the filtering and pagination using your package? It's possible we might be able to work with that if the retrieval times aren't too much.
We're exploring creating our own API using API platform for reads, but probably would only be for reads and filtering.
from powerdns-php.
At this moment there's no such thing as filtering and pagination in the package, as there are no endpoints that support it. Getting a list of zones will always return all zones. If you do not want this, you'll need to create your own workaround, for example keeping a list of zones in your own DB which you can use. Unfortunately we can't do anything about it.
from powerdns-php.
Related Issues (20)
- Problem adding TXT record. HOT 2
- Can't add two Records with same name
- Compatibility with psr/log 3.0 HOT 2
- How to create additional records for the same subdomain
- How to delete one specific record
- cannot delete an MX record
- No SOA found for domain
- Accept zone name in `find`
- Delete metadata SOA-EDIT HOT 1
- listZones() parameter $omitDnssecAndEditedSerialFields is inverted
- Support all "Unknown" DNS Resource Record (RR) Types HOT 1
- Second (optional) argument of an Exception is its code, not debug variables HOT 1
- On another note: I don't think it's very friendly to have the syntax for the `Zone->create` method in mind (with the comments double array and stuff. If it's ok I would like to introduce the alternative of passing in the Objects (e.g. a ResourceRecord-Instance and an array of Comment-Instances). Let me know if that's something that would be approved
- SearchResult fails on zone and comment results HOT 1
- Bulk zone create HOT 1
- Question: `put` a full array of rrset changes to zone HOT 3
- Hardcoded PDNS port HOT 2
- More human readable output HOT 5
- cURL error 28: Failed to connect to xxx.xxxxx.xxx port 8081: Connection timed out HOT 1
- Manipulation of records for the zone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerdns-php.