Static Monitor - DNS
Closed this issue · 1 comments
samcro1967 commented
First, thank you for this project. I have been able to successfully automate all of my Uptime-Kuma monitors except DNS queries. The static monitor is successfully added, but it defaults to the default DNS resolver server. My manually added monitors have an internally defined resolver server. I have tried the configs below without success.
For the first three attempts, I get the following in the container logs:
WARN [autokuma::sync] Encountered error during sync: Unable to deserialize: Unsupported static monitor file type: /static_monitors/.google_dns_osu6.json.swp, supported: .json, .toml
For the fourth attempt, I get the following:
WARN [autokuma::sync] Encountered error during sync: Error while trying to parse labels: TOML parse error at line 5, column 10
|
5 | resolver server = "192.168.1.106"
| ^
expected `.`, `=`
First Attempt
{
"name": "google dns6",
"type": "dns",
"hostname": "google.com",
"resolver_server": "192.168.1.106"
}
Second Attempt
{
"name": "google dns6",
"type": "dns",
"hostname": "google.com",
"resolverserver": "192.168.1.106"
}
Third Attempt
{
"name": "google dns6",
"type": "dns",
"hostname": "google.com",
"resolver.server": "192.168.1.106"
}
Fourth Attempt
{
"name": "google dns6",
"type": "dns",
"hostname": "google.com",
"resolver server": "192.168.1.106"
}
samcro1967 commented
Just found it. Should be dns_resolve_server