[default] host = $hostname
how to get the hostname of the name into inputs.conf
You don't need to do anything like this; it happens automagically. The settings are controlled by server.conf on the forwarder.
server.conf