DNS query in JAVA

后端 未结 3 1301
一整个雨季
一整个雨季 2021-02-20 08:39

I am messing around with DNS services in Java - I am specifically trying to lookup all google.com addresses and display them in an array, similar to running a lookup using nsloo

3条回答
  •  遇见更好的自我
    2021-02-20 09:07

    You cannot lookup TXT or other DNS records InetAddress class. InetAddress.getAllByName() looks up for A, or AAAA records only.

    Check DNS Java for your needs.

提交回复
热议问题