tries to append a new record to the
file, using the provided arguments
and the current time.
If the length of the hostname string
is longer than what would fit into the hostname field of the
file, it will first be attempted to convert it into a numerical IP
Failing this, the hostname will be recorded as
Qq invalid hostname .
The calling process must have permission to write to the