removes the current domain name from the passed
name by writing a
character over the first period of the passed name.
The current domain
name is determined by calling
and removing everything up to the first period.
The name is determined
the first time this function is called and is cached for future use.
function will only trim the domain name if the passed
ends with the current domain name and if the length of the resulting host
name does not exceed
If the passed
is actually a
specification of the form
host. domain: nn[.
and the domain name is the same as the local domain name,
will remove the embedded domain name, copying the screen and display
numbers to the end of the base host name and resulting in
host: nn [.nn].