dnsmasq
caddy-docker-proxy
dnsmasq | caddy-docker-proxy | |
---|---|---|
12 | 57 | |
259 | 2,464 | |
- | - | |
0.0 | 7.4 | |
3 months ago | 5 days ago | |
C | Go | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dnsmasq
-
Open Source Ad Blocker for Mac, Windows, and Linux
That's when you connect to your VPN.
I have a network configuration with 2 dnsmasqs, 1 with pi-hole-style hosts block, and 1 without, and most of my devices get the ad-blocking DNS, 1 gets the "unfiltered" DNS, on dnsmasq you can tag MAC addresses and create different configurations (including which DNS they get) for each tag, e.g. https://github.com/imp/dnsmasq/blob/770bce967cfc9967273d0acf...
-
Working on Multiple Web Projects with Docker Compose and Traefik
This seems like an improvement over my current solution in that it can keep multiple projects open simultaneously and route to each of them, but does add more complexity to the setup.
I'm using Dnsmasq (https://thekelleys.org.uk/dnsmasq/doc.html) to map anything at .lo to the currently running project, like so:
brew install dnsmasq
-
easiest way to setup internal DNS routing?
I would use a simple dns proxy like Blocky if you want adblocking or dnsmasq if you don't.
- DNS server recommendation?
-
A Crucial Particle Physics Computer Program Risks Obsolescence | Maintenance of FORM, the 1980s software that’s used for the field's hardest calculations, rests almost entirely with one septuagenarian physicist
The wild thing about this strip is that its real https://thekelleys.org.uk/dnsmasq/doc.html.
- Why self-host DNS (unbound)?
-
Frustrated with the hardware I own
The pervious setup was much the same except the lab was under the UDMP without another gateway. I used UnifiOS to create networks(vLANs) and trusted that segregation to work. It did not. As I progressed in my home lab, I went through a few hypervisors and settled on EXSi and vSphere. 100% overkill but that is what labbing is for right? again progressing through and adding things like windows AD and many Home Automation things like Home Assistant, Node Red and MQTT. through all of this I struggled with DHCP/DNS, mostly conflicts with misconfigured vLANs etc. This led me to research the DHCP/DNS running on the UDMP, it is Dnsmasq which is very capable of doing the things I learned I needed like conditional forwarding and statics routes(yes the GUI has this, will get to that). After reading posts like this about the possibility of modifying dnsmasq through scripts, I was concerned about the viability of this long term as my 2nd use case(family) would be effected by any complications. This led me to the above design, which I then implemented.
-
Can I use a custom dns entry to get to my local dev site?
If you can handle all these, then the easiest way to setup a local dev DNS is dnsmasq. You can install it via HomeBrew.
-
Is there any way to boot an operating system over PXE?
If you are still interested, I heartily suggest using dnsmasq to do the dhcp/tftp/PXE service. I’ve used it on airgapped networks to boot systems and install a base Linux OS or run diagnostic tools.
-
Is there a systemd-free way to emulate how networkd and resolvd treat multiple networks?
It turns out that this was a rather short-term problem for me, so I do not have any reason to try my hand at a solution at this time. However, dnsmasq provides a DBus interface, so it seems like it would be trivial to script up a resolved replacement and register/unregister nameservers in runit run/finish files. Unbound's control interface may be a viable option as well.
caddy-docker-proxy
-
Take a look at traefik, even if you don't use containers
Sticky sessions are supported: https://caddyserver.com/docs/caddyfile/directives/reverse_pr..., and yes it's pluggable so you could write your own LB policy. Very easy, just copy the code from Caddy's source to write your own plugin. Let us know if you need help.
Also yes, Caddy does service discovery if you use https://github.com/lucaslorentz/caddy-docker-proxy, configuration via Docker labels. Or you can use dynamic upstreams (built-in) https://caddyserver.com/docs/caddyfile/directives/reverse_pr... to use A/AAAA or SRV DNS records to load your list of upstreams.
-
Eliminate IPv4 tax on AWS, is it that easy?
Caddy via Caddy Docker Proxy (network).
- Caddy-Docker-Proxy: Caddy as a Reverse Proxy for Docker
-
Self-Hosted Is Awesome
https://github.com/lucaslorentz/caddy-docker-proxy
It handles the routing to multiple dockerized projects on one server, by scanning docker compose files for labels and automatically setting up the required caddy configuration.
-
Keycloak SSO with Docker Compose and Nginx
My go to is always this instead:
https://github.com/lucaslorentz/caddy-docker-proxy
Single label to a docker container and with correct DNS you’ll have an automatically managed certificate right away.
-
Working on Multiple Web Projects with Docker Compose and Traefik
I have had a great experience with using this: https://github.com/lucaslorentz/caddy-docker-proxy
It combines caddy with docker-compose labels, making it super easy to spin up new projects that can immediately be exposed.
-
Caddy is the first and only web server to use HTTPS automatically and by default
If you want a slightly heavier but more robust solution, caddy-docker-proxy[0] is a plugin that listens to the Docker socket and automatically updates the Caddy configuration based on Docker labels you add to containers.
I.e. it makes Caddy act a bit more like Traefik. Most of the time, you'll just add the label `caddy.reverse_proxy={{upstreams http 8080}}` to your containers and the plugin will regenerate Caddy's configuration whenever the container is modified.
[0] https://github.com/lucaslorentz/caddy-docker-proxy
-
Nginx Development Guide
I disagree, Caddy works great in Docker. See https://caddyserver.com/docs/running#docker-compose, and CDP is a project that autoconfigures Caddy from labels https://github.com/lucaslorentz/caddy-docker-proxy. Regarding plugins, it's super simple to write a Dockerfile to add plugins, we ship a builder image variant that can be used to compile in any plugins you want.
-
How I run my servers
````
This way, Caddy will buffer the request and give 30 seconds for your new service to get online when you're deploying a new version.
Ideally, during deployment of a new version the new version should go live and healthy before caddy starts using it (and kills the old container). I've looked at https://github.com/Wowu/docker-rollout and https://github.com/lucaslorentz/caddy-docker-proxy but haven't had time to prioritize it yet.
-
Which reverse proxy are you using?
Docker labels support is available via a plugin https://github.com/lucaslorentz/caddy-docker-proxy
What are some alternatives?
Technitium DNS Server - Technitium DNS Server
Nginx Proxy Manager - Docker container for managing Nginx proxy hosts with a simple, powerful interface
smartdns - A local DNS server to obtain the fastest website IP for the best Internet experience, support DoT, DoH. 一个本地DNS服务器,获取最快的网站IP,获得最佳上网体验,支持DoH,DoT。
Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
zen - Simple, free and efficient ad-blocker and privacy guard for Windows, macOS and Linux
traefik - The Cloud Native Application Proxy
Knot Resolver - Knot Resolver - resolve DNS names like it's 2024
Portainer - Making Docker and Kubernetes management easy.
Pi-hole - A black hole for Internet advertisements
jellyfin-media-player - Jellyfin Desktop Client based on Plex Media Player
asuswrt-merlin.ng - Third party firmware for Asus routers (newer codebase)
docker-pi-hole - Pi-hole in a docker container