Ville Vesilehto
077774e0cd
ci: run plugin tests on Windows ( #8314 )
...
Plugin package tests previously ran only on Linux, so Windows-
specific failures were never caught. Run them in CI and make the
affected tests portable across platforms.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi >
2026-07-19 03:52:23 -07:00
Eric Case
8f48704abe
plugin/geoip: Upgrade to geoip2-golang v2 ( #7732 )
...
Signed-off-by: Eric Case <eric.case@gmail.com >
2025-12-08 20:19:47 +00:00
Tomas Boros
b472d3dbdb
plugin/geoip - Support for ISO 3166-2 subdivisions. ( #7728 )
...
Metadata `geoip/subdivisions/code` now available if geoip plugin is used.
Signed-off-by: Tomas Boros <tomas.boros92@gmail.com >
2025-12-02 12:39:13 +00:00
Eric Case
54dd258d57
plugin/geoip: Add ASN schema support ( #7730 )
...
Adds the ability to query ASN .mmdb databases, in addition to the existing City db functionality.
Signed-off-by: Eric Case <eric.case@gmail.com >
2025-11-30 16:36:33 +00:00
Ville Vesilehto
9f9aed31cf
test: add t.Helper() calls to test helper functions ( #7351 )
2025-06-04 14:36:04 -07:00
Manuel Rüger
76ba39ffe9
chore: Upgrade to golangci-lint v2 ( #7236 )
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu >
2025-04-04 14:27:39 -04:00
James Kang
9b4a00ff4a
chore: remove repetitive word ( #6564 )
2024-03-23 09:57:33 +00:00
Chris O'Haver
7813b6e090
plugin/geoip: Add GLSB example ( #5795 )
...
* add glsb example
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
2022-12-07 12:27:23 +01:00
Ondřej Benkovský
c2dbb7141a
add golangci-lint linter ( #5499 )
2022-07-10 11:06:33 -07:00
Balazs Nagy
4ae29a449c
geoip: read source IP from EDNS0 subnet if provided ( #5183 )
...
* geoip: read source IP from EDNS0 subnet if provided
This patch implements EDNS backend processing (similar in powerdns: https://doc.powerdns.com/authoritative/settings.html#setting-edns-subnet-processing ). This feature comes very handy to test whether your geo config is working properly.
Signed-off-by: Balazs Nagy <julsevern@gmail.com >
2022-05-02 18:25:02 +01:00
xuweiwei
7e12327ab1
plugin/geoip: cleanup code ( #5009 )
...
remove unnecessary float64 convert and clean code
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com >
2021-11-24 09:24:49 +01:00
xww
f6ffafe229
Fix a typo in plugin/geoip/README.md ( #4978 )
...
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com >
Co-authored-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com >
2021-11-10 21:20:40 -05:00
coredns[bot]
3f881c7202
auto remove trailing whitespaces
...
Signed-off-by: coredns[bot] <bot@bot.coredns.io >
2021-07-20 10:28:21 +00:00
Sven Nebel
21f1207afe
Create geoip plugin ( #4688 )
...
* Create geoip plugin
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Update plugin/geoip/README.md
Co-authored-by: Miek Gieben <miek@miek.nl >
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Update plugin/geoip/README.md
Co-authored-by: Miek Gieben <miek@miek.nl >
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Update plugin/geoip/README.md
Co-authored-by: Miek Gieben <miek@miek.nl >
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Move DBFILE bullet below example
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Update plugin/geoip/README.md
Co-authored-by: Miek Gieben <miek@miek.nl >
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Remove plugin name test case
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Remove languages option
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Update free database link
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Remove last language bits
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Use 127.0.0.1 as probing IP
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Update plugin/geoip/geoip.go
Co-authored-by: Miek Gieben <miek@miek.nl >
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Update plugin/geoip/geoip.go
Co-authored-by: Miek Gieben <miek@miek.nl >
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Use relative path for fixtures dir
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Set names with default string zero value
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Remove unused db types
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Remove non city databases in testdata
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Remove create databases main
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Fix metadata label format test case
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Fix import path block
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* go fmt after changes
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Tidy up go.mod and go.sum
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
* Add plugin to CODEOWNERS
Signed-off-by: Sven Nebel <nebel.sven@gmail.com >
Co-authored-by: Miek Gieben <miek@miek.nl >
2021-07-14 09:25:30 +02:00