Posted to tcl by apn at Mon Sep 20 16:43:22 GMT 2010view raw

  1. (tcl) 85 % set tok [dns::resolve "gmail.com" -type MX]
  2. ::dns::13
  3. (tcl) 86 % dns::status $tok
  4. ok
  5. (tcl) 87 % dns::result $tok
  6. {name gmail.com type MX class IN ttl 3233 rdlength 32 rdata {40 alt4.gmail-smtp-in.l.google.com}} {name gmail.com type MX class IN ttl 3233 rdlength 9 rdata {10 alt1.gmail-smtp-in.l.google.com}} {name gmail.com type MX class IN ttl 3233 rdlength 9 rdata {30 alt3.gmail-smtp-in.l.google.com}} {name gmail.com type MX class IN ttl 3233 rdlength 9 rdata {20 alt2.gmail-smtp-in.l.google.com}} {name gmail.com type MX class IN ttl 3233 rdlength 4 rdata {5 gmail-smtp-in.l.google.com}}
  7. (tcl) 88 % dns::cleanup $tok
  8. (tcl) 89 %