Getting a snapshot of the DNS domain definition is important for IT auditing, when you want to save the zone as part of CI, or just for backup.
This is a 4 step process, examples are for curl
Step 0: Setup
To work around curl problems with escaping command line special characters, create a text file containing JSON like this
{ "customer_name" : "ACME" , "user_name" : "user", "password" : "secretpassword" }
For our sample, lets call this file Credentials.txt
step 1: get the session token.
You have to POST your credentials to https://api2.dynect.net/REST/Session/ like this:
curl -X POST -d @Credentials.txt -H "Content-Type: application/json" https://api2.dynect.net/REST/Session/
This returns a JSON response that looks like this:
{"status": "success",
"data": {"token": "6WQpNcFBN......wkAvtSvzzIkZaMQ==", "version": "3.5.4"},
"job_id": 670441930,
"msgs": [{"INFO": "login: Login successful", "SOURCE": "BLL", "ERR_CD": null, "LVL": "INFO"}]}
step 2: Assign a variable
Parse the response, get the value of "token: and assign the value of "token" to the TOKEN variable.
step 3: List records in a domain
Next is a GET command, that expects JSON, and uses a custom header with the Auth token
curl -X GET -H "Content-Type: application/json" -H "Auth-Token: $TOKEN" https://api2.dynect.net/REST/AllRecord/mydomain.com/
Comments
25 comments
Thank you for this post. Thank you for sharing the information how to get all records from a zone through theAPI. Now I know more about it. You can make a video about it too
I will be able to buy instagram followers using https://soclikes.com to enlarge their amount.
Thanks to author for this guide, it was very informative for me, cause i learned how to get all records from a zone through the api.
You can use the help of https://viplikes.net/ to quickly increase the number of instagram followers.
Thank you for sharing your post how to get all records from a zone through theAPI. It is very useful for me. I have learned new information. I think you should write more detailed article about it
I will be able to buy instagram followers to enlarge their amount
Hii,
This is Great Post.. for me, Thanks for sharing with us!!
https://www.socializeclub.com/
Thanks for sharing with us www.lnmu.org
Donkey Kong provides a centralized interface to control various aspects of a smart home.
Hii, Admin
Thanks for sharing with us!! https://adarshparkland.co/
Thanks for sharing with us!! https://www.adarshwelkinpark.gen.in/
Thank you for shearing amazing post this is post very useful for me. https://mantridevelopers.in/
Thank you for shearing amazing post this is post very useful for me. https://sobhaproperties.in/
Thanks for sharing with us!! https://www.sobhadreamvalley.in/
Thanks for sharing with us!! https://thegodrejproperties.net.in/
Thanks for sharing with us!! https://adarshwelkinparks.in/
Thanks for sharing with us!! https://adarshparkland.gen.in/
Thanks for sharing with us!! https://providentecopolitan.gen.in/
Thanks for sharing with us!! https://sobhaneapolis.gen.in/
Thanks for sharing with us!! https://doorsandshelters.com/property/sobha-crystal-meadows/
Thanks for sharing with us!! https://doorsandshelters.com/property/the-poem-by-shriram/
Thanks for sharing with us!! https://doorsandshelters.com/property/assetz-66-shibui/
Thanks for sharing with us!! https://doorsandshelters.com/property/godrej-woodscapes/
This is Great Post.. for me
https://nambiardistrict25.gen.in/
This is Great Post.. for me
https://adarshlumina.gen.in/
This is Great Post.. for me
https://adarshrosewood.gen.in/
This is Great Post.. for me
https://adarshdeveloperss.com/
This is Great Post.. for me
https://lodhahosaroad.in/
Please sign in to leave a comment.