[arin-tech-discuss] zero-padded IP addresses in "startAddress" and "endAddress" values

David Huberman dhuberma at arin.net
Wed Mar 28 15:40:20 EDT 2012


Hello Dani,

ARIN's Registration RESTful web service has always expressed IP addresses
with zero padding. As you point out, however, the Whois RESTful web
service does not.  I think a fair explanation of these two behaviors is
that Whois is assumed to be read mostly by humans, and in contrast, the
output of the Registration RESTful web service is assumed to be
interpreted by machines.

We do note that the Payloads documentation currently available does not
properly indicate that the output is zero padded. We have a documentation
refresh coming very very shortly, and we will work to correct this
immediately.

Regards,
David

---
David R Huberman
Principal Technical Analyst, ARIN
703-227-9866







On 3/28/12 1:46 PM, "Dani Roisman" <droisman at softlayer.com> wrote:

Greetings,

One of our developers just pointed out to me that the values for
"startAddress" and "endAddress" values are now zero padded.  Is it
possible this was a result of the Mar 24th code push
(http://lists.arin.net/pipermail/arin-tech-discuss/2012-March/000187.html)?
  If so - was this expected, or a bug?

Here's an example from query "curl -4
https://www.arin.net/rest/net/NET-75-126-0-0-1?apikey=<snip>" (note, the
API key must be authorized to the network owner if you're trying to
reproduce this, try your key and your netblock)


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<net xmlns="http://www.arin.net/regrws/core/v1">
<pocLinks>
<pocLinkRef handle="IPADM258-ARIN" function="N" description="NOC"/>
<pocLinkRef handle="IPADM258-ARIN" function="T" description="Tech"/>
<pocLinkRef handle="ABUSE1025-ARIN" function="AB" description="Abuse"/>
</pocLinks>
<netBlocks>
<netBlock>
<cidrLength>16</cidrLength>
<description>Direct Allocation</description>
<endAddress>075.126.255.255</endAddress>    <--- this line
<startAddress>075.126.000.000</startAddress>    <--- and this line
<type>DA</type>
</netBlock>
</netBlocks>
<handle>NET-75-126-0-0-1</handle>
<netName>SOFTLAYER-4-3</netName>
<orgHandle>SOFTL</orgHandle>
<originASes>
<originAS>AS36351</originAS>
</originASes>
<parentNetHandle>NET-75-0-0-0-0</parentNetHandle>
<registrationDate >2006-05-12T17:11:04-04:00</registrationDate>
<version>4</version>
</net>

Note that this *differs* from public whois output, for example that same
netblock:

Using " curl -4 http://whois.arin.net/rest/net/NET-75-126-0-0-1"

<?xml version='1.0'?>
<?xml-stylesheet type='text/xsl'
href='http://whois.arin.net/xsl/website.xsl' ?>
<net xmlns="http://www.arin.net/whoisrws/core/v1"
xmlns:ns2="http://www.arin.net/whoisrws/rdns/v1"
xmlns:ns3="http://www.arin.net/whoisrws/netref/v2"
termsOfUse="https://www.arin.net/whois_tou.html">
<registrationDate>2006-05-12T17:11:04-04:00</registrationDate>
<ref>http://whois.arin.net/rest/net/NET-75-126-0-0-1</ref>
<endAddress>75.126.255.255</endAddress>
<handle>NET-75-126-0-0-1</handle>
<name>SOFTLAYER-4-3</name>
<netBlocks>
<netBlock>
<cidrLength>16</cidrLength>
<endAddress>75.126.255.255</endAddress> <-- this is what is expected
<description>Direct Allocation</description>
<type>DA</type>
<startAddress>75.126.0.0</startAddress>  <-- this is what is expected
</netBlock>
</netBlocks>
<originASes><originAS>AS36351</originAS></originASes>
<orgRef name="SoftLayer Technologies Inc."
handle="SOFTL">http://whois.arin.net/rest/org/SOFTL</orgRef>
<parentNetRef name="NET75"
handle="NET-75-0-0-0-0">http://whois.arin.net/rest/net/NET-75-0-0-0-0</pare
ntNetRef>
<startAddress>75.126.0.0</startAddress>
<updateDate>2012-03-09T11:55:23-05:00</updateDate>
<version>4
</version>
</net>

----
Dani Roisman
VP, Network Operations
droisman at softlayer.com
(281) 714-3714 direct
(818) 481-5581 cell

_______________________________________________
arin-tech-discuss mailing list
arin-tech-discuss at arin.net
http://lists.arin.net/mailman/listinfo/arin-tech-discuss




More information about the arin-tech-discuss mailing list