I want to have a table column which will be filled with wildcard-type DNS entries, like
*.example.org
*.popularisp.net
such that I can make fast queries against actual reverse DNS hostnames, matching foobar.example.org to the first one above and 12-34-56-78.routers.popularisp.net to the second, for instance.
What is the best way to achieve this in a PostgreSQL index?