The AFRINIC WHOIS database has a daily query limit that is applicable to the Person Objects only. Each IP address querying the database has a default daily limit of 5000 queries the limit is reached within 24 hours, the IP address is temporarily blocked: an event of type "BLOCK_TEMPORARY" is inserted in the DB (acl_event). The IP address will be unblocked after 24 hours max (maybe less, depending on the schedule that runs every 24 hours).
Note that the "BLOCK_TEMPORARY" event is not deleted from the DB. It will be deleted after 3 months. If the same IP address was blocked more than 10 times in the last 3 months, then it becomes blocked permanently. An IP address that was blocked permanently won't be able to query the WHOIS for one year.
Some users may have to do a lot of queries legitimately. To avoid these IPs to be blocked, a special limit can be set in the DB. It is the purpose of the acl_limit table in the ACL_LOCAL database
The AFRINIC WHOIS Database is an official record publicly accessible that holds information with regard to IP resources for organisations in the AFRICAN region.
The database is accessible to users who can query determine who is the holder of an IP block or an AS Number.
Two methods are available to query the WHOIS database.
(1) AFRINIC WHOIS web interface | (2) AFRINIC WHOIS CLI |
---|---|
The AFRINIC WHOIS web interface can be accessed at https://afrinic.net/whois |
The WHOIS Command Line Interface, using WHOIS Client downloadable here. |
The how-to guides and other manuals on the AFRINIC website can be found here.
Organisation objects are maintained by AFRINIC. AFRINIC provides a mechanism to edit addresses, e-mails and phone numbers through the MyAFRINIC member portal.
The administrative contact has the right to edit the details of the organisation.
Further changes or addition/removal of a contact person should be requested from AFRINIC by sending an e-mail to This email address is being protected from spambots. You need JavaScript enabled to view it.
To view IP addresses or AS numbers associated with an organisation, the “inverse query” can be used.
WHOIS -h WHOIS.afrinic.net -i org <ORG-HDL> -r -T inetnum,inet6num,aut-num
The above WHOIS query will display IPv4 address, IPv6 address and AS number records associated with a particular organisation object.
A person object holds information about technical or administrative contact responsible for the object where it is referenced. Each object has a unique Nic-handle attribute ("nic-hdl ").
Once the object is created, the value of the "person:" attribute cannot be changed.
Follow the steps below:
A Nic-handle is a unique identifier of a person object.
Whenever a person object is referenced in another database object, it is referenced by its Nic-handle and not by the person’s name.
A nic-hdl is representative of the following details of a person(name, address, telephone number and email).
When a person object is created in the AFRINIC WHOIS database, a maintainer is auto-generated which is added as mnt-by to the person object and a plain text password is sent to the e-mail referenced in the object.
Any modification of the object shall require the plain text password of the mnt-by.
Further reading on maintainers here.
A personal maintainer is always recommended which may be created on the WHOIS web interface as follows:
A) Create Object > mntner
B) Fill the object as follows:
Mntner: personal_mnt
descr: my maintainer
Admin-c: XX-AFRINIC (your nic-handle)
upd-to: This email address is being protected from spambots. You need JavaScript enabled to view it.
Auth: B-CRYTPT (hash)
Mnt-by: personal_mnt
Changed: This email address is being protected from spambots. You need JavaScript enabled to view it.
source: AFRINIC
C) The plain text password of the b-crypt key should be inserted in the password field when submitting the object.
D) Use this link to generate the b-crypt hash.
E) The person object can then be updated to replace the auto-generated maintainer with the newly created maintainer.
A person object contains information about technical or administrative contact responsible for the object where it is referenced. Each object has a unique Nic-handle attribute ("nic-hdl:"). Nic-handle is a unique identifier of a PERSON object. Whenever a PERSON object is referenced in another database object, it is referenced by its Nic-handle and not by the person’s name. Once the object is created, the value of the "person:" attribute cannot be changed.
Note: An auto-generated MNTNER object will be added in person objects which do not have an "mnt-by" attribute. The password of the auto-generated MNTNER will be sent to the email address(es) specified in the person object at the time of creation.
Follow the steps below:
To find out the contact information of the IP space, the flags (r and B) should be included to get the full object output from the AFRINIC WHOIS Database
Note that you will need the IP address of the email spammer in order to be able to find more details
A route object can be created through the AFRINIC WHOIS GUI.
route: 196.192.48.0/20 (should be an exact match or a more specific prefix of the prefix delegated by AFRINIC)
descr: Route Object Example
origin: AS327800 (The ASN that shall originate the inet(6)num prefix. ASN delegated by any RIR and registered in one RIR WHOIS database can be used)
mnt-by: EXAMPLE-MNT (The maintainer referenced as the mnt-lower or mnt-routes in the IPv4(6) objects)
changed: This email address is being protected from spambots. You need JavaScript enabled to view it. (your e-mail ID)
source: AFRINIC
The plain text password for the maintainer EXAMPLE-MNT should be used when submitting the object. For more information, please see the IRR comprehensive guide
It is recommended to use the 'Plain text update' or 'E-mail method' when creating several route objects
The route objects need to be built and compiled in a text file. Each object should be delimited by a blank line. The plain text password of the maintainer object must be specified in order to authorize the creation of the object in the WHOIS database.
An example is shown below
route: 196.192.48.0/20
descr: Route Object Example
origin: AS327800
mnt-by: EXAMPLE-MNT
changed: This email address is being protected from spambots. You need JavaScript enabled to view it.
source: AFRINIC
password: plain text password for the maintainer EXAMPLE-MNT
The plain text method can also be selected on the WHOIS interface to include all the objects that were compiled.
For the e-mail methods, the route object template can be sent to This email address is being protected from spambots. You need JavaScript enabled to view it..
AFRINIC and RIPE NCC are two different WHOIS databases. Objects in the AFRINIC database will have the suffix "-AFRINIC" while RIPE will have the suffix "-RIPE-NOAUTH" which will be filtered.
So, the objects can't be used interchangeably and the route objects must be created in the AFRINIC database.
AFRINIC registers the prefix with XXX as a country (we use the organisation's country as a reference). What the Internet will reflect will depend on whether the databases storing this info are synchronised/updated with the current AFRINIC WHOIS data. We have no control over the info stored in other databases.
The information stored in the AFRINIC database can be validated by querying WHOIS database.
If any discrepancies are found can be reported to This email address is being protected from spambots. You need JavaScript enabled to view it..