[Pdns-users] NOERROR instead of NXDOMAIN. pgsql problem?
Sebastian Heil
sebi+pdns at wh-netz.de
Tue Nov 27 21:53:48 UTC 2012
Hello Peter,
thanks for the fast response.
On 27.11.2012 20:24, Peter van Dijk wrote:
> So, the question is: does your slave feel any sense of authority?
Yes the slave is and feels authoritative for the zone. [1]
> Does it answer positive questions correctly?
Yes it does. [2]
> Does it still do so when you add +norec to your queries?
And again: yes. It makes no difference if I append +rec or +norec.
> Furthermore, any logging appearing on the slave during a request (either for an
> existing or a non-existing name) might be interesting.
> Also, any logging about the
> zone transfer failing or succeeding, mostly on the slaves, would be useful to see.
Due to the logfiles the transfer seems to be successful. [4] Btw there
are no errors or warnings in the logfile.
Can you please tell me if the following command leads to sufficent
output? Or can I somehow increase the loglevel?
pdns_server --daemon=no --control-console --query-logging=yes
I appended the output of a query on the slave for each case (existing
record vs non-existing) at the end. [3]
> One final note - 2.9.21.2 is pretty old. Newer versions, especially 3.0 and up, contain
> hundreds of bug fixes in many areas. Please consider upgrading.
We are using Debian and there it's to most recent version in the repository.
Best Regards,
Sebastian Heil
[1]~$ dig workstation.whnetz soa @dns1.idmz.whnetz.de
; <<>> DiG 9.6-ESV-R4 <<>> workstation.whnetz soa @dns1.idmz.whnetz.de
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48880
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;workstation.whnetz. IN SOA
;; ANSWER SECTION:
workstation.whnetz. 3600 IN SOA dns1.idmz.whnetz.de.
hostmaster.wh-netz.de. 2012100220 3600 900 604800 28800
;; Query time: 0 msec
;; SERVER: 10.99.1.2#53(10.99.1.2)
;; WHEN: Tue Nov 27 21:17:04 2012
;; MSG SIZE rcvd: 110
[2]~$ dig dhcp-gw.workstation.whnetz @dns1.idmz.whnetz
; <<>> DiG 9.6-ESV-R4 <<>> dhcp-gw.workstation.whnetz @dns1.idmz.whnetz
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23191
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;dhcp-gw.workstation.whnetz. IN A
;; ANSWER SECTION:
dhcp-gw.workstation.whnetz. 3600 IN A 10.43.0.254
;; Query time: 0 msec
;; SERVER: 10.99.1.2#53(10.99.1.2)
;; WHEN: Tue Nov 27 21:23:29 2012
;; MSG SIZE rcvd: 60
[3] (deleted the timestamp to make it more readable)
# Query for existing record:
Query: select content,ttl,prio,type,domain_id,name from records where
name='dhcp-gw.workstation.whnetz'
# Query for non-existing record:
Query: select content,ttl,prio,type,domain_id,name from records where
name='asdf.workstation.whnetz'
Query: select content,ttl,prio,type,domain_id,name from records where
type='SOA' and name='asdf.workstation.whnetz'
Query: select content,ttl,prio,type,domain_id,name from records where
type='SOA' and name='workstation.whnetz'
Query: select content,ttl,prio,type,domain_id,name from records where
name='*.workstation.whnetz'
[4] AXFR (deleted the hostname and timestamp to make it more readable)
# Master
pdns-hidden[27775]: Zone 'workstation.whnetz'
(/etc/powerdns/bind-config/zones/master.workstation.whnetz.de) needs
reloading
pdns-hidden[27775]: Zone 'workstation.whnetz'
(/etc/powerdns/bind-config/zones/master.workstation.whnetz.de) reloaded
pdns-hidden[27775]: Zone 'workstation.whnetz.de'
(/etc/powerdns/bind-config/zones/master.workstation.whnetz.de) needs
reloading
pdns-hidden[27775]: Zone 'workstation.whnetz.de'
(/etc/powerdns/bind-config/zones/master.workstation.whnetz.de) reloaded
pdns-hidden[27775]: 2 domains for which we are master need notifications
pdns-hidden[27775]: Queued notification of domain 'workstation.whnetz'
to 10.99.1.2
pdns-hidden[27775]: Queued notification of domain 'workstation.whnetz'
to 10.99.1.6
pdns-hidden[27775]: Queued notification of domain
'workstation.whnetz.de' to 10.99.1.2
pdns-hidden[27775]: Queued notification of domain
'workstation.whnetz.de' to 10.99.1.6
pdns-hidden[27775]: AXFR of domain 'workstation.whnetz' initiated by
10.99.1.6
pdns-hidden[27775]: gpgsql Connection succesful
pdns-hidden[27775]: AXFR of domain 'workstation.whnetz' to 10.99.1.6
finished
pdns-hidden[27775]: AXFR of domain 'workstation.whnetz.de' initiated by
10.99.1.6
pdns-hidden[27775]: gpgsql Connection succesful
pdns-hidden[27775]: AXFR of domain 'workstation.whnetz.de' to 10.99.1.6
finished
pdns-hidden[27775]: AXFR of domain 'workstation.whnetz.de' initiated by
10.99.1.2
pdns-hidden[27775]: gpgsql Connection succesful
pdns-hidden[27775]: AXFR of domain 'workstation.whnetz.de' to 10.99.1.2
finished
pdns-hidden[27775]: AXFR of domain 'workstation.whnetz' initiated by
10.99.1.2
pdns-hidden[27775]: gpgsql Connection succesful
pdns-hidden[27775]: AXFR of domain 'workstation.whnetz' to 10.99.1.2
finished
pdns-hidden[27775]: No master domains need notifications
pdns-hidden[27775]: Removed from notification list: 'workstation.whnetz'
to 10.99.1.2 (was acknowledged)
pdns-hidden[27775]: Removed from notification list:
'workstation.whnetz.de' to 10.99.1.2 (was acknowledged)
pdns-hidden[27775]: Removed from notification list:
'workstation.whnetz.de' to 10.99.1.6 (was acknowledged)
pdns-hidden[27775]: Removed from notification list: 'workstation.whnetz'
to 10.99.1.6 (was acknowledged)
# Slave
pdns[29329]: Received valid NOTIFY for workstation.whnetz (id=11) from
master 10.99.1.3: 2012112722 > 2012100220
pdns[29329]: Received valid NOTIFY for workstation.whnetz.de (id=4) from
master 10.99.1.3: 2012112722 > 2012100220
pdns[29329]: gpgsql Connection succesful
pdns[29329]: AXFR started for 'workstation.whnetz.de', transaction started
pdns[29329]: AXFR done for 'workstation.whnetz.de', zone committed
pdns[29329]: gpgsql Connection succesful
pdns[29329]: AXFR started for 'workstation.whnetz', transaction started
pdns[29329]: AXFR done for 'workstation.whnetz', zone committed
pdns[29329]: Received NOTIFY for workstation.whnetz from master
10.99.1.3, we are up to date: 2012112722<=2012112722
pdns[29329]: Received NOTIFY for workstation.whnetz.de from master
10.99.1.3, we are up to date: 2012112722<=2012112722
More information about the Pdns-users
mailing list