Libraryless. Click here for Pure Java version (2156L/14K/55K).
1 | !7 |
2 | |
3 | p-tt {
|
4 | testIt("google.de");
|
5 | testIt("botcompany.de");
|
6 | testIt("ai1.space");
|
7 | testIt("69.10.46.185");
|
8 | testIt("not.found");
|
9 | } |
10 | |
11 | svoid testIt(S name) { pcall-short {
|
12 | printAsciiHeading2(name); |
13 | print(InetAddress.getByName(name)); |
14 | printNumberedLines(InetAddress.getAllByName(name)); |
15 | }} |
16 | |
17 | sS str(O o) {
|
18 | if (o instanceof InetAddress) |
19 | ret _str(o) + " (canonical: " + ((InetAddress) o).getCanonicalHostName() + ")"; |
20 | ret _str(o); |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007892 |
| Snippet name: | Test DNS Lookup |
| Eternal ID of this version: | #1007892/9 |
| Text MD5: | 4beb5f68688cf68484622cc56bbd1d0e |
| Transpilation MD5: | 0541b7b6173f99e98fc0ec45ae08a488 |
| Author: | stefan |
| Category: | javax / networking |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-14 16:23:49 |
| Source code size: | 463 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 728 / 883 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |