Game Server
This commit is contained in:
23
Local Network/LAN DNS Server/dnsmasq
Normal file
23
Local Network/LAN DNS Server/dnsmasq
Normal file
@@ -0,0 +1,23 @@
|
||||
## DNSMASQ >>> NetworkManager (eg Ubuntu Desktop):
|
||||
sudo apt-get install dnsmasq
|
||||
|
||||
# Disable systemd-resolved
|
||||
systemctl disable systemd-resolved
|
||||
systemctl stop systemd-resolved
|
||||
unlink /etc/resolv.conf
|
||||
|
||||
# Activate the dnsmasq plugin
|
||||
cat <<CONF | sudo tee /etc/NetworkManager/conf.d/00-use-dnsmasq.conf
|
||||
[main]
|
||||
dns=dnsmasq
|
||||
CONF
|
||||
|
||||
# Setup the public DNS and the `.local` pseudo-TLD
|
||||
cat <<CONF | sudo tee /etc/NetworkManager/dnsmasq.d/00-dns-public.conf
|
||||
server=8.8.8.8
|
||||
CONF
|
||||
|
||||
cat <<CONF | sudo tee /etc/NetworkManager/dnsmasq.d/00-address-local.conf
|
||||
address=/.local/127.0.0.1
|
||||
CONF
|
||||
systemctl restart NetworkManager
|
||||
Reference in New Issue
Block a user