Re: Can linux box have two host names / 2 ip addresses

From: James Knott (james.knott_at_rogers.com)
Date: 10/02/04


Date: Fri, 01 Oct 2004 22:47:50 -0400

Bill Unruh wrote:

>
> Well, actually IP addresses refer to interfaces. If that one box has only
> one interface, then the remote system will get confused-- it will send a
> request to IP address 1 and receive a response from IP address 2.

It shouldn't. Linux supports alias addresses, where one NIC can have more
than one IP. No confusion.
>
> Names are easy. Just have both names point to the same IP address in the
> DNS tables of your DNS server (AFAIK they must be on the same subnet for
> this to work. Ie you cannot have string.physics.ubc.ca and
> organ.phys.mcmaster.ca point tothe same IP since the mcmaster.ca domain is
> a different subnet than ubc.ca) If you want the same interface (ie that
> one ethernet card) to have different IP address, that is I believe more
> difficult. You could use proxyarp I guess to have the one machine be the
> proxyarp to the other IP. But you would still have trouble on the ip of
> the outbound packets.

Two names, to IPs, no problem. Also note, that there doesn't have to be any
relationship between domain names and subnets, so long as the DNS returns
the correct IP for the name.

-- 
(This space intentionally left blank)


Relevant Pages

  • Re: applying computer settings takes a lot of time
    ... PC and DNS/DC are in the 192.168.10.x subnet ... Add a DNS/DC to the site where the computers are located and let the clients use that machine as preferred DNS on the NIC and another site DNS as secondary for redundancy. ... So is there a DNS server in there subnet available? ... Connection-specific DNS Suffix. ...
    (microsoft.public.windows.group_policy)
  • Re: applying computer settings takes a lot of time
    ... So in the moments the computer connected to another subnet to reach a DC/DNS server to authenticate and apply configuration settings, ... So is there a DNS server in there subnet available? ... What kind of connection is between the locations? ... Connection-specific DNS Suffix. ...
    (microsoft.public.windows.group_policy)
  • Re: applying computer settings takes a lot of time
    ... Subnet 10 is for server and printer. ... So do you have a DNS server in the client location? ...
    (microsoft.public.windows.group_policy)
  • Re: Routing Problem
    ... Subject: Routing Problem ... each with a different subnet. ... it should use the second default gateway. ... > routers configured on multiple interfaces connected to two or more ...
    (freebsd-questions)
  • Re: Site Creation
    ... CO-DC in NY-site, the only thing that you sholud do after moving CO-DC ... I'm thinking NY because the 192.168.200.x subnet has to ... reregistering appropriate SRV records in DNS. ... If you have VPN tunnel between sites this shouldn't be ...
    (microsoft.public.windows.server.general)