Check out example codes for "windows domain add hosts file". It will help you in understanding the concepts better.

Code Example 1

Go to c:\Windows\System32\drivers\etc and double click on hosts.
add IP address, press <tab> domain name and save it.

Learn ReactJs, React Native from akashmittal.com