On the standard setup, the /etc/hosts file is recreated every time the setup is run, since there might be stuff that depends on static dns entries, having a way to add (and preserve custom changes) might be useful.
With this hook the content you store in a file (defaults to /etc/imscp/hooks.files/hosts.custom) will be concatenated to the imscp generate hosts file.
You can find the most recent version of the code at bitbucket
I've tested it with current master (as of 27/06/13)
For any issues, just drop a line in this thread.