This archive is retained to ensure existing URLs remain functional. It will not contain any emails sent to this mailing list after July 1, 2024. For all messages, including those sent before and after this date, please visit the new location of the archive at https://mailman.ripe.net/archives/list/db-wg@ripe.net/
[db-wg] -V database query semantics
- Previous message (by thread): [db-wg] restrict usage of RIPE-NCC-RPSL-MNT
- Next message (by thread): [db-wg] -V database query semantics
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Hilliard
nick at inex.ie
Sat Nov 15 20:11:39 CET 2014
Could someone from RIPE clarify the semantics for the -V query? In the database query reference manual, section 2.6 it says: > -V --client <client-tag> Sends information about the client to the server. But in section 2.11, it says: > The database server provides a facility for such proxy clients that > allows accounting to be based on the IP address of the clients using the > proxy to query the RIPE Database and not on the IP address of the proxy > server. This is done using the ā-Vā flag as follows: > > -V <version>,<ipv4-address> > > where > > <version> is a client tag that usually represents the software version > that the proxy uses > <ipv4-address> is the IPv4 address of the client that queries the > database using the proxy According to the source code, the argument for the -V parameter is passed into the QueryFlag.CLIENT variable and then parsed using getProxyIp(). If the format looks like "version,ipv4addr" then the argument is passed to the proxy accounting mechanism for rate limiting. But if the argument is not formatted like this, it looks like the "-V" parameter is ignored. Is this understanding correct, and should all whois clients use the "-V" query to pass their client ID to the whois server by default? As an aside, the isProxyValid() function uses InetAddresses.isInetAddress(), which suggests that the code should also understand "-V <version>,<ipv6-address>". If this is correct+tested, the documentation should be updated. Nick
- Previous message (by thread): [db-wg] restrict usage of RIPE-NCC-RPSL-MNT
- Next message (by thread): [db-wg] -V database query semantics
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[ db-wg Archives ]