Commit graph

41 commits

Author SHA1 Message Date
Jelle Luteijn
b7ef64db18
Update Zone.php 2023-06-20 14:24:17 +02:00
Jelle Luteijn
758a021ca2
Update Zone.php 2023-06-20 14:22:36 +02:00
Jelle Luteijn
cae4e4ff93
Update Zone.php 2023-06-20 14:14:45 +02:00
Jelle Luteijn
7c50964633
Update ApiHandler.php 2023-06-20 14:13:08 +02:00
Jelle Luteijn
d59da92f37
Update PdnsApi.php
Creation of dynamic property PdnsAPI::$http is deprecated
2023-06-20 14:12:30 +02:00
Jelle Luteijn
607ecbd9f2
forgot $ 2023-06-20 14:06:52 +02:00
Jelle Luteijn
e38fa1e120
Update ApiHandler.php
Creation of dynamic property ApiHandler::$headers is deprecated
2023-06-20 13:57:08 +02:00
Mark Schouten
be647cc26a Do not insert 'localhost', we are autodetecting the API url 2018-08-22 15:39:11 +02:00
Mark Schouten
bf513b9ffd Assume that we have Pdns > 4.x 2018-08-22 15:21:26 +02:00
margau
805176648d Fixed from paulgiordanozethcon suggestion in https://github.com/tuxis-ie/nsedit/issues/162 2018-04-17 18:53:31 +02:00
Tuxis Internet Engineering V.O.F
635441dbe0
Revert "notify pdns after zone update" 2018-03-28 09:05:09 +02:00
root
03d9d88026 add "notifyafterupdate" flag 2018-02-02 14:58:10 +01:00
Mark Schouten
f67fa04d85 This fixes the issues with the newer pdns, which suddenly includes the whole API url in the returned json.
Closes #145. In response to 4d4e536d52
2017-04-28 12:32:01 +02:00
Mark Schouten
4d4e536d52 Deduplicate the api-url 2017-04-20 11:45:33 +02:00
Mark Schouten
41801a73f6 Try to set soa_edit_api, if it is not yet set 2016-10-25 12:14:07 +02:00
Mark Schouten
94e0d22bf2 If we don't have a soa_edit_api for this zone yet, set it to our default 2016-10-25 11:10:22 +02:00
Richard Underwood
9d59441dd0 Check around curl_reset to prevent errors with PHP <=5.4 2016-08-26 10:11:52 +01:00
Mark Schouten
4b5d4b02c9 Fix bug in Exception() and clearify the error message. Closes #100 2016-08-09 22:59:29 +02:00
Mark Schouten
b04b4dd864 Set ttl for the whole rrset if we update a record within that rrset. Might update other records as well, but that's as designed. Should fix #99 2016-08-08 19:13:47 +02:00
Mark Schouten
a91d91baa4 Add default value for setptr 2016-08-05 12:05:36 +02:00
Mark Schouten
d103c7b04f Implement set-ptr. Closes #51 . Make 'true/false' prettier 2016-08-04 16:55:03 +02:00
Mark Schouten
5cd225cb43 Implement cloning of zones, closes #81 2016-08-04 16:18:45 +02:00
Mark Schouten
30f43e98a5 Improve readability of function names 2016-08-04 15:31:17 +02:00
Mark Schouten
ef7f47e3f4 Fix creating records without the zonename. Sort the zones. Fix creation of disabled records 2016-08-04 14:46:32 +02:00
Mark Schouten
82819bf33b Remove leftover from copy/paste. Do not replace and check if ['serial'] exists.. 2016-08-04 13:44:39 +02:00
Mark Schouten
c7b36d7d7d Implement deleteRecord and fix some small errors 2016-08-04 12:09:56 +02:00
Mark Schouten
d94d1da445 Implement exportzone 2016-08-04 12:07:14 +02:00
Mark Schouten
e2034c5861 * Implement getrrset() and use it where we can
* addrecord() should just add the record, even if the rrset does not yet exist
* Make addrecord() return the created record
* Implement getrecord()
2016-08-03 16:54:58 +02:00
Mark Schouten
4d6ecb612e Fix a erasemasters() for a zone 2016-08-03 16:08:40 +02:00
Mark Schouten
cf754d0135 Check if serial is an integer, so we know if it's a new zone. Also, return the new zone upon saving it. 2016-08-03 16:07:48 +02:00
Mark Schouten
2cc92e6842 We can now import, create AND delete zones 2016-08-03 15:14:27 +02:00
Mark Schouten
4ac1e6e767 We can now view zones. Yay! 2016-08-03 14:29:35 +02:00
Mark Schouten
1c3e5cfc99 Cannot use object of type RRSet as array 2016-08-03 14:21:56 +02:00
Mark Schouten
d5ef95e711 Make functions public 2016-08-03 14:21:01 +02:00
Mark Schouten
a7d3e6e6eb Fix typo and move function to correct class 2016-08-03 14:19:31 +02:00
Mark Schouten
6fd7087dc9 Rebuild listrecords and fake records by merging them with rrsets in Zone.php 2016-08-03 14:16:07 +02:00
Mark Schouten
a94d0e0b31 Fix all kind of development and trying code. 2016-08-03 14:08:33 +02:00
Mark Schouten
fcdba74c14 Also export keyinfo 2016-08-03 13:37:22 +02:00
Mark Schouten
d02889a918 Allow setting a string 'keyinfo' 2016-08-03 13:35:54 +02:00
Mark Schouten
f61f52a14d Add getzonekeys() to PdnsApi 2016-08-03 13:33:44 +02:00
Mark Schouten
367dde6f19 Add new classes to handle zones and pdns-api v4.0 2016-08-03 13:16:30 +02:00