Skip to content

Instantly share code, notes, and snippets.

@GuiltyDolphin
Last active September 6, 2016 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuiltyDolphin/9d8b06e0fc2c01a2554ed7effdd48374 to your computer and use it in GitHub Desktop.
Save GuiltyDolphin/9d8b06e0fc2c01a2554ed7effdd48374 to your computer and use it in GitHub Desktop.
Fix for weird (slow) DNS lookup issue
# 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 !
@GuiltyDolphin
Copy link
Author

May need to use dhcpcd NET (where NET is in /sys/class/net) before the echo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment