Skip to content

Instantly share code, notes, and snippets.

@phoenixseo
Last active March 5, 2022 05:11
Show Gist options
  • Save phoenixseo/3eed99b97976fdd4eb9bfb3d90af5dc2 to your computer and use it in GitHub Desktop.
Save phoenixseo/3eed99b97976fdd4eb9bfb3d90af5dc2 to your computer and use it in GitHub Desktop.
# /etc/NetworkManager/conf.d/00-use-dnsmasq.conf
# Use dnsmasq plugin of NetworkManager.
#
[main]
dns=dnsmasq
# /etc/NetworkManager/dnsmasq.d/01-use-local-dns.conf
# see
# https://itectec.com/ubuntu/ubuntu-how-to-add-dnsmasq-and-keep-systemd-resolved-18-04/
#
interface=lo
bind-interfaces
listen-address=127.0.0.1
# /etc/NetworkManager/dnsmasq.d/02-dns-servers.conf
#
# DNS Server
server=1.0.0.1
server=1.1.1.1
server=8.8.8.8
# /etc/NetworkManager/dnsmasq.d/10-test-domain.conf
#
# local webdev .test domains
address=/.test/127.0.0.1
Host Network Configuration for Fedora 35 Silverblue that works with my Styx-Container(s) (LAMP Stack).
Files:
/etc/NetworkManager/conf.d/00-use-dnsmasq.conf
/etc/NetworkManager/dnsmasq.d/01-use-local-dns.conf
/etc/NetworkManager/dnsmasq.d/02-dns-servers.conf
/etc/NetworkManager/dnsmasq.d/10-test-domain.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment