<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello Sean,</div>
<div><br>
</div>
<div>There are several ways you might want to approach this.</div>
<div><br>
</div>
<div>Since the set of direct allocations issued to CenturyLink doesn’t change all that frequently - only when you get a new block from ARIN or via a transfer, or transfer an existing block to another organization - you might consider storing data on all of
your direct allocations locally with relevant data - net handle, start IP, end IP, etc. When you want to make a reassign call, you can reference that stored data to take the prefix/range to be reassigned and determine the associated parent net handle. As
an example, if you locally store data for the net handle NET-63-144-0-0-1 with a start IP address of 63.144.0.0 and an end IP address of 63.151.255.255, you can then use that data to determine 63.145.104.192 falls within NET-63-144-0-0-1. The only caveat
with this approach is that you’d need to update your local data whenever you add a new block, transfer a block to another organization, etc.</div>
<div><br>
</div>
<div>Another option would be to use ARIN’s Whois-RWS API to identify the parent net handle for a given IP address. You can use that API to form a URL (<a href="http://whois.arin.net/rest/ip/63.145.104.192">http://whois.arin.net/rest/ip/63.145.104.192</a>)
which asks for the network handle associated with 63.145.104.192. You’ll get back a payload with the network registration information, including the net handle. Note that there’s no way to submit a call asking for only a direct allocation to be returned;
if the IP address is already assigned to a customer, you’ll get that record back. You’d have to then use the parent net handle from that record to submit a second query for registration information for that network, then verify what you get back is a direct
allocation. Keep in mind the Whois-RWS API is different than the Reg-RWS API. It’s public so there’s no API key, the payloads might not be exactly the same, etc.</div>
<div><br>
</div>
<div>Those are the options that occur to me as being most useful.</div>
<div><br>
</div>
<div>
<div>
<div>
<div>If you have any further questions, comments, or concerns please respond to this message or contact me directly. </div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Jon Worley</div>
<div>Principal Technical Analyst</div>
<div>ARIN Registration Services</div>
<div>https://www.arin.net/</div>
<div>hostmaster@arin.net</div>
<div>703.227.0660</div>
</div>
<div><br>
</div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><Zhao>, Sean <<a href="mailto:Sean.Zhao@CenturyLink.com">Sean.Zhao@CenturyLink.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, November 13, 2014 at 1:45 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:'arin-tech-discuss@arin.net">'arin-tech-discuss@arin.net</a>'" <<a href="mailto:arin-tech-discuss@arin.net">arin-tech-discuss@arin.net</a>><br>
<span style="font-weight:bold">Cc: </span>"Talavagalu Matha Ajjaiah, Chandrasekhara" <<a href="mailto:Chandrasekhara.Talavagalumathaajjaiah@CenturyLink.com">Chandrasekhara.Talavagalumathaajjaiah@CenturyLink.com</a>>, "Grimes, Ronald" <<a href="mailto:Ron.Grimes@CenturyLink.com">Ron.Grimes@CenturyLink.com</a>>,
"Sugandh, Nimesh" <<a href="mailto:Nimesh.Sugandh@CenturyLink.com">Nimesh.Sugandh@CenturyLink.com</a>><br>
<span style="font-weight:bold">Subject: </span>[arin-tech-discuss] Is ParentNetHandle mandatory in Net payload<br>
</div>
<div><br>
</div>
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">From your payload on your website. parentNetHandle looks like it is mandatory. My question is how I know the parentNetHandle of an ip that I want to swip?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For example. I have an 63.145.104.192. I went to <a href="http://whois.arin.net/rest/net/NET-63-145-104-192-1">
http://whois.arin.net/rest/net/NET-63-145-104-192-1</a> or <a href="http://whois.ote.arin.net/rest/net/NET-63-145-104-192-1">
http://whois.ote.arin.net/rest/net/NET-63-145-104-192-1</a><o:p></o:p></p>
<p class="MsoNormal">I got now xml return. It used to return me net playload . But the net is parent net. If you changed, do you have alternative way to get parent net handle? All I need is a parent net handle of the ip I am going to assign. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;padding:0in"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"><net xmlns="<a href="http://www.arin.net/regrws/core/v1">http://www.arin.net/regrws/core/v1</a>" ><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <version>4</version><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <comment><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <line number = "1">Line 1</line><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> </comment><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <registrationDate>Tue Jan 25 16:17:18 EST 2011</registrationDate><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <orgHandle>ARIN</orgHandle><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <handle>NET-10-0-0-0-1</handle><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <netBlocks><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <netBlock><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <type>A</type><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <description>DESCRIPTION</description><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <startAddress>010.000.000.000</startAddress><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <endAddress>010.000.000.255</endAddress><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <cidrLength>24</cidrLength><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> </netBlock><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> </netBlocks><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <customerHandle>C12341234</customerHandle><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">
<span style="background:yellow;mso-highlight:yellow"><parentNetHandle>PARENTNETHANDLE</parentNetHandle></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <netName>NETNAME</netName><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <originASes><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <originAS>AS102</originAS><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> </originASes><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <pocLinks><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> <pocLinkRef><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> </pocLinkRef><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"> </pocLinks><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';"></net><o:p></o:p></span></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>Thanks<o:p></o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal"><b>Sean Zhao<o:p></o:p></b></p>
<p class="MsoNormal"><b><a href="mailto:sean.zhao@centurylink.com">sean.zhao@centurylink.com</a><o:p></o:p></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<center>This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately
notify the sender by reply e-mail and destroy all copies of the communication and any attachments.</center>
</div>
</div>
</span>
</body>
</html>