Problems with DNS package in TCLLIB and the TCLUDP package



Hi,

I've verified this happens on both the Linux and Windows platforms. After installing the TCLUDP extension I try to perform DNS queries. I've been able to determine that UDP packets are being sent and received almost instantly but the data isn't being read in into memory (by TCL that is) until a dns query is performed using tcp. For example, below is what I'm seeing from tcl shell (the latest UDPTCL extension is loaded too, TCLUDP 1.0.7):

% package require dns
1.2.1
% set u_tok [dns::resolve ietf.org]
::dns::1
% dns::status $u_tok
connect
% dns::name $u_tok
can't read "state(reply)": no such element in array
% set t_tok [dns::resolve ieee.org -protocol tcp]
::dns::2
% dns::status $u_tok
ok
% dns::name $u_tok
ietf.org
% dns::status $t_tok
ok
% dns::name $t_tok
ieee.org

As I've mentioned above, I've been able to verify that the requests are being sent and received using UDP but for some reason the event handler being setup in the dns.tcl script isn't being called until I do a query in TCP. Does anyone have any ideas? I've been crawling around in the guts of the dns.tcl script for a few hours now and haven't been able to determine much. Some interesting things would be I noticed that by default the UDP socket is placed in a blocking state but the TCP socket is non-blocking. The manual page for fileevent says that this is usually a bad idea for writing event driven stuff like this. I modified the dns.tcl script to place the UDP socket in a non-blocking mode but I still get the same result. So, does anyone have any ideas as to what's causing this?

Also note that although not shown above I'm NOT using localhost as my namesever.

---------------------------------------------
Andrew R. Falanga (a non-HP employee)
Hewlett-Packard Company
11311 Chinden Blvd.
Boise, Idaho
---------------------------------------------
Please note: The e-mail address is purposely
mangled.  I do not wish my account at HP to
become a spam haven.
.



Relevant Pages

  • Re: Is there a way to forward only email to someone@AOL.com to a s
    ... Also on this site there is a way to test if your script ... map to ourdomain.com in DNS ... you for helping us to solve our SBS problems. ... I have other people on Verizon and they can send to AOL.com users. ...
    (microsoft.public.windows.server.sbs)
  • Re: Dynamic DNS management
    ... One of the irritations is that with a dynamic DNS, ... the IP addresses for the authoritative DNS server of multiple domains ... In the script, the above line is repeated for each domain; ... Perl has very good pattern matching. ...
    (comp.lang.perl.misc)
  • Solaris tuning
    ... new DNS infrastructure. ... behavior for me) that needs to be increased so this script can take ... server 198.18.0.12 ... def start: ...
    (comp.unix.solaris)
  • nsupdate(8) rc.d Script
    ... Subject: nsupdaterc.d Script ... As I was setting up DNS for IPv6 on a test network, ... And the script is not optimized to do the updates in the ...
    (freebsd-current)
  • Re: What happens to the machine name in AD?
    ... > OU which holds the computer accounts), then next to renaming the computer ... a rename will disjoin it. ... > script - if this script doesn't also update the respective computer ... > On the DNS end, I believe a new DNS record will be created for the new ...
    (microsoft.public.windows.server.active_directory)