> SUBDOMAIN *.* (or *.*.*) does exactly this.
This is something I had not considered, and is definitely worth looking
into- for getting rid of unwanted dialup provider host naming info. It
sounds like something that should go in the docs actually- I knew you
could use wildcards, but had never thought to use nothing but wildcards.
(maybe it is there already and I'm going blind)
It doesn't solve the root of what I was asking about though, which is a
way to speed up DNS lookups. Ideally, I would like to avoid having to even
resolve something into "port92.annex-near-LosAneles.blah.att.net" since
that takes a ton of time potentially.
I have found a somewhat cheesy way of doing what I want, but it's not
something I'd rather have to resort to. Picture this... I run analog and
generate a DNS cache file. When it finishes (hum-dee-do-dee-dum) I run a
script that turns this:
921777777 123.45.67.29 big.list.of.ugly.names.att.net
into this:
921777777 123.45.67.1 att.net
921777777 123.45.67.2 att.net
921777777 123.45.67.3 att.net
...
921777777 123.45.67.254 att.net
Effectively spoofing some info into the cache file, thus preventing you
from having to do a costly call to inet_addr - problem solved, the next
time I run analog.
I think a side benefit of this method is that unresolved addresses can
be treated differently, so you don't blow out an entire class-C because
one address won't reverse. Of course, the cache file could potentially
grow to be pretty large, and it *is* ugly.
I just spent some time looking at my cache files. (try it yourself
sometime- it's fun! "cat /path/to/analog/dnscache|sort +1 -t' '|more") I
found that almost nothing would be lost by discarding the low-order octet
in terms of naming accuracy, and it could potentially save thousands of
lookups on a large log file, a *huge* time saver.
Anyway- it doesn't seem like anyone else is interested in this, so I
may just hack it alone. (unless I decide it's not even worth it, and let
things run slow) I can't imagine it being very difficult to fix up the
code to change caching. Finding it would be the hardest part I think...
I've been looking through alias.c where DNS stuff seems to be done, but
so far no luck, but I've only spent about 15 minutes on it so far. The
code looks fairly straight forward- definitely "clean" so it shouldn't
take me too long... Any tips would be greatly appreciated of course, even
"do not attemt this, it's impossible and a waste of your time."
Thanks for the help so far, and for that yet to come.
-=Jim=-
--------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
--------------------------------------------------------------------