[GH-ISSUE #4] Api doesn't work #1

Closed
opened 2026-03-07 19:34:38 +03:00 by kerem · 7 comments
Owner

Originally created by @alfmannew on GitHub (Oct 4, 2021).
Original GitHub issue: https://github.com/anantadwi13/dns-server-manager/issues/4

In container
curl http://127.0.0.1:5555/zones
[]
curl http://localhost:5555/zones
[]

chrome
http://ip:5555/zones
[]

Bind works.

Originally created by @alfmannew on GitHub (Oct 4, 2021). Original GitHub issue: https://github.com/anantadwi13/dns-server-manager/issues/4 In container curl http://127.0.0.1:5555/zones [] curl http://localhost:5555/zones [] chrome http://ip:5555/zones [] Bind works.
kerem closed this issue 2026-03-07 19:34:38 +03:00
Author
Owner

@anantadwi13 commented on GitHub (Oct 5, 2021):

Hi @alfmannew,

Could you explain what the problem is? Which version did you use? Please, provide the steps to reproduce this problem.

Thank you.

<!-- gh-comment-id:934397499 --> @anantadwi13 commented on GitHub (Oct 5, 2021): Hi @alfmannew, Could you explain what the problem is? Which version did you use? Please, provide the steps to reproduce this problem. Thank you.
Author
Owner

@alfmannew commented on GitHub (Oct 5, 2021):

Hi

I use docker-compose
latest image

  dns:
    image: "anantadwi13/dns-server-manager:latest"
    container_name: "dns"
    hostname: "dns"
    volumes:
      - /data/docker-data/dns/bind/zones:/etc/bind/zones
      - /data/docker-data/dns/bind/named.conf.local:/etc/bind/named.conf.local
      - /data/docker-data/dns/tmp:/data
    ports:
      - "5555:5555"
Container details
LABELS
org.opencontainers.image.description	Manage DNS Server (Bind9) via REST API
org.opencontainers.image.source	https://github.com/anantadwi13/dns-server-manager
org.opencontainers.image.title	dns-server-manager
org.opencontainers.image.url	https://github.com/anantadwi13/dns-server-manager
org.opencontainers.image.version	0.3.0

Bind works.

Docs - OK
http://ip:5555/docs#

Api doesn't work

<!-- gh-comment-id:934575921 --> @alfmannew commented on GitHub (Oct 5, 2021): Hi I use docker-compose latest image ``` dns: image: "anantadwi13/dns-server-manager:latest" container_name: "dns" hostname: "dns" volumes: - /data/docker-data/dns/bind/zones:/etc/bind/zones - /data/docker-data/dns/bind/named.conf.local:/etc/bind/named.conf.local - /data/docker-data/dns/tmp:/data ports: - "5555:5555" ``` ``` Container details LABELS org.opencontainers.image.description Manage DNS Server (Bind9) via REST API org.opencontainers.image.source https://github.com/anantadwi13/dns-server-manager org.opencontainers.image.title dns-server-manager org.opencontainers.image.url https://github.com/anantadwi13/dns-server-manager org.opencontainers.image.version 0.3.0 ``` Bind works. Docs - OK http://ip:5555/docs# Api doesn't work
Author
Owner

@anantadwi13 commented on GitHub (Oct 5, 2021):

Hi,
Can you give me more details on "Api doesn't work"? Is it about connection refused, internal server error, or anything else?

Btw, you don't need to mount any folders inside /etc/bind. You just need to mount /data to persist the container's data.

<!-- gh-comment-id:934627560 --> @anantadwi13 commented on GitHub (Oct 5, 2021): Hi, Can you give me more details on "Api doesn't work"? Is it about connection refused, internal server error, or anything else? Btw, you don't need to mount any folders inside `/etc/bind`. You just need to mount `/data` to persist the container's data.
Author
Owner

@alfmannew commented on GitHub (Oct 5, 2021):

I mount my setting from another server (zones files and named.conf.local)

In container
curl http://127.0.0.1:5555/zones
[]
curl http://localhost:5555/zones
[]

chrome
http://ip:5555/zones
[]

# curl \
>  --header "Content-Type: application/json" \
>  --request GET \
>  "http://ip:5555/zones"
[]

api answer -->[]

<!-- gh-comment-id:934669452 --> @alfmannew commented on GitHub (Oct 5, 2021): I mount my setting from another server (zones files and named.conf.local) ``` In container curl http://127.0.0.1:5555/zones [] curl http://localhost:5555/zones [] chrome http://ip:5555/zones [] # curl \ > --header "Content-Type: application/json" \ > --request GET \ > "http://ip:5555/zones" [] ``` api answer -->[]
Author
Owner

@alfmannew commented on GitHub (Oct 5, 2021):

I think I got it.
The api doesn't work with old data (my data).
It works only with new data received via api.

<!-- gh-comment-id:934673682 --> @alfmannew commented on GitHub (Oct 5, 2021): I think I got it. The api doesn't work with old data (my data). It works only with new data received via api.
Author
Owner

@anantadwi13 commented on GitHub (Oct 5, 2021):

Unfortunately, it doesn't support restoring existing data.
Perhaps in the next version I will add this feature.

<!-- gh-comment-id:934911183 --> @anantadwi13 commented on GitHub (Oct 5, 2021): Unfortunately, it doesn't support restoring existing data. Perhaps in the next version I will add this feature.
Author
Owner

@alfmannew commented on GitHub (Oct 7, 2021):

OK, thanks

<!-- gh-comment-id:937678519 --> @alfmannew commented on GitHub (Oct 7, 2021): OK, thanks
Sign in to join this conversation.
No labels
pull-request
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/dns-server-manager#1
No description provided.