Joi,

A host may have multiple IP addresses. This is called a multi-homed
host. Do not confuse multiple IP addresses with Domain addresses. An
address may have a domain address plus aliases associated with it. 

In my home setup I have several machines running on one of the test IP
network addresses and this is not visible to the Net. However when I
connect to DU I get an IP address assigned dynamically (plan to change
that soon). So my machine at the time of this writing hosts two distinct
IP addresses and could do more. Each network device attached to the host
gets an IP address. Usually the host has only one DNS (domain name
associated with it) but multiple domains can be hosted on one box.

Some RFCs you might want to look at are:
rfc799.txt
rfc887.txt
rfc917.txt
rfc1127.txt
rfc1537.txt
rfc1630.txt
rfc1738.txt
rfc1912.txt (Obsoletes 1537)

Cruse the RFCs (also use zgrep on the files if compressed) a bit and I
think you will find a wealth of info. Also recall that "localhost" is
127.0.0.1 in IP. I think the person really wanted the info about which
IP address they were assigned to be visible on the net and not the
localhost address.

This is a different problem.

I would start with the System and Properties classes. Probably will not
get what you want there but may find soem clues. If not there is always
JNI techniques to the platform or poking around the etc file.

td

Joi Ellis wrote:
> 
> On 22 Nov 2000, Juergen Kreileder wrote:
> 
> > It's not that easy.  A host may have several IP addresses and other
> > hosts may have to use different addresses to reach it.  E.g. hosts on
> > the intranet may have to use 192.168.0.100, but external machines may
> > have to use 65.123.66.124.
> 
> This is true, but it is not allowed in DNS for one host to have multiple
> addresses.  At least the DNS admin at my previous job claimed this was so.
> If you give each interface a DNS entry, each name must be unique.
> 
> Even if you have an internal DNS with one address, and an external DNS with
> a different address, when your own host looks itself it, it can only get
> one A record back.
> 
> So, if what I understand of DNS is true, it is just that easy.
> 
> --
> Joi Ellis                    Software Engineer
> Aravox Technologies          [EMAIL PROTECTED], [EMAIL PROTECTED]
> 
> No matter what we think of Linux versus FreeBSD, etc., the one thing I
> really like about Linux is that it has Microsoft worried.  Anything
> that kicks a monopoly in the pants has got to be good for something.
>            - Chris Johnson
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to