Debug Provider is a virtual DNS provider specifically designed for debugging and testing purposes. It simulates the DNS record update process but does not perform any actual operations, only outputs relevant information to the console to help developers debug DDNS configuration and functionality.
Official Links:
Debug Provider does not require any authentication information, no need to configure id
and token
parameters.
{
"dns": "debug" // Only need to specify provider as debug
}
{
"$schema": "https://ddns.newfuture.cc/schema/v4.0.json", // Format validation
"dns": "debug", // Current provider
"index4": ["url:http://api.ipify.cn", "public"], // IPv4 address source
"index6": "public", // IPv6 address source
"ipv4": ["ddns.newfuture.cc"], // IPv4 domains
"ipv6": ["ipv6.ddns.newfuture.cc"], // IPv6 domains
"cache": false, // Recommend disabling cache for debugging
"log": {
"level": "debug" // Log level
}
}
Parameter | Description | Type | Range/Options | Default | Parameter Type |
---|---|---|---|---|---|
dns | Provider identifier | String | debug |
None | Provider Parameter |
index4 | IPv4 source | Array | Reference | default |
Common Config |
index6 | IPv6 source | Array | Reference | default |
Common Config |
proxy | Proxy settings | Array | Reference | None | Common Network |
ssl | SSL verification | Boolean/String | "auto" , true , false |
auto |
Common Network |
cache | Cache settings | Boolean/String | true , false , filepath |
false |
Common Config |
log | Log configuration | Object | Reference | None | Common Config |
Parameter Type Description:
- Common Config: Standard DNS configuration parameters applicable to all supported DNS providers
- Common Network: Network setting parameters applicable to all supported DNS providers
ddns --debug
ddns --dns debug --index4=0 --ipv4=ddns.newfuture.cc --debug
INFO DebugProvider: ddns.newfuture.cc(A) => 192.168.1.100
Debug Provider also simulates some common error scenarios to help test error handling logic.