I have been tasked to deploy a new powerDNS server for the company I work to as the the current ones we have are not working properly and they are quite old. So the new one that I installed on a centos 7 machine is the powerDNS 4.1 version.
I am not really familiar with configuring DNS servers so I did come across with an issue with pdns_recursor. Before I start explaining about the issue I have to see that the Authoritative Server of the DNS works fine. So I have added a domain to my DNS table and when I query that domain using as DNS my new DNS server it does work fine.
The issue starts when I’d like to query a domain which is not in my DNS table, ex. google.com using as DNS my new DNS. It seems that the server does send the query but never gets the answer. So I assume that my new DNS server sends the query to a Master DNS which I do not which one is as on powerDNS the version 4.1 you do not have that visibility. Unless I do not where to check. It seems that the master DNS does not reply to my DNS.
From the logs I do see that error message:
pdns_recursor: Failed to update . records, got an exception: Too much time waiting for…5msec
pdns_recursor: Failed to update . records, RCODE=-1
Not sure what it is for.
Also below is the output when I dig google.com from my new DNS server.
dig google.com @localhost
; <<>> DiG 9.9.4-RedHat-9.9.4-72.el7 <<>> google.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 30811
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;google.com. IN A
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1))
;; WHEN: Fri Jan 11 12:29:34 GMT 2019
;; MSG SIZE rcvd: 39
PowerDNS doco is not the greatest regarding these issues. I would really appreciate if someone could give some light here.
Many Thanks in advance