ziti-doc icon indicating copy to clipboard operation
ziti-doc copied to clipboard

how-to use docker with local DNS

Open dovholuknf opened this issue 2 years ago • 2 comments

We need setup guides illustrating how to stand up docker and have it advertise the machine's hostname/fqdn to clients instead of the default it ships with of "ziti-controller" or "ziti-edge-router" etc

dovholuknf avatar Feb 14 '23 12:02 dovholuknf

Why the Docker host's hostname? You want apps running in containers to be able to resolve the DNS name of the controller and routers, correct?

One way to approach this is to run a nameserver. Then, the Docker daemon and the Docker host's OS can be configured to use the nameserver.

For reference, this PR added an optional nameserver to the local quickstart. It was pre-configured with the DNS records for the controller. That way I could use the ziti CLI and edge SDKs with ordinary domain names.

qrkourier avatar Feb 22 '23 20:02 qrkourier

Possibly useful for this: https://nip.io/

qrkourier avatar Mar 25 '23 01:03 qrkourier