Hi Randy

You can also use the restful API described 
here:https://www.ripe.net/manage-ips-and-asns/db/support/documentation/ripe-database-documentation/how-to-query-the-ripe-database/14-3-restful-api-queries

for your specific query it returns this:

denis$ curl 'http://rest.db.ripe.net/ripe/inetnum/147.28.0.0/16?unfiltered'


<?xml version="1.0" encoding="UTF-8"?>

<whois-resources xmlns:xlink="http://www.w3.org/1999/xlink";>

<objects>

<object type="inetnum">

    <link xlink:type="locator" 
xlink:href="http://rest.db.ripe.net/ripe/inetnum/147.28.0.0 - 147.28.255.255"/>

    <source id="ripe"/>

    <primary-key>

        <attribute name="inetnum" value="147.28.0.0 - 147.28.255.255"/>

    </primary-key>

    <attributes>

        <attribute name="inetnum" value="147.28.0.0 - 147.28.255.255"/>

        <attribute name="netname" value="RG79-147-28"/>

        <attribute name="country" value="US"/>

        <attribute name="org" value="ORG-RO47-RIPE" 
referenced-type="organisation">

            <link xlink:type="locator" 
xlink:href="http://rest.db.ripe.net/ripe/organisation/ORG-RO47-RIPE"/>

        </attribute>

        <attribute name="admin-c" value="RB45695-RIPE" referenced-type="person">

            <link xlink:type="locator" 
xlink:href="http://rest.db.ripe.net/ripe/person/RB45695-RIPE"/>

        </attribute>

        <attribute name="tech-c" value="RB45695-RIPE" referenced-type="person">

            <link xlink:type="locator" 
xlink:href="http://rest.db.ripe.net/ripe/person/RB45695-RIPE"/>

        </attribute>

        <attribute name="status" value="LEGACY"/>

        <attribute name="mnt-by" value="MAINT-RGNET" referenced-type="mntner">

            <link xlink:type="locator" 
xlink:href="http://rest.db.ripe.net/ripe/mntner/MAINT-RGNET"/>

        </attribute>

        <attribute name="mnt-domains" value="MAINT-RGNET" 
referenced-type="mntner">

            <link xlink:type="locator" 
xlink:href="http://rest.db.ripe.net/ripe/mntner/MAINT-RGNET"/>

        </attribute>

        <attribute name="mnt-routes" value="MAINT-RGNET" 
referenced-type="mntner">

            <link xlink:type="locator" 
xlink:href="http://rest.db.ripe.net/ripe/mntner/MAINT-RGNET"/>

        </attribute>

        <attribute name="mnt-by" value="RIPE-NCC-LEGACY-MNT" 
referenced-type="mntner">

            <link xlink:type="locator" 
xlink:href="http://rest.db.ripe.net/ripe/mntner/RIPE-NCC-LEGACY-MNT"/>

        </attribute>

        <attribute name="created" value="2016-03-16T15:16:35Z"/>

        <attribute name="last-modified" value="2019-08-08T01:21:04Z"/>

        <attribute name="source" value="RIPE"/>

    </attributes>

</object>

</objects>

<terms-and-conditions xlink:type="locator" 
xlink:href="http://www.ripe.net/db/support/db-terms-conditions.pdf"/>

</whois-resources>

cheersdenis
co-chair DB-WG


    On Tuesday, 27 August 2019, 14:43:41 CEST, Randy Bush via db-wg 
<db-wg@ripe.net> wrote:  
 
 hi shane,

> The '-r' flag seems to disable related answers and is not
> type-specific.

```
ran.psg.com:/home/randy> uname -a
Linux ran.psg.com 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 
x86_64 x86_64 x86_64 GNU/Linux

ran.psg.com:/home/randy> whois -h whois.ripe.net -r 147.28.0.0/16
% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf

% Note: this output has been filtered.
%      To receive output for a database update, use the "-B" flag.

% Information related to '147.28.0.0 - 147.28.255.255'

% Abuse contact for '147.28.0.0 - 147.28.255.255' is 'blackh...@bogus.com'

inetnum:        147.28.0.0 - 147.28.255.255
netname:        RG79-147-28
country:        US
org:            ORG-RO47-RIPE
admin-c:        RB45695-RIPE
tech-c:        RB45695-RIPE
status:        LEGACY
mnt-by:        MAINT-RGNET
mnt-domains:    MAINT-RGNET
mnt-routes:    MAINT-RGNET
mnt-by:        RIPE-NCC-LEGACY-MNT
created:        2016-03-16T15:16:35Z
last-modified:  2019-08-08T01:21:04Z
source:        RIPE

% Information related to '147.28.0.0/16AS3130'

route:          147.28.0.0/16
descr:          RGnet/PSGnet
origin:        AS3130
mnt-by:        MAINT-RGNET
created:        1970-01-01T00:00:00Z
last-modified:  2003-12-22T01:59:14Z
source:        RIPE # Filtered

% This query was served by the RIPE Database Query Service version 1.94.1 
(ANGUS)

```

    

Reply via email to