We will create a DNS entry in windows system to access our test/dev system just by using
- test.demo.com - To access test environment
- dev.demo.com - To access dev environment
- Edit the following file
notepad C:\WINDOWS\system32\drivers\etc\hosts- Add the following entry 'xxx.xxx.xxx.xxx replace with your actual IP address'
xxx.xxx.xxx.xxx test.demo.com
xxx.xxx.xxx.xxx dev.demo.com To refresh the cache fire the following command
ipconfig /flushdnsRun this command using admin
nbtstat -Ripconfig /displaydns | moreThis will print all the DNS entries in your windows system
See stackoverflow