{"id":450,"date":"2003-07-16T20:05:02","date_gmt":"2003-07-17T00:05:02","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=450"},"modified":"2003-07-16T20:05:02","modified_gmt":"2003-07-17T00:05:02","slug":"coldfusion-whois-client-using-jakarta-commonsnet-lib","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2003\/07\/16\/coldfusion-whois-client-using-jakarta-commonsnet-lib\/","title":{"rendered":"ColdFusion Whois client using Jakarta Commons\/Net lib"},"content":{"rendered":"<p><a href=\"http:\/\/doug.nottage.com\/cf\/index.cfm\">Doug<\/a> posted a query on the cfguru list asking how he might retrieve whois information using ColdFusion.  I mentioned that there are numerous tags (<a href=\"http:\/\/www.google.com\/search?hl=en&amp;lr=&amp;ie=UTF-8&amp;oe=UTF-8&amp;q=coldfusion+whois+custom+tags&amp;spell=1\">search on google<\/a> if you want to see them), but that it&#8217;s pretty easy to do within ColdFusion if you drop the <a href=\"http:\/\/jakarta.apache.org\/commons\/net\/\">Jakarta Commons\/Net <\/a> jar into your ColdFusion lib directory (cfusionmx\/wwwroot\/WEB-INF\/lib\/):<\/p>\n<p>&lt;cfscript&gt;<br \/>\n&nbsp;&nbsp;whois = createObject(&#8220;java&#8221;, &#8220;org.apache.commons.net.WhoisClient&#8221;);<br \/>\n&nbsp;&nbsp;whois.init();<br \/>\n&nbsp;&nbsp;whois.connect(&#8220;192.149.252.43&#8221;); \/\/ whois.arin.net<br \/>\n&nbsp;&nbsp;WriteOutput(whois.query(&#8220;204.212.42.4&#8221;)); \/\/ your random ip address here<br \/>\n&nbsp;&nbsp;whois.disconnect();<br \/>\n&lt;\/cfscript&gt;<\/p>\n<p>Note that the whois service works over port 43, so your server must have outbound access to port 43 (if you&#8217;re accessing a server outside your own network, performance would presumably be much better if you ran your own whois server internally).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Doug posted a query on the cfguru list asking how he might retrieve whois information using ColdFusion. I mentioned that there are numerous tags (search on google if you want to see them), but that it&#8217;s pretty easy to do within ColdFusion if you drop the Jakarta Commons\/Net jar into your ColdFusion lib directory (cfusionmx\/wwwroot\/WEB-INF\/lib\/): &hellip; <a href=\"https:\/\/cephas.net\/blog\/2003\/07\/16\/coldfusion-whois-client-using-jakarta-commonsnet-lib\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ColdFusion Whois client using Jakarta Commons\/Net lib<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/450"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=450"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/450\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}