Implement aliasing support for "localhost".

Refs #6107