Search found 5 matches

by notbugme
Tue Aug 09, 2005 8:11 pm
Forum: newLISP in the real world
Topic: bug in net-lookup
Replies: 12
Views: 9814

Good suggestion, I implemented an optional 'true' flag which will force hostbyname() even if starting with a number digit: newLISP v.8.6.2 on OSX UTF-8, execute 'newlisp -h' for more info. > (net-lookup "216.16.84.66.sbl-xbl.spamhaus.org" true) "127.0.0.2" > This will show up in 8.6.2 Lutz ps: and ...
by notbugme
Tue Aug 09, 2005 3:40 pm
Forum: newLISP in the real world
Topic: bug in net-lookup
Replies: 12
Views: 9814

probably, the safe way will be to write something like: (define (great-net-lookup s) (let (l nil) (net-lookup (if (set 'l (match '(? ? ? ? "in-addr" "arpa") (parse s "."))) (join (reverse l) ".")) s))) That is a smart way to handle "*.*.*.*.in-addr.arpa" but it does not work for doing a DNS BL quer...
by notbugme
Tue Aug 09, 2005 3:31 pm
Forum: newLISP in the real world
Topic: bug in net-lookup
Replies: 12
Views: 9814

Welcome ;-) Thanks. net-lookup does this -> Returns a hostname string from str-ip-number in IP dot format or returns the IP number in dot format from str-hostname. That was what I meant by net-lookup getting confused. I believe that in order for it to determine which way it acts anytime it is calle...
by notbugme
Tue Aug 09, 2005 2:53 pm
Forum: newLISP in the real world
Topic: bug in net-lookup
Replies: 12
Views: 9814

This is not a bug since it is no feature of newLisp anyway. Nor standard network commands can handle this format: c:\Scripts>ping 10.41.232.199.relays.ordb.org Unknown host 10.41.232.199.relays.ordb.org. ORDB does not list that address as an open relay. Try 216.16.84.66.sbl-xbl.spamhaus.org: C:\>pi...
by notbugme
Tue Aug 09, 2005 11:08 am
Forum: newLISP in the real world
Topic: bug in net-lookup
Replies: 12
Views: 9814

bug in net-lookup

The following code suggests that net-lookup is not capable of handling queries such as 10.41.232.199.in-addr.arpa. It appears newLISP gets confused by the query starting with an IP address. This feature is important to me because I would like to be able to check for an IP's address in a DNS BL -- ie...