NixOS + docker nginx + dnsmasq for local somethingsomething.dev domains
0
votes
1
answer
1007
views
I have been configuring NixOS as a dev machine lately (and so far I really love it). I was planning of using a nginx image as reverse proxy to route all *.dev requests to running docker images. This works for requests to localhost already, as I can reach apps of started conainers when they're connected to the same network.
Now for resolving *.dev requests I added a dnsmasq configuration to my nixos config:
services.dnsmasq = {
enable = true;
resolveLocalQueries = true;
servers = [
''/.dev/127.0.0.1''
''8.8.8.8''
''8.8.4.4''
];
};
When rebuilding, I get the output
starting the following units: dnsmasq.service
, but when I try to reach my .dev URI's, I still only get DNS_PROBE_FINISHED_NXDOMAIN
. What could be the issue here?
Asked by Kana
(161 rep)
Dec 31, 2018, 05:30 PM
Last activity: Nov 5, 2024, 01:58 PM
Last activity: Nov 5, 2024, 01:58 PM