Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: .log to .csv conversion

From: brett::codeconscious::com at: 16-Mar-2001 9:26

> > I do have a question, however: the script takes a LONG time to run
because
> > of all of the DNS lookups. Is there any way to speed this up? > make (and save) a hash of ip -> domain-name > and only do the dns lookup once per ip
If you are using an experimental version of Rebol, you could open a port to DNS instead of reading from it each time. As I understand it this will maintain a connection to the DNS server allowing multiple queries without the connection overhead. Though I don't know how much a gain you'll get with this. Also, I've found that quite a few IPs will not resolve to a domain name. I figured if I could use whois I could not only find out who has been assigned the IP but get an ip range possibly satisfying more than the one ip I'm looking for. Alas, as far as I can tell at the moment, whois is not standard so you would have to write a parser for each whois you need to query (btw, anyone done this ?). For the purposes of statistics then, it may be better not to resolve the names, unless you really really need to. Brett.