Created
January 14, 2020 19:12
-
-
Save lpellegr/c1948b7a96b3487271a610ff7241dca7 to your computer and use it in GitHub Desktop.
DnsJava Issue #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.xbill.DNS.Lookup; | |
import org.xbill.DNS.Record; | |
import org.xbill.DNS.TextParseException; | |
import org.xbill.DNS.Type; | |
public class DnsJavaTryOut { | |
public static void main(String[] args) throws TextParseException { | |
Record[] records = new Lookup("4.4.8.8.in-addr.arpa", Type.PTR).run(); | |
for (Record record : records) { | |
System.out.println(record); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the output:
when the code is run with the following Java version: