Tk Library Source Code

View Ticket
Login
Ticket UUID: 520279
Title: New package - dns lookups in Tcl
Type: Patch Version: None
Submitter: patthoyts Created on: 2002-02-20 01:51:26
Subsystem: None Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-03-02 08:44:24
Resolution: Accepted Closed By: patthoyts
    Closed on: 2002-03-02 01:44:24
Description:
I have produced a dns package to permit Tcl-only Domain
Name Service lookups using the usual fileevent
framework to allow for timeouts and asynchronous
network transmission. This is modelled on the http package.

Also extends the uri package to support the dns URI
scheme. This code should probably end up in the uri
package later on.

For example:
 set tok [dns::resolve www.google.com]
 dns::address $tok
 dns::cleanup $tok

 dns::resolve "dns:tcl.tk;type=MX" -command handler

No tests but there is a .man page.
User Comments: patthoyts added on 2002-03-02 08:44:24:
Logged In: YES 
user_id=202636

Added the new module to tcllib.

patthoyts added on 2002-02-20 15:33:47:

File Deleted - 18120:

patthoyts added on 2002-02-20 15:32:54:

File Added - 18132: dns.tcl

patthoyts added on 2002-02-20 08:56:54:

File Added - 18123: tk_sample.tcl

patthoyts added on 2002-02-20 08:55:43:

File Added - 18122: dns.man

patthoyts added on 2002-02-20 08:55:39:
Logged In: YES 
user_id=202636

I nearly forgot - I'm looking for comments and complaints
before I go and commit this as a new 'dns' module.

patthoyts added on 2002-02-20 08:51:44:

File Added - 18120: dns.tcl

Attachments: