[GH-ISSUE #83] Hostname for the host machine IP #37

Closed
opened 2026-02-26 04:33:51 +03:00 by kerem · 0 comments
Owner

Originally created by @mageddo on GitHub (Jul 21, 2018).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/83

Docker host have an IP, that way you can reference the host machine, this IP can change though, so it would be great if DPS has some hostname entry to dynamically reference the host IP. Something like host.docker that way users can solve hostname IP in a dynamic way.

Inside docker container you can recover host IP by just running bellow command

ip r | awk '/default/{print $3}'

it also works with docker swarm ingres network

Originally created by @mageddo on GitHub (Jul 21, 2018). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/83 Docker host have an IP, that way you can reference the host machine, this IP can change though, so it would be great if DPS has some hostname entry to dynamically reference the host IP. Something like `host.docker` that way users can solve hostname IP in a dynamic way. Inside docker container you can recover host IP by just running bellow command ```bash ip r | awk '/default/{print $3}' ``` it also works with docker swarm ingres network
kerem 2026-02-26 04:33:51 +03:00
  • closed this issue
  • added the
    feature
    label
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/dns-proxy-server-mageddo#37
No description provided.