Host file contain dns entries for domain.
In windows the host file can be found under “C:WindowsSystem32Driversetc”
In MAC book we can find the host file in following path:
Here there will be a file named “hosts”. We can edit this file and can have host entries. To edit this file we need administrator permission and we can use “vim” editor to make changes in the file.