-   Suse/Novell (
-   -   Two Separate Hostnames and IP Addresses on two NIC cards (

kaplan71 04-21-2006 03:57 PM

Two Separate Hostnames and IP Addresses on two NIC cards
Hi there --

I am running SuSE 9.3 on a system that has two NIC's. The eth0 NIC is on one subnet, 132.183.220.x, and eth1 is on a completely separate subnet which in its case is 192.168.0.x. There is no IP-fowarding enabled.

What I am trying to accomplish is to have a hostname associated with the address that eth0 has on its subnet and a completely different hostname for the address that eth1 is using on its subnet. How can I accomplish this? Thanks.

acid_kewpie 04-21-2006 04:01 PM

a hostname has nothing to do with networks, it does not make sense to do what you ask. the hostname is what you get when you run the "hostname" command, which is network irrelevant. if you want to associate ip's with names, then that's DNS configuration, not hostnames

kaplan71 04-21-2006 04:04 PM

Hi there --

To accomplish what I outlined in my e-mail, would I need to set up a DNS server on the system in question, and from there have the hostname for the 192.168.0.x network set up?

J.W. 04-21-2006 05:24 PM

As acid_kewpie already explained, there is no connection between a hostname and an IP address. The hostname is just the name that is given to the computer when Linux is installed, for example, the default hostname in Slackware is "darkstar".

I suspect that what you're really attempting to do is associate a URL (aka "website name" or "domain" such as www.[your_website].com) with an IP addrress (eg, and again as acid_kewpie explained, that's handled by DNS ("domain name server")

The following article may be of interest:

All times are GMT -5. The time now is 06:56 AM.