[CentOS] 6.2 How to change hostname for each individual IP

m.roth at 5-cent.us m.roth at 5-cent.us
Mon Apr 9 14:17:13 UTC 2012


Lamar Owen wrote:
> On Friday, April 06, 2012 09:18:27 AM Jonathan Vomacka wrote:
>> No matter what I do when I connect to the application it read
>> "example.example.org" which is the hostname of the machine rather then
>> the hostname I want it to read on a particular IP. Is this possible to
>> change?
<snip>
> A host can only have one name (this is true for basically any IP host,
> whether it's a Linux system, a BSD system, a Windows system, or a Cisco
> router.  Especially on a router with a lot of interfaces (broadband
> aggregation routers, for instance, can have thousands of interfaces with
> each one having a unique IP) you don't want the name of the IP associated
> with the interface to override the hostname.  And the hostname does not
> have to match what DNS says about the FQDN that belongs to any interface
> on the system (I have a few of those, too).
>
> Now, I can't quote RFC 'chapter and verse' on this, but I have never seen
> a system where you could do what you're describing.  (that doesn't mean
> they don't exist, just that I've not seen one in my limited experience of
> AT&T Unix SVR2, Xenix V7 and SIII, Apollo DomainOS, and Solaris).

A thought just hit me as I browsed this: Jonathon, do you want to do this
to allow for load balancing?

      mark




More information about the CentOS mailing list