16.4 Inverse Queries

Inverse queries search for object's inverse keys that are supplied as an argument to a query. The query flag “-i” (or --inverse) must also be specified with appropriate query flag arguments. Inverse keys are defined in the templates of the RIPE Database objects. (See section "RPSL Object Types" for more details.) These templates can be listed by querying the RIPE Database. See section "Accessing the Object Templates" for more details.

A complete listing of the inverse query flag arguments is available in the "Tables of Query Types Supported by the RIPE Database" in the RIPE Database Query Reference Manual.

By performing an inverse query, the user requests all objects to be returned from the database that contain the specified query argument in the attribute(s) specified in the query flag arguments.


whois -i admin-c <nic-handle>

will return all objects where the “admin-c:” attribute contains the <nic-handle> specified as the query argument.

You can specify several query flag arguments to request searches against several attributes in objects. If you want to do this, the query flag arguments should be entered as a comma-separated list with no white spaces. All the attributes searched must contain the same type of value. In other words, all the values must be maintainers or nic-handles or one of the other values listed in the appendix section on Supported Queries.


whois --inverse mb,mnt-lower <mntner name>

will return all objects where the “mnt-by:” or the “mnt-lower:” attributes contain the <mntner name> specified as the query argument.