Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DNS Lookup Help  RSS feed

 
Anant Agarwal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Java Ranchers!

I have written one small Java program to validate a domain name.
Below is the code attached.




Just want to know if this DNS lookup from a java code can be blocked by a firewall or not.

Many Thanks,
Anant
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use javax.naming for DNS lookups; use http://www.xbill.org/dnsjava/

Outgoing DNS lookups *can* be blocked, but they generally aren't. All machines must do them periodically, so this would cause more problems than it would solve.
 
Anant Agarwal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your response!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!