Code Monkey home page Code Monkey logo

Comments (4)

doublehelix avatar doublehelix commented on June 14, 2024

I have the same issue.
There seems to be no way to manually configure an IP address for DNS.

The configuration I have is:

  • Docker PiHole connected to MacVLan.
  • DHCP Server broadcasts PiHole MacVLan IP for DNS for all clients on the network.
  • The Nginx Proxy manager in docker tries to use, but CANNOT see the IP address of the PiHole (MacVLan network is not accessible to other docker containers - by design)
  • I have no way to tell NPM to use an alternate DNS IP.

Even if we have to edit a config file, it would be better than nothing.
An option in the GUI would also be great though!?

from nginx-proxy-manager.

barrelltitor avatar barrelltitor commented on June 14, 2024

@doublehelix why not just use the dns option in docker compose? You just add e.g dns: 192.168.1.5 on the same level as container_name, image, etc

from nginx-proxy-manager.

doublehelix avatar doublehelix commented on June 14, 2024

@doublehelix why not just use the dns option in docker compose? You just add e.g dns: 192.168.1.5 on the same level as container_name, image, etc

Unfortunately that doesn't work due to network isolation within docker containers and networks.
The only solution I've found so far is to network pihole on a macVLan and create a shared bridge that is used by all containers that need to use the DNS services in the pihole container (including nginx).
This has the unfortunate side effect that all docker containers are now networked together. Not ideal, and the opposite of the intention of isolation by default.

The other solution of course is to not host DNS in docker. (Which is the route I ended up taking in the meantime)

from nginx-proxy-manager.

barrelltitor avatar barrelltitor commented on June 14, 2024

all docker containers are now networked together.

You can setup firewall rules on that network to:

  • accept anything to/from the pihole specific IP and ports you need
  • drop everything else

That way they will not really be networked together, as the connection would be immediately dropped.

from nginx-proxy-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.