DEV Community

Discussion on: Quick terminal-based DNS switching

Collapse
 
moopet profile image
Ben Sinclair

I may be missing something; there are real reasons for changing nameservers.

If the problem you want to solve is that certain nameservers don't respond for certain domains - and you're happy to use a less-privacy-conscious nameserver in that case - can't you add all of them, in order of preference and let it all figure it out on its own?

Collapse
 
stanleynguyen profile image
Stanley Nguyen

Hey Ben, thanks for the great suggestion. I didn't think of this when I was trying to solve the problem.
Nevertheless, taking this approach wouldn't save much effort though as whenever I switch to a new network (which often happens if I travel from point to point) I will need to trigger a script to figure out the default NS and append them to the current list. Let me know if I didn't get you correctly