Last active
September 6, 2016 17:39
-
-
Save GuiltyDolphin/9d8b06e0fc2c01a2554ed7effdd48374 to your computer and use it in GitHub Desktop.
Fix for weird (slow) DNS lookup issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Must be run as root | |
# Run dnsmasq | |
dnsmasq | |
# Run nscd | |
nscd | |
# Add 'options single-request' to /etc/resolv.conf (see below) | |
echo 'options single-request' >> /etc/resolv.conf | |
# If *that* doesn't work, may need to add a reasonable DNS | |
# echo -e "nameserver 8.8.8.8 \noptions single-request" > /etc/resolv.conf | |
# Thanks to https://bbs.archlinux.org/viewtopic.php?id=75770 ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May need to use
dhcpcd NET
(whereNET
is in/sys/class/net
) before theecho
.