Coder Social home page Coder Social logo

Comments (7)

jwulf avatar jwulf commented on August 18, 2024

Have a look here:
http://askubuntu.com/questions/500162/how-do-i-restart-dnsmasq

from docker-dnsmasq.

Caroga avatar Caroga commented on August 18, 2024

Thank you @jwulf but I don't see how this applies to my issue?
I'm not looking for (re)starting/stopping the service, I am looking for a way to make them work together.
As I do not know what the consequences are of disabling this service on my laptop I really don't think it's okay just to deactive it.

from docker-dnsmasq.

andyshinn avatar andyshinn commented on August 18, 2024

Do you need the dnsmasq container running to server 127.0.1.1:53? It looks like the default Ubuntu dnsmasq is bound specifically to the loopback interface. Could you do something like specify the specific IP address of the host for the container to listen on (such as -p <ip>:53/tcp -p <ip>:53/udp)?

from docker-dnsmasq.

Caroga avatar Caroga commented on August 18, 2024

yeah that might work pretty well, make the dnsmasq server listen on 172.17.0.1.
Ill try that later on, will report back if it works.

from docker-dnsmasq.

Caroga avatar Caroga commented on August 18, 2024

So I've tried the following inside my docker-compose file:

  dns:
    image: andyshinn/dnsmasq:2.76
    cap_drop:
      - NET_ADMIN
    ports:
      - 172.17.0.1:53:53/tcp
      - 172.17.0.1:53:53/udp

But the docker container just exits immediately. I have not found out why.

Edit: same goes for 127.0.0.1

from docker-dnsmasq.

andyshinn avatar andyshinn commented on August 18, 2024

OK, that is separate from the port in use issue. That could be related to http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2014q2/008540.html. You need NET_ADMIN to do DHCP stuff with dnsmasq and may also need the dhcp-broadcast option.

from docker-dnsmasq.

andyshinn avatar andyshinn commented on August 18, 2024

Going to close this as the original issue didn't seem like it was part of this image but a port clashing issue. Let me know if there is still a problem being experienced.

from docker-dnsmasq.

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.