# This scans your resolver and then custom-creates a config file # for your current resolver situation. # # That config uses Canonicalization to emulate what your local resolver # does in these circumstances. Match exec 'rm -f ~/ssh/search | false' Match exec 'grep "^search" /etc/resolv.conf ' exec 'grep search /etc/resolv.conf | awk \'{print "Host *\n\tCanonicalDomains "$2"\n\tCanonicalizeHostname yes\n# v""im:ft=sshconfig"}\' > ~/.ssh/search' Include ~/.ssh/search # vim: ft=sshconfig