On Thu, 16 Jan 2003, Dolling, Adrian CAWS:EX wrote:
> 
> HOSTALIAS does not seem to support IP ranges (except the wildcard * to
> represent 0-255)

Yes it does. Since version 5.30 you can use IP ranges and subnet masks.

> As
> the analog run-time seems to be proportional to the number of HOSTALIAS
> commands (~30 minutes for 200; ~7 hours for 4000) it seems the hostalias
> lookups must use an O(n) algorithm for the lookup.
> 

Yes, it does, and it must. The HOSTALIASes can't just sit in a hash table
because some or all of them may contain wild cards, so you have to test the
host against each alias in turn until you find one which matches.

However, as other people have said, if you want to map single hosts to
names, you can craft your own DNS cache file -- this does live in a hash
table, so access time is O(1).

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
 "The question of whether a computer can think is no more interesting than
  the question of whether a submarine can swim."  (Edsger W. Dijkstra)

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to