Add new DNS and ip to your host file automatically This bat file add new DNS and IP to host file as a new line and save it For adding new line please edit bat file with any text editor, and change this line. SET NEWHOST=10.10.11.8 managment this line your ip and dns