Skip to content

lobinho/name_resolver

 
 

Repository files navigation

Name resolver

When developing the web services it is important to be able to reach the published endpoints by the service name not just IP address. There are some exisiting projects/tools that help one do that. For example, devdns. But it does not work on all platforms, or it takes a lot of time and effort to make it work. The easier approach is just to edit /etc/hosts file (C:\Windows\System32\drivers\etc\hosts for Windows). This project takes devdns as a base and edit the hosts file dynamically when a new docker container starts/stops.

Usage

python3 -m pip install .
name_resolver

or start docker container:

docker build . -t name_resolver
docker run -v /etc/hosts:/etc/hosts -v /var/run/docker.sock:/var/run/docker.sock --rm name_resolver

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.7%
  • Dockerfile 6.3%