Game Server

This commit is contained in:
2024-04-05 11:08:50 +00:00
parent 9fcbd188f1
commit cbf5772016
5 changed files with 142 additions and 0 deletions

View 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