Skip to content

Instantly share code, notes, and snippets.

@dnburgess
Created October 11, 2021 20:24
Show Gist options
  • Save dnburgess/402b46fcd4e1593ddeee59a3de5b07a6 to your computer and use it in GitHub Desktop.
Save dnburgess/402b46fcd4e1593ddeee59a3de5b07a6 to your computer and use it in GitHub Desktop.
LANCache DNS Fix
Edit /etc/systemd/resolved.conf and change the Cache and DNSStubListener lines to no.
Should look like this when you're done:
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=allow-downgrade
#DNSOverTLS=no
Cache=no
DNSStubListener=no
#ReadEtcHosts=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment