Module for geoip-based responses
Hi,friend.
I have a problem, and hope you give me help, thanks very much.
I run branch "module-geoip-rebased" code, configure:
mod-geoip:
- id: default
#database: /usr/share/GeoLite2/GeoLite2-Country.mmdb
database: /usr/share/GeoIP/GeoLite2-Country.mmdb
template:
- id: default
storage: "/usr/local/knotgeo/var/lib/knot"
module: mod-geoip/default
zone:
- domain: home.lan
file: "home.lan.zone"
template: default
home.lan.zone conf:
$ORIGIN home.lan. ; default zone domain
$TTL 86400 ; default time to live
@ IN SOA ns1.home.lan. admin.home.lan. (
2011010203 ; serial number
28800 ; Refresh
7200 ; Retry
864000 ; Expire
86400 ; Min TTL
)
NS ns1.home.lan.
MX 10 mail.home.lan.
firewall.au A 172.199.13.31
and I run command knotd -d
Then do test by command:
# dig @172.199.13.20 firewall.home.lan
knotd: knot/modules/geoip/geoip.c:232: geoip_answer: Assertion '_ctx' failed.
coredump .....