etc: attempt to enable mDNS/LLMNR for systemd-{networkd,resolved} & NetworkManager

Some boolean fixing slipped in as well
This commit is contained in:
Aminda Suomalainen 2024-04-12 09:52:32 +03:00
parent 4d4dc026fd
commit e88c2a8067
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
5 changed files with 27 additions and 5 deletions

View File

@ -0,0 +1,4 @@
# Enables mDNS for systemd-resolved
[connection]
connection.mdns=2
connection.llmnr=2

View File

@ -20,6 +20,8 @@ options rotate edns0 trust-ad
# no sending local domain to upstream whenever NXDOMAIN happens # no sending local domain to upstream whenever NXDOMAIN happens
search . search .
# Attempt to mDNS everything?
#search .local
# PS. Remove empty lines and comments if this ends up in /etc/resolv.conf # PS. Remove empty lines and comments if this ends up in /etc/resolv.conf
# PPS. The traditional spell is: # PPS. The traditional spell is:

View File

@ -7,14 +7,16 @@ Type=ether
[Link] [Link]
# My devices generally also have WiFi so lack of ethernet is not a reason # My devices generally also have WiFi so lack of ethernet is not a reason
# to wait for systemd-networkd-wait-online.service # to wait for systemd-networkd-wait-online.service
RequiredForOnline=no RequiredForOnline=false
# Takes "ipv4", "ipv6", "both", or "any" (default). # Takes "ipv4", "ipv6", "both", or "any" (default).
RequiredFamilyForOnline=both RequiredFamilyForOnline=both
# Always set administrative state to up. Implies RequiredForOnline=yes # Always set administrative state to up. Implies RequiredForOnline=true
#ActivationPolicy=always-up #ActivationPolicy=always-up
# Required for mDNS
Multicast=true
[Network] [Network]
#DHCP=yes #DHCP=true
# /24, /16, /8 are the the class C, B, A networks # /24, /16, /8 are the the class C, B, A networks
Address=192.168.0.2/24 Address=192.168.0.2/24
Gateway=192.168.0.1 Gateway=192.168.0.1
@ -30,3 +32,7 @@ IPv6LinkLocalAddressGenerationMode=stable-privacy
# multiple times, but you are using Chrony instead, right? # multiple times, but you are using Chrony instead, right?
#NTP=fi.pool.ntp.org #NTP=fi.pool.ntp.org
#NTP=time.cloudflare.com #NTP=time.cloudflare.com
# Enable mDNS/.local for systemd-resolved
MulticastDNS=true
# Windows
LLMNR=true

View File

@ -7,13 +7,19 @@ Type=wlan
[Link] [Link]
# Takes "ipv4", "ipv6", "both", or "any" (default). # Takes "ipv4", "ipv6", "both", or "any" (default).
RequiredFamilyForOnline=both RequiredFamilyForOnline=both
# Always set administrative state to up. Implies RequiredForOnline=yes # Always set administrative state to up. Implies RequiredForOnline=true
ActivationPolicy=always-up ActivationPolicy=always-up
# If something else (like iwd EnableNetworkConfiguration=true) manages network, # If something else (like iwd EnableNetworkConfiguration=true) manages network,
# uncomment # uncomment
#Unmanaged=true #Unmanaged=true
# Required for mDNS
Multicast=true
[Network] [Network]
DHCP=yes DHCP=true
IPv6PrivacyExtensions=true IPv6PrivacyExtensions=true
IPv6LinkLocalAddressGenerationMode=stable-privacy IPv6LinkLocalAddressGenerationMode=stable-privacy
# Enable mDNS/.local for systemd-resolved
MulticastDNS=true
# Windows
LLMNR=true

View File

@ -10,3 +10,7 @@ Cache=true
DNS=127.0.0.1 DNS=127.0.0.1
DNS=::1 DNS=::1
Domains=~. Domains=~.
# .local domains
MulticastDNS=true
# Microsoft Windows compatibility?
LLMNR=true