equal
deleted
inserted
replaced
129 * @throws UnknownHostException if no host found for the specified IP address |
129 * @throws UnknownHostException if no host found for the specified IP address |
130 */ |
130 */ |
131 public List<String> getAllHostsByAddr(InetAddress address) throws UnknownHostException { |
131 public List<String> getAllHostsByAddr(InetAddress address) throws UnknownHostException { |
132 // First try hosts file |
132 // First try hosts file |
133 // TODO: Add nsswitch.conf to select proper order |
133 // TODO: Add nsswitch.conf to select proper order |
|
134 if (DEBUG) { |
|
135 System.err.println("Resolver API: Reverse lookup call for address:"+address); |
|
136 } |
134 try { |
137 try { |
135 return List.of(hostsFileResolver.getByAddress(address)); |
138 return List.of(hostsFileResolver.getByAddress(address)); |
136 } catch (UnknownHostException uhe) { |
139 } catch (UnknownHostException uhe) { |
137 if (DEBUG) { |
140 if (DEBUG) { |
138 System.err.printf("Resolver API: No host in hosts file with %s address%n", address); |
141 System.err.printf("Resolver API: No host in hosts file with %s address%n", address); |