How to setup hosts file for multiple domains on same IP? On Linux, you can put all in one line. But on Windows, max domains number is 9 per line. To set multi domain to one IP, you need to do like that: To do it, you edit file “hosts” in this folder: C:\Windows\System32\drivers\etc on…