New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

docker-mini-dns

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-mini-dns

Runs a tiny A-Record DNS server that lets you get to docker containers by hostname

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

docker-mini-dns server

This package fires up a tiny DNS server whose sole purpose is to listen for DNS lookups and try to resolve by matching running container names.

This is specifically for docker native on OSX, where everything is a port on localhost.

How it works:

  • DNS query for a docker image *.docker comes in (e.g., you browse to http://example.docker:9000)
  • Server tests against docker ps to try to match the name and returns 127.0.0.1 if successful

Setup

  • sudo mkdir /etc/resolver
  • sudo touch /etc/resolver/docker && chown $USER /etc/resolver/docker
  • docker-mini-dns &
  • ./restart_mdns.sh -- this is apparently needed to flush the DNS cache on 10.11 and higher

Keywords

docker

FAQs

Package last updated on 02 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts