Now that resolver is used, mail ignores 'mailhost' in /etc/hosts

Root Boy Jim rbj at uunet.UU.NET
Tue Dec 11 10:38:26 AEST 1990


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.

;
;	@(#)named.local	1.1	(Berkeley)	86/01/21
;
@	IN	SOA	host.do.main postmaster.host.do.main  (
			        901106	; Serial
                                3600	; Refresh
                                300	; Retry
                                3600000	; Expire
                                14400 )	; Minimum
	IN	NS	host.do.main
1	IN	PTR	LOCALHOST.
;
;	*** Add Alises Here *** DON'T FORGET THE DOTS!
;
mailhost.	IN	CNAME	localhost.
loghost.	IN	CNAME	localhost.
-- 

	Root Boy Jim Cottrell <rbj at uunet.uu.net>
	Close the gap of the dark year in between



More information about the Comp.unix.questions mailing list