* Minimal unique hostnames
@ 1995-06-02 4:00 Mike Davis, Chief of Operations -- ECR6
1995-06-02 4:00 ` Minimal unique hostnames (part II) Mike Davis, Chief of Operations -- ECR6
1995-06-02 4:00 ` Minimal unique hostnames Paul S. Sears
0 siblings, 2 replies; 4+ messages in thread
From: Mike Davis, Chief of Operations -- ECR6 @ 1995-06-02 4:00 UTC (permalink / raw)
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
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 |
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: Minimal unique hostnames (part II)
1995-06-02 4:00 Minimal unique hostnames Mike Davis, Chief of Operations -- ECR6
@ 1995-06-02 4:00 ` Mike Davis, Chief of Operations -- ECR6
1995-06-07 4:00 ` Steve Peltz
1995-06-02 4:00 ` Minimal unique hostnames Paul S. Sears
1 sibling, 1 reply; 4+ messages in thread
From: Mike Davis, Chief of Operations -- ECR6 @ 1995-06-02 4:00 UTC (permalink / raw)
John Eaton (jwe@che.utexas.edu) was kind enough to mention the man
page for resolv.conf includes a reference to the "search" option, such that
the behavior I'm looking for could be had with the following:
search eng.ohio-state.edu ohio-state.edu
But according to the same man page, this should be the default behavior:
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.
I have confirmed that replacing
domain eng.ohio-state.edu
with the above search line does indeed provide the functionality I'm after,
but why do I have to _explicitly_ specify the _default_ search list?
Thanks,
Mike
--
Internet: davism@KCGL1.eng.ohio-state.edu |
-or- DAVISM+@osu.edu | These Thoughts, They Be Mine
BITNET: DAVISM+@OHSTMAIL.BITNET |
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Minimal unique hostnames (part II)
1995-06-02 4:00 ` Minimal unique hostnames (part II) Mike Davis, Chief of Operations -- ECR6
@ 1995-06-07 4:00 ` Steve Peltz
0 siblings, 0 replies; 4+ messages in thread
From: Steve Peltz @ 1995-06-07 4:00 UTC (permalink / raw)
In article <3qn6c2$36r@charm.magnus.acs.ohio-state.edu>,
Mike Davis, Chief of Operations -- ECR6 <DAVISM@kcgl1.eng.ohio-state.edu> wrote:
> 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.
I've seen various different interpretations of how a host name and/or
domain name should be specified. The one that makes most sense to me
is that you set the hostname to be the short form, and set domainname
to be the domain. However, most systems seem to work by setting the
hostname to be the fully-qualified domain name, and setting the
domainname to be the domain portion. I don't know if anything even
looks at the domainname setting, instead just getting it from the
domain portion of the FQDN in hostname.
In any case, I don't have an Alpha system I can try out various
combinations on, though I've tried every possible combination on
a Linux box - so try out different variations of setting hostname and/or
domainname.
--
Steve Peltz
tricorn@uiuc.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Minimal unique hostnames
1995-06-02 4:00 Minimal unique hostnames Mike Davis, Chief of Operations -- ECR6
1995-06-02 4:00 ` Minimal unique hostnames (part II) Mike Davis, Chief of Operations -- ECR6
@ 1995-06-02 4:00 ` Paul S. Sears
1 sibling, 0 replies; 4+ messages in thread
From: Paul S. Sears @ 1995-06-02 4:00 UTC (permalink / raw)
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 *********
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-06-07 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-02 4:00 Minimal unique hostnames Mike Davis, Chief of Operations -- ECR6
1995-06-02 4:00 ` Minimal unique hostnames (part II) Mike Davis, Chief of Operations -- ECR6
1995-06-07 4:00 ` Steve Peltz
1995-06-02 4:00 ` Minimal unique hostnames Paul S. Sears
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox