input.localhost doesn't run after hostname changes

when user change the hostname of the computer, input.localhost doesnt
run. this is understandable. But does anyone know an way to create
an alias from the new hostname to localhost so input.localhost will
run regardless of the hostname the user changes to??