Quickly switch between DNS profiles
(currently only supports Mac)
npm install -g dns-switcher
to add zsh completions:
dns --completions >> ~/.zshrc
NOTE: If you're using the completions and you get a warning about insecure directories it's because the owner of the directory ".../node/.../lib/node_modules/dns/completions" should be either the root user or the current user.
Create a file named '.dns.coffee' in your home directory:
module.exports =profile1:nameservers: '188.8.131.52''184.108.40.206'profile2:nameservers: '220.127.116.11'search_domains: 'domain1''domain2'
# show the names of the profiles specified in ~/.tailr.coffeedns --listdns -l# load a profiledns profile1# reset the dns settingsdns --resetdns -r# show the current dns settingsdns# By default, it uses the "Wi-Fi" device,# you can specifiy a different device like this:dns -d Ethernet1 profile1