[arin-tech-discuss] zero-padded IP addresses in "startAddress" and "endAddress" values
Dani Roisman
droisman at softlayer.com
Wed Mar 28 13:46:45 EDT 2012
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</parentNetRef>
<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
More information about the arin-tech-discuss
mailing list