DNS query with ColdFusion

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default DNS query with ColdFusion

    Hi all,

    I need to make a DNS query from within ColdFusion MX 6.1 to figure out the
    Active Directories servers for a domain name (TXT records) .

    I am looking for some example code to do that using the underlying Java
    classes.

    Any link?

    Thanks a lot.

    thewolf Guest

  2. Similar Questions and Discussions

    1. Coldfusion to create a PDF file from a query
      I use Coldfusion to create a PDF file from a query. Everything works fine, except that my PDF file only shows the first record from my query. If I...
    2. Coldfusion MX 6.1 Query of Queries issue
      does any1 know if mx7 has fixed the query of queries runtime error issue which became apparant in mx6.1, where ColdFusion seemed not able to...
    3. ColdFusion+cfquery+Oracle+CLOB+"Query of Query"
      Error message is: Query Of Queries runtime error. Unsupported SQL type "java.sql.Types.CLOB". My database table: RESMIGAZETEFIHRISTI: ...
    4. Coldfusion Tags in a Query Result...
      I have a query that returns a bunch of html code from a database. This populates the contents of my page. I would like to add some coldfusion tags...
    5. Coldfusion Query to WDDX problem
      I have a cfusion created query that holds all my basket info. I need to pass this basket to a secure server (shard cert) via http. The concept...
  3. #2

    Default Re: SQL - Syntax Error in valid sql, but only in CF?

    Attached is a function that works on all MX versions, i believe.

    Courtesy of BF.


    <cfscript>
    /**
    * Performs a DNS lookup on an IP address.
    *
    * @param address IP address to look up.
    * @return Returns a domain name.
    * @author Ben Forta (ben@forta.com)
    * @version 1, December 19, 2001
    */
    function GetHostName(address) {
    // Variables
    var iaclass="";
    var addr="";

    // Init class
    iaclass=CreateObject("java", "java.net.InetAddress");

    // Get address
    addr=iaclass.getByName(address);

    // Return the name
    return addr.getHostName();
    }
    </cfscript>

    MikerRoo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139