Re: Networking question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tony Gogoi wrote:

> Is it possible to configure a host to have 2 different IP addresses each
> associated with its own unique fully qualified domain name.

Yes.

> To be a little more precise,
> let's say I have
> /etc/sysconfig/network-scripts/ifc-eth0
> configured for IP address 192.168.111.4 (say)
> 
> and I also have
> 
> /etc/sysconfig/network-scripts/ifc-eth0:0
> configured for IP address 192.168.111.5 (say)
> 
> However, /etc/sysconfig/network allows (or seems to allow) only a common
> hostname associated with the IP addresses defined in
> /etc/sysconfig/network-scripts/ifc*

A system can only have one *host name* (sometimes referred to as a
node name). However, the host name is distinct from any DNS (or
similar) domain names which refer to IP addresses on that host.

The host name is the value returned by gethostname(), and also in the
nodename field in the result of uname(). This doesn't necessarily have
anything to do with networking; a system still has a host name even if
it doesn't have any networking capabilities.

> But what if I want 192.168.111.4 associated with hostname "buzz" and
> 192.168.111.5 associated with "bumble" on a host with a single ethernet
> card eth0 ???

If the association only needs to apply to the local host, you can just
add the necessary entries to /etc/hosts. If it needs to be visible
externally, you need to add entries to the DNS zone file.

-- 
Glynn Clements <glynn.clements@xxxxxxxxxx>
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux