Skip to content

Instantly share code, notes, and snippets.

@fangdingjun
Last active July 7, 2016 05:41
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 fangdingjun/bc6820037a56c9ce544ad21b0847e113 to your computer and use it in GitHub Desktop.
Save fangdingjun/bc6820037a56c9ce544ad21b0847e113 to your computer and use it in GitHub Desktop.
configure linux use tcp to reslove the hostname

add the follow line to /etc/resolv.conf will let linux use tcp to resolve the hostname

options use-vc

requires glibc >= 2.14

example:

options timeout:1 attempts:3 use-vc
nameserver 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment