Sqlite + GeoIP backend working on primary, failing on all secondaries #14601
-
I am trying to achieve basic GeoIP responses with pickclosest alongside of keeping my zones in SQLite backend. On primary it works absolutely fine but not on any of secondaries. Config on primary & secondary is mostly similar and so does the packages (to best of my knowledge). Primary config:
and secondary:
Packages wise both have:
I see geo records on secondaries when looking at Unsure if I am missing some package on secondary or somehow this setup just doesn't work on secondaries? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
can you show us the list-zone output from both machines, and dig output from both machines? |
Beta Was this translation helpful? Give feedback.
-
Sure, here it is: Primary
Secondary
|
Beta Was this translation helpful? Give feedback.
-
Interesting. Thanks a lot for this input. How about something like having “geo” as a sub unsigned zone with delegation on same set of servers ? (Surely not as safe as signed zone as effectively dnssec would be disabled) but curious to see if that will work. |
Beta Was this translation helpful? Give feedback.
if (rr.dr.d_type == QType::LUA && !d_dk.isPresigned(d_sd.qname)) {
as I somewhat started to suspect when I saw DNSSEC signatures in your
list-zone
, we don't execute LUA records in presigned zones, because we can't generate valid signatures for the output. You'll have to switch to native replication, or have both machines AXFR the zone from an unsigned (hidden) primary and have the private key on both.