For a while I have been formatting my hosts file like this. Notice the same ip on two lines:
e.f.g.e foo.mydevsite.com e.f.g.e foo.myOtherDevSite.com
I read recently that aliases are supposed to be consolidated on one line:
e.f.g.e foo.mydevsite.com foo.myOtherDevSite.com
However, I don't like this method because you can't easily comment out certain aliases like so or add comments to particular aliases:
a.b.c.d foo.mydevsite.com # myDevSite on box 1 # a.b.c.d foo.myOtherSite.com # myOtherSite on box 1 a.b.c.d ubuntuBox e.f.g.e foo.myOtherSite.com # myOtherSite testing environment
So far this has been working fine; is there a problem with this?