Terms lookup with range?

I want a query like "is this IP address belong to addresses from the table?". And the table can have individual addresses, ranges (e.g, 192.168.10.2 - 192.168.10.102), and/or mask (e.g, 192.168.10.0/28) with lots of those.
Can I use "terms query with lookup" for this? Then how? If not, what'd be the best way to archive this?
Thanks in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.