mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-10-31 23:49:25 +01:00
etc: attempt to enable mDNS/LLMNR for systemd-{networkd,resolved} & NetworkManager
Some boolean fixing slipped in as well
This commit is contained in:
parent
4d4dc026fd
commit
e88c2a8067
4
etc/NetworkManager/conf.d/mdns.conf
Normal file
4
etc/NetworkManager/conf.d/mdns.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# Enables mDNS for systemd-resolved
|
||||
[connection]
|
||||
connection.mdns=2
|
||||
connection.llmnr=2
|
@ -20,6 +20,8 @@ options rotate edns0 trust-ad
|
||||
|
||||
# no sending local domain to upstream whenever NXDOMAIN happens
|
||||
search .
|
||||
# Attempt to mDNS everything?
|
||||
#search .local
|
||||
|
||||
# PS. Remove empty lines and comments if this ends up in /etc/resolv.conf
|
||||
# PPS. The traditional spell is:
|
||||
|
@ -7,14 +7,16 @@ Type=ether
|
||||
[Link]
|
||||
# My devices generally also have WiFi so lack of ethernet is not a reason
|
||||
# to wait for systemd-networkd-wait-online.service
|
||||
RequiredForOnline=no
|
||||
RequiredForOnline=false
|
||||
# Takes "ipv4", "ipv6", "both", or "any" (default).
|
||||
RequiredFamilyForOnline=both
|
||||
# Always set administrative state to up. Implies RequiredForOnline=yes
|
||||
# Always set administrative state to up. Implies RequiredForOnline=true
|
||||
#ActivationPolicy=always-up
|
||||
# Required for mDNS
|
||||
Multicast=true
|
||||
|
||||
[Network]
|
||||
#DHCP=yes
|
||||
#DHCP=true
|
||||
# /24, /16, /8 are the the class C, B, A networks
|
||||
Address=192.168.0.2/24
|
||||
Gateway=192.168.0.1
|
||||
@ -30,3 +32,7 @@ IPv6LinkLocalAddressGenerationMode=stable-privacy
|
||||
# multiple times, but you are using Chrony instead, right?
|
||||
#NTP=fi.pool.ntp.org
|
||||
#NTP=time.cloudflare.com
|
||||
# Enable mDNS/.local for systemd-resolved
|
||||
MulticastDNS=true
|
||||
# Windows
|
||||
LLMNR=true
|
||||
|
@ -7,13 +7,19 @@ Type=wlan
|
||||
[Link]
|
||||
# Takes "ipv4", "ipv6", "both", or "any" (default).
|
||||
RequiredFamilyForOnline=both
|
||||
# Always set administrative state to up. Implies RequiredForOnline=yes
|
||||
# Always set administrative state to up. Implies RequiredForOnline=true
|
||||
ActivationPolicy=always-up
|
||||
# If something else (like iwd EnableNetworkConfiguration=true) manages network,
|
||||
# uncomment
|
||||
#Unmanaged=true
|
||||
# Required for mDNS
|
||||
Multicast=true
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
DHCP=true
|
||||
IPv6PrivacyExtensions=true
|
||||
IPv6LinkLocalAddressGenerationMode=stable-privacy
|
||||
# Enable mDNS/.local for systemd-resolved
|
||||
MulticastDNS=true
|
||||
# Windows
|
||||
LLMNR=true
|
||||
|
@ -10,3 +10,7 @@ Cache=true
|
||||
DNS=127.0.0.1
|
||||
DNS=::1
|
||||
Domains=~.
|
||||
# .local domains
|
||||
MulticastDNS=true
|
||||
# Microsoft Windows compatibility?
|
||||
LLMNR=true
|
||||
|
Loading…
Reference in New Issue
Block a user