GeoIP-DNS

This commit is contained in:
Arya Kiran 2022-12-14 13:45:05 +05:30
parent 680f03f82e
commit e97c740d09
No known key found for this signature in database
GPG Key ID: 3A6EA2D0EE314EEF
2 changed files with 32 additions and 5 deletions

19
master/geo.conf Normal file
View File

@ -0,0 +1,19 @@
gcdn.vern.cc:
- geo: "*;*;*"
A: 5.161.108.85
TXT: "Worldwide (US Server)"
- geo: "AS;*;*"
A: 192.46.210.187
TXT: "Asia (India Server)"
- geo: "EU;*;*"
A: 192.46.210.187
TXT: "Europe (India Server Currently)"
- geo: "EU;NO;*"
A: 5.161.108.85
TXT: "New York (Norway speeds are better to our US Server than India one)"
- geo: "AF;*;*"
A: 192.46.210.187
TXT: "Africa (India Server Currently)"
- geo: "OC;*;*"
A: 192.46.210.187
TXT: "Oceania (India Server Currently)"

View File

@ -1,8 +1,8 @@
# This file must be placed in /etc/knot/knot.conf
server: server:
rundir: "/run/knot" rundir: "/run/knot"
user: knot:knot user: knot:knot
listen: [ 127.0.0.1@53, ::1@53, 139.144.17.216@53 ] listen: 0.0.0.0@53
listen: ::@53
log: log:
- target: syslog - target: syslog
@ -13,20 +13,27 @@ database:
remote: remote:
- id: secondary - id: secondary
address: 167.114.67.70@53 address: 192.46.210.187@53
acl: acl:
- id: acl_secondary - id: acl_secondary
address: 167.114.67.70 address: 192.46.210.187
action: transfer action: transfer
template: template:
- id: default - id: default
storage: "/var/lib/knot/zones" storage: "/etc/knot/zones"
file: "%s.zone" file: "%s.zone"
dnssec-signing: on dnssec-signing: on
semantic-checks: on semantic-checks: on
mod-geoip:
- id: geo
config-file: "/etc/knot/geo.conf"
mode: geodb
geodb-file: "/var/lib/knot/GeoLite2-City.mmdb"
geodb-key: [ continent/code, country/iso_code, city/names/en ]
zone: zone:
- domain: vern0.me - domain: vern0.me
notify: secondary notify: secondary
@ -34,3 +41,4 @@ zone:
- domain: vern.cc - domain: vern.cc
notify: secondary notify: secondary
acl: acl_secondary acl: acl_secondary
module: mod-geoip/geo