[GH-ISSUE #130] How to correctly distinguish normal subrecords from country codes when subrecords are the same as country codes #378

Open
opened 2026-03-13 14:48:49 +03:00 by kerem · 6 comments
Owner

Originally created by @shirakun on GitHub (Oct 23, 2021).
Original GitHub issue: https://github.com/abh/geodns/issues/130

Hi

I looked at this sample configuration and I had a question
https://github.com/abh/geodns/blob/main/dns/test.example.com.json

When I set up the following record for example.com

{
    "": {
        "a": [
            [
                "192.168.1.1",
                10
            ]
        ]
    },
    "my": {
        "a": [
            [
                "192.168.1.2",
                10
            ]
        ]
    },
    "se": {
        "a": [
            [
                "192.168.1.3",
                10
            ]
        ]
    }
}

Attempts to request records from Sweden for example.com will return 192.168.1.3
A request from Malaysia will return 192.168.1.2

But
my here stands for myself
se here stands for Special Edition

https://github.com/abh/geodns/issues/50

I found other similar questions in issues
but no solution

How to distinguish between geo records and normal records?

Originally created by @shirakun on GitHub (Oct 23, 2021). Original GitHub issue: https://github.com/abh/geodns/issues/130 Hi I looked at this sample configuration and I had a question https://github.com/abh/geodns/blob/main/dns/test.example.com.json When I set up the following record for `example.com` ``` { "": { "a": [ [ "192.168.1.1", 10 ] ] }, "my": { "a": [ [ "192.168.1.2", 10 ] ] }, "se": { "a": [ [ "192.168.1.3", 10 ] ] } } ``` Attempts to request records from `Sweden` for `example.com` will return `192.168.1.3` A request from `Malaysia` will return `192.168.1.2` But `my` here stands for` myself` `se` here stands for `Special Edition` https://github.com/abh/geodns/issues/50 I found other similar questions in issues but no solution How to distinguish between geo records and normal records?
Author
Owner

@gmmoura commented on GitHub (Nov 5, 2021):

my here stands for myself se here stands for Special Edition

How so?

GeoDNS subzones are exactly this my and se, which are country codes used by Maxmind.
Are you trying to override it?

<!-- gh-comment-id:961945516 --> @gmmoura commented on GitHub (Nov 5, 2021): `my here stands for myself se here stands for Special Edition` How so? GeoDNS subzones are exactly this my and se, which are country codes used by Maxmind. Are you trying to override it?
Author
Owner

@shirakun commented on GitHub (Nov 19, 2021):

my here stands for myself se here stands for Special Edition

How so?

GeoDNS subzones are exactly this my and se, which are country codes used by Maxmind. Are you trying to override it?

I don't know how to describe this problem in English

I don't know if you can understand him if I describe him like this

I set 3 a records

  • abc.com -> 1.1.1.1
  • my.abc.com -> 1.1.1.2
  • se.abc.com -> 1.1.1.3

I want to:

  • All regions of the world abc.com -> 1.1.1.1
  • All regions of the world my.abc.com -> 1.1.1.2
  • All regions of the world se.abc.com -> 1.1.1.3
<!-- gh-comment-id:973599661 --> @shirakun commented on GitHub (Nov 19, 2021): > `my here stands for myself se here stands for Special Edition` > > How so? > > GeoDNS subzones are exactly this my and se, which are country codes used by Maxmind. Are you trying to override it? I don't know how to describe this problem in English I don't know if you can understand him if I describe him like this I set 3 a records - abc.com -> 1.1.1.1 - my.abc.com -> 1.1.1.2 - se.abc.com -> 1.1.1.3 I want to: - All regions of the world `abc.com` -> 1.1.1.1 - All regions of the world `my.abc.com` -> 1.1.1.2 - All regions of the world `se.abc.com` -> 1.1.1.3
Author
Owner

@matheswaran99 commented on GitHub (Aug 10, 2022):

@abh Is there any solution for this scenario?

<!-- gh-comment-id:1210558021 --> @matheswaran99 commented on GitHub (Aug 10, 2022): @abh Is there any solution for this scenario?
Author
Owner

@ghost commented on GitHub (Oct 2, 2022):

@abh

Hello, I need this too.

<!-- gh-comment-id:1264554565 --> @ghost commented on GitHub (Oct 2, 2022): @abh Hello, I need this too.
Author
Owner

@lanceocc commented on GitHub (Mar 28, 2024):

@abh

Hello, I need this too.

<!-- gh-comment-id:2024584446 --> @lanceocc commented on GitHub (Mar 28, 2024): @abh Hello, I need this too.
Author
Owner

@shirakun commented on GitHub (Mar 28, 2024):

@abh

Hello, I need this too.

Hi
geodns doesn't seem to solve this problem,when looking at the readme you will find geodns all around the geo record function
I recommend knot dns
This is the alternative to geodns that I have found so far.
knot dns is easier to configure and supports geo record and doesn't have this issue

https://www.knot-dns.cz/
https://blog.apnic.net/2018/11/14/geoip-in-knot-dns-2-7/

<!-- gh-comment-id:2024632902 --> @shirakun commented on GitHub (Mar 28, 2024): > @abh > > Hello, I need this too. Hi geodns doesn't seem to solve this problem,when looking at the readme you will find geodns all around the geo record function I recommend knot dns This is the alternative to geodns that I have found so far. knot dns is easier to configure and supports geo record and doesn't have this issue https://www.knot-dns.cz/ https://blog.apnic.net/2018/11/14/geoip-in-knot-dns-2-7/
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/geodns#378
No description provided.