Re: 2 NICs--One Hostname

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

 



Am So, den 10.07.2005 schrieb Eric Hines um 16:24:

> I'm running FC3 on an Intel server that has two NICs on the 
> motherboard.  I'm trying to give the two NICs separate hostnames and 
> separate DNS IPs and DNS search paths (one NIC (eth0) is intended to 
> face the Net; the other (eth1) will run a LAN that is not intended to 
> have any contact with the Net.  Eth1 has a static IP address, and eth0 
> gets its automatically.)  However, system-config-network will only allow 
> me to assign one hostname to both NICs, presumably because 
> system-config-network writes these data to the same /etc/resolv.conf.
> 
> Does anyone have any way to work around this?

> Eric Hines

A host has 1 hostname. What is set as HOSTNAME= in
/etc/sysconfig/network reflect in /etc/hosts. For the second NIC / IP
set an additional line in /etc/hosts so that you can reach the address
by name. If you run a DNS server then enter the additional name and IP
in it's forward and reverse zone files.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 16:28:02 up 14 days, 23:20, load average: 0.18, 0.19, 0.12 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux