https://bz.apache.org/bugzilla/show_bug.cgi?id=62566
--- Comment #6 from Michael Osipov <micha...@apache.org> --- Just noticed that <hostinfo> is also unusable inside a FreeBSD Jail where host and jail reside in the same subnet. Hostname "localhost" is returned while my custom code provided earlier says: # freebsd-version 12.1-RELEASE root@deblndw011x1j:/tmp # java Test InetAddress.getLocalHost(): HostName: deblndw011x1j.ad001.siemens.net CanonicalHostName: deblndw011x1j.ad001.siemens.net HostAddress: 147.54.64.55 Network Interfaces: name:bge0 (bge0) (physical) Addresses: /147.54.64.149 Ant says: Adding reference: ant.LocalProperties parsing buildfile jar:file:/usr/local/share/java/apache-ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/local/share/java/apache-ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file Setting project property: host.DOMAIN -> localdomain Setting project property: host.NAME -> localhost Setting project property: host.ADDR4 -> 147.54.64.149 Setting project property: host.ADDR6 -> ::1 I consider this element unusable, unfortunately. -- You are receiving this mail because: You are the assignee for the bug.