Article View: aus.computers.java
Article #710cached info that InetAddress stores?
From: Aaron Fennell
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
11 lines
1262 bytes
1262 bytes
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?
Technical Details
Message-ID:
<uxMW4.3498$c5.4659@newsfeeds.bigpond.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,fbca3b38f9c6e578,start X-Google-Attributes: gid10d6db,public From: "Aaron Fennell" <aaronf@breezesoftware.com.au> Subject: cached info that InetAddress stores? Date: 2000/05/24 Message-ID: <uxMW4.3498$c5.4659@newsfeeds.bigpond.com> X-Deja-AN: 626633422 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Trace: newsfeeds.bigpond.com 959157466 203.54.50.219 (Wed, 24 May 2000 18:37:46 EST) Organization: Telstra BigPond Internet Services (http://www.bigpond.com) X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 24 May 2000 18:37:46 EST Newsgroups: aus.computers.java