Problem with configuring the geoip module in Knot3.0.11 version
Hello, I am currently learning the geoip module in Knot and encountered the following issues during the configuration process:
[root@localhost home]# knotd -c /etc/knot/knot.conf
2023-05-05T15:29:26+0800 error: config, file '/etc/knot/knot.conf', line 11, item 'mod', value 'geodb' (invalid item)
2023-05-05T15:29:26+0800 critical: failed to load configuration file '/etc/knot/knot.conf' (invalid item)
The relevant configuration files are as follows:
- The knot.conf:
server:
listen: 127.0.0.1@53
log:
target: stdout
any: info
mod-geoip:
id: geo
config-file: "/var/lib/knot/geo.conf"
mod: geodb
geodb-file: "/home/GeoLite2-City/GeoLite2-City.mmdb"
geodb-key: [country/iso_code, city/names/en]
zone:
domain: example.com
storage: /var/lib/knot/
file: example.com.zone
module: mod-geoip/geo
- The geo.conf:
geo: "CZ;Prague"
A: 192.0.2.0
TXT: "Prague"
geo: "CZ;Brno"
A: 192.0.2.1
TXT: "Brno"
geo: "CZ;*"
A: 192.0.2.2
TXT: "Czechia"
Looking forward to your reply very much!!