Wednesday, January 11, 2017

Switching DNS in Ubuntu Linux

One approach to switch among different development environments (QA, Integration, Stage, etc) is to have different DNS configs for routing one domain.

In Ubuntu you can setup different network connections with different DNS servers and be able to switch from network top menu,

1. Simply add a new network connection (may need two, one for Ethernet and one for WiFi)


2. Configure DNS settings


3. Switch to new connection from top menu


4. Test with nslookup command

No comments:

Post a Comment