[GH-ISSUE #141] Geo dns not work #384

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

Originally created by @sadeghpro on GitHub (Jan 18, 2024).
Original GitHub issue: https://github.com/abh/geodns/issues/141

Hi every one, I have a file named s-m.app.json that contains this

{
    "serial":1394372421,
    "ttl":    120,
    "targeting": "country continent @ regiongroup region asn",
    "data":{
        "":{
            "ns": [ "ns1.s-m.app", "ns2.s-m.app" ],
            "a":[
                [
                   "157.90.127.83",
                   "100"
                ]
            ]
        },
        "test":{
            "ns": [ "ns1.s-m.app", "ns2.s-m.app" ],
            "a":[
                [
                   "157.90.127.83",
                   "100"
                ]
            ]
        },
        "test.asia":{
            "ns": [ "ns1.s-m.app", "ns2.s-m.app" ],
            "a":[
                [
                   "185.53.143.66",
                   "100"
                ]
            ]
        }
    }
}

but when I ran below command from asia I don't get correct ip
➜ ~ dig -t a +short test.s-m.app
157.90.127.83
➜ ~ dig -t a +short test.asia.s-m.app
185.53.143.66

as you see it get test.asia record as subdomain.

I build geodns with this docker file

FROM golang:1.22rc1

RUN apt-get update \
 && apt-get install -y libgeoip-dev


RUN git clone https://github.com/abh/geodns.git /geodns
WORKDIR /geodns
RUN go build && ./geodns -h

CMD [ "./geodns", "-log" ]

and run it with this docker-compose.yml file

version: '3.3'
services:
  geodns:
    image: sadeghpro/geodns:1.0.1
    container_name: geodns
    restart: unless-stopped
    volumes:
      - ./dns:/geodns/dns
    ports:
      - "53:53/udp"
      - "53:53"
      - "8053:8053"

I tried asia.test with putting "version": 2 at top of file but nothing changed.

Originally created by @sadeghpro on GitHub (Jan 18, 2024). Original GitHub issue: https://github.com/abh/geodns/issues/141 Hi every one, I have a file named s-m.app.json that contains this ``` { "serial":1394372421, "ttl": 120, "targeting": "country continent @ regiongroup region asn", "data":{ "":{ "ns": [ "ns1.s-m.app", "ns2.s-m.app" ], "a":[ [ "157.90.127.83", "100" ] ] }, "test":{ "ns": [ "ns1.s-m.app", "ns2.s-m.app" ], "a":[ [ "157.90.127.83", "100" ] ] }, "test.asia":{ "ns": [ "ns1.s-m.app", "ns2.s-m.app" ], "a":[ [ "185.53.143.66", "100" ] ] } } } ``` but when I ran below command from asia I don't get correct ip ➜ ~ dig -t a +short test.s-m.app 157.90.127.83 ➜ ~ dig -t a +short test.asia.s-m.app 185.53.143.66 as you see it get test.asia record as subdomain. I build geodns with this docker file ``` FROM golang:1.22rc1 RUN apt-get update \ && apt-get install -y libgeoip-dev RUN git clone https://github.com/abh/geodns.git /geodns WORKDIR /geodns RUN go build && ./geodns -h CMD [ "./geodns", "-log" ] ``` and run it with this `docker-compose.yml` file ``` version: '3.3' services: geodns: image: sadeghpro/geodns:1.0.1 container_name: geodns restart: unless-stopped volumes: - ./dns:/geodns/dns ports: - "53:53/udp" - "53:53" - "8053:8053" ``` I tried `asia.test` with putting `"version": 2` at top of file but nothing changed.
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#384
No description provided.