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
2
votes
1 answer

Powerdns recursor deal with root server outage

I'm having issues with powerdns-recursor (version 3.5.3-1ubuntu0.1, Ubuntu 14.04) returning SERVFAIL when the queried root server is down. I'd think it would query another one, but instead it just returns SERVFAIL... Currently b.root-servers.net…
Halfgaar
  • 8,084
  • 6
  • 45
  • 86
2
votes
0 answers

Why is my PowerDNS server not recursing compute.internal addresses?

PowerDNS server with recursion enabled is resolving all addresses except for *.compute.internal The server is running in AWS and has 10.30.0.2 as it's nameserver. The following queries (testing the AWS Name Server) return the correct result: dig…
Greg Sansom
  • 131
  • 7
2
votes
4 answers

Best way to keep two or more databases in sync?

I have two PowerDNS servers and have configured the zone records to be natively stored in mariaDB. What would be the best way to sync these two databases? Note : I would like to scale this to use 5 servers later on. Currently the data would be…
Donno
  • 31
  • 1
  • 6
2
votes
0 answers

Slow DNS lookup only on certain ISPs (CentOS 6 Server)

Greetings to fellow community members! I had moved to Liquidweb about 2 months back (Cloud Dedicated Server). I only have a few low traffic sites (6-7) on the server. Immediately after the move, I saw a weird phenomenon when accessing my site from…
Amit
  • 21
  • 1
2
votes
2 answers

PowerDNS Split Horizon Resolver

I've looked around the web for a solution and have found numerous threads with different suggestions. Most of which I've found has been using LUA on the resolver to return records. Other posts suggest using GEO-IP or Pipe backends. All of the…
Michael Moser
  • 219
  • 2
  • 4
  • 16
2
votes
1 answer

PowerDNS master server doesn't notify

I have a PowerDNS based master nameserver with 3 slaves. Zone transfer works through AXFR (automatically once every hour it gets checked by the slaves). When I change a record through our panel the notified_serial gets updated correctly as well as…
Jona Koudijs
  • 75
  • 3
  • 10
2
votes
3 answers

Authoritative DNS with default response

I need to setup an authoritative DNS for 500K zones. About 90% of the zones are identical (except for the domain name of course). I have only found PowerDNS appropriate for this task - using Pipe Backend with Perl script that answers static…
eitanpo
  • 131
  • 5
2
votes
1 answer

Use PowerDNS to update AD Integrated DNS Zone

Before I embark on the experiment, I figured I might ask the community at large. So I've got an odd situation that I'm trying to remedy. I have Terraform deploying virtual machines (Linux and Windows) into an on-premise datacenter (VMWare) with an…
DavisTasar
  • 344
  • 1
  • 6
  • 16
2
votes
1 answer

getting prometheus metrics from pdns

Running pdns v4.7.0-0.alpha0.master. Have enabled web server and can see ports 8081, 8081 and 8082 (from localhost login). When I try to get /metrics from there (via curl) I get either "connection refused" or "Not found". Anyone had success with…
ethrbunny
  • 2,369
  • 4
  • 41
  • 75
2
votes
1 answer

powerdns recursor logging not working

i am trying to setup a powerdns recursor with query logging to specific log file with rsyslog. When I set it up and try to query some address and look in the query log file, every line is doubled, it also happens in the journal. I don't know what to…
2
votes
0 answers

PowerDNS slave not authorative

I'm running powerDNS 4.3.0 with an master/slave configuration, and when testing the slave replication I come across the following error on the slave: Apr 23 18:06:12 hfr-nl-dns02 pdns_server[17987]: Received NOTIFY for adomain.example from…
Koen Vuurens
  • 31
  • 1
  • 6
1
vote
0 answers

PowerDNS AXFR - ;; communications error to x.x.x.x#53: end of file

Using PowerDNS, we got into an issue with transferring a single domain object (/24) from our primary to our secondary DNS server. This /24 is part of a larger RIPE block, /22, and is not automatically transferred. The remaining /24 domain objects…
Beeelze
  • 161
  • 6
1
vote
1 answer

Conflict with CNAME wildcard with child CNAME

I migrated from PowerDNS to Knot 2.7. I have a conflict with 2 DNS records now. abcd.**www**.example.com CNAME -> somehost.example.net *.example.com -> example.com Now the problem is with the www.example.com domain. In PowerDNS it was to resolve…
Pavel
  • 417
  • 1
  • 7
  • 17
1
vote
1 answer

DNS Migration to Azure DNS from Powerdns

We are using powerdns, I am looking into exporting all our zones and records to MS DNS, I am test exporting zones via phpmyadmin on my powerdns server. I dont think MS DNS played nice with .sql .csv files (export options on phpmyadmin). Is there a…
1
vote
0 answers

Moved form BIND to PowerDNS - delegated subdomains not resolving

I was previously using BIND for our office network. I've now moved to PowerDNS Authoritative, using a MySQL backend - and while all the local addresses are resolving just fine, my externally-hosted sites no longer resolve. What I want, ideally, is…
1
2
3
9 10