Help :How to update 1000+ IPV6 RDNS via API

Hi ,

I have added 2000 IPV6 to my server and i want to update RDNS via API in a loop via Putty

I used below code but its not working

can any one help me with exact script

script :

n=1

while [ $n -le 10000 ]

do

m=$((n+1))

curl -H 'Authorization: '

'SUBID=4307348' –data "ip=2a01:7e00:e000:206::$n" --data \

-X PUT -d '{"rdns":"example.org"}' \

https://api.linode.com/v4/networking/ip … 01::2:5001">https://api.linode.com/v4/networking/ipv6/2600:3c01::2:5001 \

n=$(( n+1 ))

sleep 2s

done

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct