From: sears@uh.edu (Paul S. Sears)
Subject: Re: Minimal unique hostnames
Date: 1995/06/02 [thread overview]
Message-ID: <3qn9n2$8jp@masala.cc.uh.edu> (raw)
In-Reply-To: 3qlu4j$sl3@charm.magnus.acs.ohio-state.edu
In article <3qlu4j$sl3@charm.magnus.acs.ohio-state.edu>
DAVISM@kcgl1.eng.ohio-state.edu (Mike Davis, Chief of Operations -- ECR6)
writes:
>
> We've recently installed a couple AlphaStaion 200 4/100s. We're
> primarily a VMS shop, so be gentle (;-). Under Digital UNIX, is it
possible
> to configure BIND and/or the resolver such that users only need specify
as
> much of a remote hostname as will make it unique compared to the local
> hostname? For example, given a system named "a.eng.ohio-state.edu", I
know I
> can connect to "b.eng.ohio-state.edu" (given that "eng.ohio-state.edu"
is the
> BIND domain name) by merely specifying "b" in a telnet request from "a",
i.e.
>
> % telnet b
>
> If I want to connect to "c.cis.ohio-state.edu" from "a.eng", however, I
find I
> have to specify "c's" FQDN, rather than merely specifying (again using
telnet
> as an example)
>
> % telnet c.cis
>
In your /etc/resolv.conf, replace
domain eng.ohio-state.edu
with
search eng.ohio-state.edu cis.ohio-state.edu
You can have up to six domains listed in search. From the manpage on
resolv.conf:
domain DomainName
Local domain name. Most queries for names within this domain can use
short
names relative to the local domain. If no domain entry is present, the
domain is determined from the local host name returned by
gethostname(2);
the domain part is taken to be everything after the first . (dot).
Finally, if the host name does not contain a domain part, the root
domain
is assumed.
search
Search list for host-name lookup. The search list is normally
determined
from the local domain name; by default, it begins with the local domain
name, then successive parent domains that have at least two components
in
their names. This may be changed by listing the desired domain search
path
following the search keyword with spaces or tabs separating the names.
Most resolver queries will be attempted using each component of the
search
path in turn until a match is found. Note that this process may be slow
and
will generate a lot of network traffic if the servers for the listed
domains are not local, and that queries will time out if no server is
available for one of the domains.
The search list is currently limited to six domains with a total of 256
characters.
The domain and search keywords are mutually exclusive. If more than one
instance of these keywords is present, the last instance will override.
> I've looked through the relevant man pages, and the Bookreader
> documentation which accompanied the workstation(s), but I couldn't find
> anything which says whether or not this level of functionality is
supported.
> I'd appreciate any help anyone could provide.
>
> Thanks,
> Mike
> --
> Internet: davism@KCGL1.eng.ohio-state.edu |
> -or- DAVISM+@osu.edu | These Thoughts, They Be
Mine
> BITNET: DAVISM+@OHSTMAIL.BITNET |
--
Paul S. Sears * sears@uh.edu (NeXT Mail OK)
The University of Houston * <URL:http://www.egr.uh.edu/~sears/>
Engineering Computing Center * SSI Diving Certification #755020059
NeXT System Administration * DoD#1967 '83 NightHawk 650SC
"Programming is like sex: One mistake and you support it a lifetime."
******* I do not represent the University of Houston *********
next prev parent reply other threads:[~1995-06-02 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-06-02 4:00 Minimal unique hostnames Mike Davis, Chief of Operations -- ECR6
1995-06-02 4:00 ` Paul S. Sears [this message]
1995-06-02 4:00 ` Minimal unique hostnames (part II) Mike Davis, Chief of Operations -- ECR6
1995-06-07 4:00 ` Steve Peltz
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox