Hostname configuration question

From: stimmins@wiley.co.uk
Date: Mon Apr 28 2003 - 04:59:31 EDT


The replies so far are divided in their opinions :-) So some further
information.

The machine is currently in domain1, but for various reasons we want it to
appear in domain2 as well. The trouble is referemces to multiple domains in
the /etc/hosts file seem to confuse certain applications (particularly
Oracle 9i, which we have on the machine). For example, in /etc/hosts

10.0.0.1 myhost myhost.domain1 myhost.doman2

doesn't work.

10.0.0.1 myhost myhost.domain2
10.0.0.1 myhost.domain1

Does seem to work but only if the various files containing the host name
have the domain added to them. To be honest I think we are just *playing
around* here so see if there is any combination of entries which work with
the applications. I would be much happier leaving things how they should be
(and fixing the applications!!!!) or just moving the machine into domain2
and using a DNS entry to maintain links with domain1.

Sean

----- Original Message ----
I have question regarding the various files which contain references to a
Solaris box's hostname. The machine is a V880, 2 processors, 4 GB RAM
running Solaris 2.8 and a reasonably upto date patch level.

I have been asked to change the references to the hostname of the machine
to the hostname + fully qualified domain name (i.e. from "myhost" to
"myhost.mydomain") in the following files:

/etc/nodename
/etc/hostname.ce0
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

As far as I'm aware, and according to all the reference material these
files should contain only the local hostname of the machine. The one time
someone here actually changed these files to contain the fully qualified
domain name it caused all sorts of problems which I was unable to resolve
to my satisfaction without doing a sys-unconfig and rebooting.

So I guess my questions are, is it ok to do this? Are there any problems
associated with doing it? What are the pitfalls to avoid if it is a valid
configuration?

Many thanks for any help in advance

Sean Timmins

---
Sean Timmins
Systems Administrator
John Wiley & Sons Ltd.
The Attrium
Southern Gate
Chichester
West Sussex
PO19 8SQ
Tel: +44 (0) 1243 770395
Fax +44 (0) 1243 770379
Mob: +44 (0) 7703 203546
*****************************************************************************
This email transmission is confidential and intended for the person or
organisation it is addressed to. If you are not the intended recipient, you
must not copy, distribute, or disseminate the information, open any
attachment, or take any action in reliance of it. If you have received this
message in error please notify the sender.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states otherwise.
Although this email has been scanned for viruses you should rely on your
own virus check, as the sender takes no responsibility for any damage
arising out of any bug or virus infection.
*****************************************************************************
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:17 EDT