Skip to content

Instantly share code, notes, and snippets.

@matt40k
Created May 29, 2015 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt40k/fe726cb07fdd9323a455 to your computer and use it in GitHub Desktop.
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
$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