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