dstapp / docker-ddns

Easy-to-deploy dynamic DNS with Docker, Go and Bind9
MIT License
650 stars 155 forks source link

Could not resolve hostname : Name or service not known #41

Open dipenpatel235 opened 4 years ago

dipenpatel235 commented 4 years ago

i have done setup. and also update ddclient. and no any error.

but after that i am ping mine created subdomain that is not ping or ssh. i have also done port forwarding in my router port 80 and 22. getting below error.

Could not resolve hostname : Name or service not known i have setup my ddns server on cloud with static ip with hostname .

dstapp commented 4 years ago

Hey, can you give me some details on how you set this up on your side?

dipenpatel235 commented 4 years ago

hello @dprandzioch here i have attached screenshot of my domain (growth.recipes) on aws route 53.

1

now i am doing ssh on that server growth.recipes and setup your docker ddns server by below command.

docker run -it -d \
>     -p 8080:8080 \
>     -p 53:53 \
>     -p 53:53/udp \
>     -e SHARED_SECRET=changeme \
>     -e ZONE=growth.recipes \
>     -e RECORD_TTL=3600 \
>     --name=mymachine \
>     davd/docker-ddns:latest
Unable to find image 'davd/docker-ddns:latest' locally
Trying to pull repository docker.io/davd/docker-ddns ... 
latest: Pulling from docker.io/davd/docker-ddns
22dbe790f715: Pull complete 
f6ad9d255138: Pull complete 
98d81eb36ba2: Pull complete 
02819c639fe6: Pull complete 
811aa0cfcdb0: Pull complete 
4887ab4e1c4c: Pull complete 
Digest: sha256:9b27b50305f9c2ff51bf39f610f7d4e73570b5297c31a4ba78f4a656b1e92470
Status: Downloaded newer image for docker.io/davd/docker-ddns:latest
4285f5852d99b45fa62c71a61e38bb4aeab38ba424012c33342aea38e23ac239

then i am fireing from browser below url from my linux client machine that in in local network with public ip 219.91.190.91 and attached screenshot

2

http://growth.recipes:8080/update?secret=changeme&domain=mymachine&addr=219.91.190.91

then i have did router in port forwarding 80.

3

then i have setup in my local machine 192.168.1.126 nginx on port 80 and i am trying to open below url from browser http://mymachine.growth.recipes

let me know if anything is wrong.

dipenpatel235 commented 4 years ago

hey @dprandzioch can u u help me to fix it above issue ?

Thanks

vamsiduranc commented 3 years ago

Dear @dprandzioch hope you are doing good.

I too have same issue. I have setup docker-ddns container as per instructions and I was able to run API. Below are the images for reference image

API Result: image

docker-ddns logs: image

I have updated domain records as follows: image image

But when we try to ping the domain recreated using API, it is not getting resolved image

Can you please help us in fixing this issue and make our DynDns work... Thank you in advance!