Created
May 29, 2015 22:24
-
-
Save matt40k/fe726cb07fdd9323a455 to your computer and use it in GitHub Desktop.
PowerShell script for using mythic-beasts.com DNS API - https://www.mythic-beasts.com/support/api/primary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ipv4 = 'https://dnsapi4.mythic-beasts.com/' | |
$ipv6 = 'https://dnsapi6.mythic-beasts.com/' | |
$password = 'password' | |
$domain = 'mythic-beasts.com' | |
$command = 'LIST' | |
$header = @{"Content-Type"="application/x-www-form-urlencoded"} | |
$body = @{domain=$domain;password = $password;command=$command;} | |
$r = Invoke-WebRequest -URI $ipv4 -Method POST -Headers $header -Body $body | |
Write-Host $r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment