Questions tagged [powerdns]

PowerDNS is a DNS server developed by PowerDNS.COM BV, and known for its variety of backends.

PowerDNS is a DNS server, designed and running on most UNIX operating systems. It allows dynamic DNS changes through several backends, therefore making DNS zones edition easier than the basic BIND configuration scheme. PowerDNS 3.0 includes a DNSSEC support.

Basics

In its basic configuration, PowerDNS (shortened "pdns" in a technical environment) runs with 2 components:

  • A core server, pdns_server, handling DNS-related operations.
  • Loadable backends running as independent threads, handling data storage and organisation.

At the moment, the documentation refers to the following backends:

  • The random backend: silly little backend for demonstration and testing. Generates a random IP address for a given domain name.
  • Pipe backend: the core server handles communication and gets its data from a third-party program, used as the backend. This setup allows the system administrator to use the possibilities of UNIX pipes, and build more complex DNS queries handling processes.
  • MySQL/pgSQL backend: the core server gets its data from a MySQL or pgSQL database, which has to follow a given structure.
  • Oracle backend: same behaviour as above, with some Oracle specifics.
  • SQLite: same behaviour as above, with some SQLite specifics.
  • IBM DB2: same behaviour as above, with some IBM DB2 specifics.
  • OpenDBX backend: same behaviour as above. The module is independent.
  • Bind backend: allows PowerDNS to work as an intermediate process between the client and Bind zone files.
  • ODBC backend (windows only): allows PowerDNS to get information from any source of which it has the correct ODBC driver for.
  • LDAP backend (unmaintained and declared unstable): allows PowerDNS to store its data in a lightweight directory.
  • Geo backend: allows PowerDNS to handle DNS requests on an IP/country basis, using a GeoIP-like database.
  • Lua backend: allows PowerDNS to resolve queries using a Lua script.
  • TinyDNS (recent and experimental): allows PowerDNS to store data in a CDB file.
  • Remote backend: allows PowerDNS to use sockets, pipe and other network components to resolve its DNS queries.

Note: backends are usually referred to as modules, meaning anyone can develop his own DNS queries handler.

The PowerDNS recursor

The recursor is an additional component for a PowerDNS server. The core server can be configured to proxy requests to the recursor, acting as a DNS resolver. It allows the use of caches, recursing and resolving. Running the recursor on its own is therefore more efficient than running it behind the authoritative pdns_server. The pdns_recursor is known to run on several broadband providers infrastructures, as it can handle numerous requests through a multi-threaded behaviour (MTasker library homepage).

145 questions
0
votes
0 answers

subprocress fault ı cant start powerdns-admin

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [35 lines of output] /tmp/pip-build-env-tc6mapwc/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated…
Rewony
  • 1
  • 1
0
votes
0 answers

Failed to start PowerDNS Authoritative server

use systemctl restart pnds command system said me you should use to systemctl status pnds ı show this fail message . I saw code=exited, status=1/failure do you have any idea ? ı can create succesfull database ı wrote some mysql quary. I can see my…
Rewony
  • 1
  • 1
0
votes
0 answers

PowerDNS API changetype REPLACE does not replace a RRset

I'm making the following API call to PowerDNS, expecting to replace the old record value oldhostname.example.net with the new value newhostname.example.net. PATCH /api/v1/servers/localhost/zones/example.org X-API-Key: secret Content-Type:…
Josh
  • 1
0
votes
0 answers

Pdns recursors avoid to forward not fqdn to root servers

I use a PDNS system with a recursor. I noticed that some (maybe) not well configured docker containers forwards to the PDNS recursor some query without suffix (not fully qualified host name). The recursor fowards these queries to the root…
balucio
  • 61
  • 5
0
votes
0 answers

Setting www in PowerDNS domain template to always CNAME to self

I found a pretty old answer from 2014 explaining that domain names in PowerDNS has to be fully qualified, thus CNAME cannot refer to self (@), and enhancements in this regard may have been implemented later, but creating a PowerDNS domain template,…
0
votes
0 answers

Integrate PowerDNS into Windows DC's DNS, use same domain

We have the following setup: dc01.our.domain 10.10.10.101 dc02.our.domain 10.10.10.102 phpipam.our.domain 10.10.10.250 We need all our hosts to use our DC's as the primary and secondary DNS servers, mainly for AD integration. However all other DNS…
Dave
  • 229
  • 2
  • 10
0
votes
0 answers

PowerDNS lua ifportup Failing

I'm having a problem getting a PowerDNS ifportup lua record working. I'm new to PowerDNS and know DNS relatively well. I'd appreciate if anyone could point out where I'm going wrong here. Background - I'm running this on Debian 11 to a sqlite…
0
votes
0 answers

powerdns migration from old custom version

This is my first question on serverfault, so please bear with me. At my work we've currently have a custom webgui that uses ruby on rails to enter DNS records into the custom powerdns database. The naming convention of the tables is different than…
0
votes
0 answers

PowerDNS need's answer any query with an "A" record when no A or cName Record Found

I have setup a DNS server with centos 7 & powerDNS letest. All things are working fine. but I want to do a thing that will be share a A record for every domain which is no listed on this DNS server, that means when there are no cName or A record in…
0
votes
0 answers

pwoerdns only replicates after I manually re-creater the slave zone

Hi guys I have two master/slave PowerDNS servers with MySQL backend, which is supposed to be replicated using PowerDNS replication itself (not MySQL replication). But the slave node will get the updates when I re-create the slave zone using…
0
votes
0 answers

Master with Auto PTR creation - not syncing PTR records to slave?

I have a master server with a single zone sync'ing to a slave. The slave has the same zone configured. Both sides have the Auto PTR checkbox turned on. I've also tried with Auto PTR off on the slave. I'm using mariadb as the backend The master…
0
votes
1 answer

prevent PowerDNS to be open_resolver

sorry if my question is too long. I have 4 PowerDNS servers, as below with sample IPs. ns1.example.com 1.1.1.1 ns2.example.com 2.2.2.2 rec1.example.com 3.3.3.3 rec2.example.com 4.4.4.4 in my network, ns1 & ns2 are authoritative servers that have…
sina
  • 3
  • 1
0
votes
0 answers

powerdns delegation - nslookup print ANSWER and SERVFAIL at the same time

Two powerdns are configured and divided into A and B. B is delegated by A. Host A configured pdns and pdns-recursor, host B configured pdns. [Version info] pdns-server : 4.7.2 pdns-backend-pgsql : 4.7.2 pdns-recursor : 4.2.1 postgresql : 15.0 Here…
Daniel
  • 1
  • 1
0
votes
2 answers

PowerDNS zone forwarding

I have inherited a 4.0.6 powerdns deployment that is used to serve a private zone in a lab environment. I am in the process of migrating this environment to AWS and need powerdns to forward aws.internal.lan to a set of Route53 inbound resolvers. It…
yossarian2004
  • 143
  • 4
  • 9
0
votes
1 answer

75.75.75.75 (Comcast DNS) not resolving ironpawsllc.com

IronPawsLLC.com is not pingable, gives an NXDOMAIN, and results in 0 answers when dig @75.75.75.75 ironpawsllc.com is used. So far, all the other DNS servers that I've tested against resolve. IronPawsLLC.com is a HostGator VPS4000 running CPanel,…