Use Domain In Hostname Or Not?

Frederick M. Avolio avolio at decuac.dec.com
Thu Feb 15 13:24:41 AEST 1990


The fact is, the fully qualified domain name *is* the hostname.
Shortcuts are allowed in that using bind an unqualified hostname will
be resolved by assuming your domain name be attached, so for example, 
if I am on host gildor.dco.dec.com and I type

	telnet winsrf

it will do  the same thing as if I typed

	telnet winsrf.dco.dec.com

If that failed it'd try

	winsrf.dec.com

Similarly for mail.  When you set up your prompt, if that is your only
concern, do something like:

set prompt="`hostname|sed 's/\..*//'`> "

Fred



More information about the Comp.unix.ultrix mailing list