Now that resolver is used, mail ignores 'mailhost' in /etc/hosts
Don Lewis
del at algol.mlb.semi.harris.com
Wed Dec 19 10:49:57 AEST 1990
In article <114205 at uunet.UU.NET> rbj at uunet.UU.NET (Root Boy Jim) writes:
>In article <1990Nov30.135031.25038 at uunet!unhd> rg at unhd.unh.edu (Roger Gonzalez ) writes:
>>System: Sun 3/160 running SunOS 4.1, *no* YP
>
>>I had been having problems getting ftp, telnet, finger, etc. to use the
>>nameserver. I received a suggestion to rebuild /usr/lib/libc.so with
>>the inclusion of some .o's from libresolv.a. This worked pretty well;
>>all address resolution was now done through the nameserver. Unfortunately,
>>this makes /etc/hosts completely ignored. Its not *that* intolerable,
>>but the /etc/hosts contained some convenient nicknames for local machines
>>that the resolver doesn't know about. C'est la vie.
>
>So add your nicknames to your nameserver database with CNAME records.
>The easiest place is in your named.local file. I put things there
>because (1) the info never changes (2) this is the one domain that
>everyone is an authority for. Purists may groan, as the information
>really doesn't "belong" there, but it works.
There is also an environment variable "HOSTALIASES" that you can set
to a file name that contains aliases for hosts and the actual host
names. You could put "mailhost whatever" in a file, and set the
HOSTALIASES variable before starting sendmail. This feature allows users
to define their own host aliases as well (it'll probabably break things
if users uses these aliases in mail addresses unless the addresses are
somehow canonicalized). This appears to be undocumented in the Sun
man pages. I found out about it by looking at the Berkeley code and
doing a strings on Sun's libresolve.a.
--
Don "Truck" Lewis Harris Semiconductor
Internet: del at mlb.semi.harris.com PO Box 883 MS 62A-028
Phone: (407) 729-5205 Melbourne, FL 32901
More information about the Comp.unix.questions
mailing list