501 Argument Exception fr...
501 Argument Exception from API call to add DNS entry
- Casa
- Pannello di controllo
- Forum della Comunità
- General Discussion
- Developer Discussion
- 501 Argument Exception from API call to add DNS entry
- Forum della Comunità
- 501 Argument Exception from API call to add DNS entry
Argomento: 501 Argument Exception from API call to add DNS entry
I'm trying to add a DNS entry using the API call https://api.dynu.com/v2/dns. I'm doing this from a powershell with the following code:
$Form = @{
name = 'qwikfoto3.ddnsfree.com'
group = ''
ipv4Address = $myip
ipv6Address = ''
ttl = '90'
ipv4 = $true
ipv6 = $false
ipv4WildcardAlias = $true
ipv6WildcardAlias = $false
allowZoneTransfer = $false
dnssec = $false
}
$Response = Invoke-WebRequest -Headers $headers -Uri https://api.dynu.com/v2/dns -Body $Form -Method Post -UseBasicParsing
A 501 Argument Exception suggests that there's something wrong with one of the arguments that I'm passing.
Can anyone find the problem here?
Thanks,
$Form = @{
name = 'qwikfoto3.ddnsfree.com'
group = ''
ipv4Address = $myip
ipv6Address = ''
ttl = '90'
ipv4 = $true
ipv6 = $false
ipv4WildcardAlias = $true
ipv6WildcardAlias = $false
allowZoneTransfer = $false
dnssec = $false
}
$Response = Invoke-WebRequest -Headers $headers -Uri https://api.dynu.com/v2/dns -Body $Form -Method Post -UseBasicParsing
A 501 Argument Exception suggests that there's something wrong with one of the arguments that I'm passing.
Can anyone find the problem here?
Thanks,
Rispondi con citazione | Segnalare
Autore | Argomento: 501 Argument Exception from API call to add DNS entry |
---|---|
pcameron60 Iscritto: 18/02/2019 |
![]() giovedì 28 gennaio 2021 19:43
I'm trying to add a DNS entry using the API call https://api.dynu.com/v2/dns. I'm doing this from a powershell with the following code:
$Form = @{ name = 'qwikfoto3.ddnsfree.com' group = '' ipv4Address = $myip ipv6Address = '' ttl = '90' ipv4 = $true ipv6 = $false ipv4WildcardAlias = $true ipv6WildcardAlias = $false allowZoneTransfer = $false dnssec = $false } $Response = Invoke-WebRequest -Headers $headers -Uri https://api.dynu.com/v2/dns -Body $Form -Method Post -UseBasicParsing A 501 Argument Exception suggests that there's something wrong with one of the arguments that I'm passing. Can anyone find the problem here? Thanks, |

martedì 15 aprile 2025 10:24