Bugzilla – Full Text Bug Listing
|Summary:||'inform' local-zone uses local-data|
|Product:||unbound||Reporter:||JINMEI Tatuya <jtatuya>|
|Component:||server||Assignee:||unbound team <unbound-team>|
Description JINMEI Tatuya 2016-12-01 23:39:20 CET
If you configure an 'inform' type of local-zone with local-data: local-zone: example.com inform local-data: 'www.example.com IN A 192.0.2.1' and send a query for that local data, unbound returns that local data: % dig @127.0.0.1 www.example.com +short 192.0.2.1 Is that intentional? example.conf says # o inform resolves normally, but logs client IP address and unbound.conf(5) says 'The query is answered normally.'. "resolves/answered normally" doesn't sound like using the local-data. In that case either the actual behavior or the documentation is incorrect (or at least the doc can be confusing IMO). I've confirmed this for svn trunk revision 3943.
Comment 1 Wouter Wijngaards 2016-12-02 08:31:41 CET
Hi Jinmei, Yes that was intentional, it resolves like the type 'transparent'. Most people, I guess, don't give a local-data. But if you do, it works like expected. Do you think the documentation should be changed? As a feature, it is not that useful. But it is also not really a bug. Best regards, Wouter
Comment 2 JINMEI Tatuya 2016-12-02 16:48:40 CET
okay, in that case I'd suggest revising example.conf from: # o inform resolves normally, but logs client IP address to: # o inform same as transparent, but also logs client IP address and unbound.conf(5) from: The query is answered normally. The client IP address.. to: The query is answered like 'transparent'. In addition, the client IP address...
Comment 3 Wouter Wijngaards 2016-12-05 13:59:30 CET
Hi Jinmei, Adjusted the documentation. Thanks for the report. Best regards, Wouter