🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #711

Re: cached info that InetAddress stores?

#711
From: Paul Murray
Date: Wed, 24 May 2000 00:00
21 lines
1601 bytes
"Aaron Fennell" <aaronf@breezesoftware.com.au> wrote in message
news:uxMW4.3498$c5.4659@newsfeeds.bigpond.com...
> When I use InetAddress.getAllByName(hostName) to get a list of IP
addresses,
> the data is cached. Subsequent calls to this method always return the same
> data. However the host addresses sometimes changes and I want to detect
> this. This is for use on a local machine (not for querying arbitrary
> machines on the net).
>
> The reason is to detect an IP from an ISP might be added since the VM
> started. If I restart the VM all the IP's are listed.
>
> Is there a way to clear the cached info that InetAddress stores? Is there
a
> better way for me to check the active IP's on a local machine?

Is this a bug in the API?
--
--------------------------------------------------------------
http://www.users.bigpond.com/pmurray
ICQ: 26066755
Technical Details
Message-ID: <P5NW4.3521$c5.5008@newsfeeds.bigpond.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <uxMW4.3498$c5.4659@newsfeeds.bigpond.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,fbca3b38f9c6e578
X-Google-Attributes: gid10d6db,public
From: "Paul Murray" <pmurray@nospam.bigpond.com>
Subject: Re: cached info that InetAddress stores? 
Date: 2000/05/24
Message-ID: <P5NW4.3521$c5.5008@newsfeeds.bigpond.com>
X-Deja-AN: 626641211
References: <uxMW4.3498$c5.4659@newsfeeds.bigpond.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Trace: newsfeeds.bigpond.com 959159791 139.134.124.242 (Wed, 24 May 2000 19:16:31 EST)
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
X-MSMail-Priority: Normal
NNTP-Posting-Date: Wed, 24 May 2000 19:16:31 EST
Newsgroups: aus.computers.java