Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1007892 // Test DNS Lookup

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (2156L/14K/55K).

!7

p-tt {
  testIt("google.de");
  testIt("botcompany.de");
  testIt("ai1.space");
  testIt("69.10.46.185");
  testIt("not.found");
}

svoid testIt(S name) { pcall-short {
  printAsciiHeading2(name);
  print(InetAddress.getByName(name));
  printNumberedLines(InetAddress.getAllByName(name));
}}

sS str(O o) {
  if (o instanceof InetAddress)
    ret _str(o) + " (canonical: " + ((InetAddress) o).getCanonicalHostName() + ")";
  ret _str(o);
}

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: 502 / 605
Version history: 8 change(s)
Referenced in: