mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-26 05:09:23 +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
|
# 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:
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user