PHPackages                             jeremib/pdns-php-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jeremib/pdns-php-api

ActiveLibrary

jeremib/pdns-php-api
====================

RESTful PHP API server for PowerDNS

6111[1 issues](https://github.com/jeremib/Pdns-PhpApi/issues)PHP

Since Apr 25Pushed 12y ago1 watchersCompare

[ Source](https://github.com/jeremib/Pdns-PhpApi)[ Packagist](https://packagist.org/packages/jeremib/pdns-php-api)[ RSS](/packages/jeremib-pdns-php-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pdns-PhpApi
===========

[](#pdns-phpapi)

===========

PHP RESTful API for PowerDNS

Usage
-----

[](#usage)

The following shows how to call the API. Pdns-PhpApi adheres to the RESTful practice of ustilizing POST, PUT, DELETE and GET.

The default username/password is admin/foo.

### Domain Actions

[](#domain-actions)

The following calls are for adding/editing/deleting domain information. Primary key is the domain name.

#### List Domains

[](#list-domains)

Returns all the domains, but does not include their records.

`GET /domain/ HTTP/1.1`

#### Get Domain Info

[](#get-domain-info)

Returns all the domain information for the specified domain, including records associated with that domain.

`GET /domain/ HTTP/1.1`

#### Create Domain Record

[](#create-domain-record)

Creates a domain record

`POST /domain HTTP/1.1`

Parameters

- domain : domain name of the new record \[Required\]
- type : type of the new record, either MASTER or SLAVE \[Optional\] \[Default MASTER\]
- master : master record if type is SLAVE \[Optional\] \[Default null\]

#### Update Domain Record

[](#update-domain-record)

Updates a domain record

`POST /domain HTTP/1.1`

Parameters

- domain : domain name of the new record \[Optional\] \[Default null\]
- type : type of the new record, either MASTER or SLAVE \[Optional\] \[Default MASTER\]
- master : master record if type is SLAVE \[Optional\] \[Default null\]

#### Delete Domain Info

[](#delete-domain-info)

Deletes the specified domain and all associated records

`DELETE /domain/ HTTP/1.1`

### Record Actions

[](#record-actions)

The following calls are for add/editing/deleting/listing records for the domain. Primary key is the record id.

#### Get Record Info

[](#get-record-info)

Returns the record information for the specified name, for example ns1.mydomain.com. Key can also be the id of the record you want information for.

`GET /record/ HTTP/1.1`

#### Get Record Info For Domain and Type

[](#get-record-info-for-domain-and-type)

Returns the record information for the specified domain and type. For example to list all NS records for a domain

`GET /record// HTTP/1.1`

#### Create Record

[](#create-record)

Creates a record for a domain

`POST /record HTTP/1.1`

Parameters

- domain : domain name for the record \[Required\]
- name : name of the record \[Required\]
- type : type of the record \[Required\]
- content : content of the record \[Required\]
- ttl : time to live \[Optional\] \[Default 3600\]
- prio : priority of the record \[Optional\]

#### Update Record

[](#update-record)

Updates a record for the id specified.

`PUT /record/ HTTP/1.1`

Parameters

- name : name of the record \[Required\]
- type : type of the record \[Required\]
- content : content of the record \[Required\]
- ttl : time to live \[Optional\] \[Default 3600\]
- prio : priority of the record \[Optional\]

#### Delete Info

[](#delete-info)

Deletes the specified record

`DELETE /record/ HTTP/1.1`

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea069ad5f38d04aa67367288a95cac1debaccfb085847601fe17a8ae5b8cc58a?d=identicon)[jeremib](/maintainers/jeremib)

---

Top Contributors

[![jeremib](https://avatars.githubusercontent.com/u/565742?v=4)](https://github.com/jeremib "jeremib (8 commits)")

### Embed Badge

![Health badge](/badges/jeremib-pdns-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/jeremib-pdns-php-api/health.svg)](https://phpackages.com/packages/jeremib-pdns-php-api)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
