This YANG module provides a data-model for the Unbound service.
Copyright 2018-2020 Rubicon Communications, LLC.
Configuration for the Unbound DNS name resolver daemon.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:unbound-config": {
- "netgate-unbound:parameters": {
- "netgate-unbound:enable": true
}, - "netgate-unbound:daemon": {
- "netgate-unbound:forward-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:server": {
- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": null,
- "netgate-unbound:ip-address": [ ],
- "netgate-unbound:host-name": null
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
}
}
}
Configuration for the Unbound DNS name resolver daemon.
netgate.unbound.UnboundConfig to be added to list
object (netgate.unbound.unboundconfig.Parameters) A collection of various Unbound parameters. | |
object (netgate.unbound.unboundconfig.Daemon) The server attributes. |
{- "netgate-unbound:parameters": {
- "netgate-unbound:enable": true
}, - "netgate-unbound:daemon": {
- "netgate-unbound:forward-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:server": {
- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- null
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
}
}
Configuration for the Unbound DNS name resolver daemon.
netgate.unbound.UnboundConfig to be added or updated
object (netgate.unbound.UnboundConfig) Configuration for the Unbound DNS name resolver daemon. |
{- "netgate-unbound:unbound-config": {
- "netgate-unbound:parameters": {
- "netgate-unbound:enable": true
}, - "netgate-unbound:daemon": {
- "netgate-unbound:forward-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:server": {
- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": null,
- "netgate-unbound:ip-address": [ ],
- "netgate-unbound:host-name": null
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
}
}
}
Configuration for the Unbound DNS name resolver daemon.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:daemon": {
- "netgate-unbound:forward-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:server": {
- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- null
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
}
}
The server attributes.
netgate.unbound.unboundconfig.Daemon to be added to list
object (netgate.unbound.unboundconfig.daemon.ForwardZones) The forward-zone attributes. | |
object (netgate.unbound.unboundconfig.daemon.Server) The server attributes. |
{- "netgate-unbound:forward-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:server": {
- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
}
The server attributes.
netgate.unbound.unboundconfig.Daemon to be added or updated
object (netgate.unbound.unboundconfig.Daemon) The server attributes. |
{- "netgate-unbound:daemon": {
- "netgate-unbound:forward-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:server": {
- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- null
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:forward-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}
}
The forward-zone attributes.
netgate.unbound.unboundconfig.daemon.ForwardZones to be added to list
Array of objects (netgate.unbound.unboundconfig.daemon.forwardzones.Zone) Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses. |
{- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}
The forward-zone attributes.
netgate.unbound.unboundconfig.daemon.ForwardZones to be added or updated
object (netgate.unbound.unboundconfig.daemon.ForwardZones) The forward-zone attributes. |
{- "netgate-unbound:forward-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses.
netgate.unbound.unboundconfig.daemon.forwardzones.Zone to be added to list
object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses) A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded. | |
object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts) | |
netgate-unbound:forward-first | boolean If true and the query fails using this forwarder first, lookups are then sent to authoritative, root nameservers. |
netgate-unbound:forward-tls-upstream | boolean If true, queries to this forwarder use TLS for transport. |
netgate-unbound:zone-name | string The forward-zone domain name. Use '.' as a wildcard to forward all queries. |
{- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses.
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:zone": {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
}
Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.Zone to be added or updated
object (netgate.unbound.unboundconfig.daemon.forwardzones.Zone) Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses. |
{- "netgate-unbound:zone": {
- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}, - "netgate-unbound:forward-first": true,
- "netgate-unbound:forward-tls-upstream": true,
- "netgate-unbound:zone-name": "string"
}
}
Each forward-zone is identified by a domain name. Use '.' as the wildcard domain name. Each zone has a list of nameservers specified as hostnames or host addresses.
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-addresses" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}
}
A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses to be added to list
Array of objects (netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address) |
{- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}
A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses to be added or updated
object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses) A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded. |
{- "netgate-unbound:forward-addresses": {
- "netgate-unbound:address": [
- {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}
}
A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-addresses" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
creates netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address to be added to list
netgate-unbound:auth-name | string An optional TLS auth name. |
netgate-unbound:port | integer <int32> An optional port number. |
netgate-unbound:ip-address | string IP address of a nameserver to which queries are forwarded. |
{- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
returns netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
zone-name required | string Id of zone |
ip-address required | string Id of address |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-addresses/address=%7Bip-address%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:address": {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
}
creates or updates netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
zone-name required | string Id of zone |
ip-address required | string Id of address |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address to be added or updated
object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address) |
{- "netgate-unbound:address": {
- "netgate-unbound:auth-name": "string",
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
}
removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address
zone-name required | string Id of zone |
ip-address required | string Id of address |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-addresses/address=%7Bip-address%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
returns netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-hosts" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}
}
creates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts to be added to list
netgate-unbound:host | Array of strings Hostname of a nameserver to which queries are forwarded. |
{- "netgate-unbound:host": [
- "string"
]
}
creates or updates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts to be added or updated
object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts) |
{- "netgate-unbound:forward-hosts": {
- "netgate-unbound:host": [
- "string"
]
}
}
removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/forward-zones/zone=%7Bzone-name%7D/forward-hosts" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:server": {
- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
}
The server attributes.
netgate.unbound.unboundconfig.daemon.Server to be added to list
netgate-unbound:num-queries-per-thread | integer <int32> The number of queries that every thread will service simultaneously. |
netgate-unbound:outgoing-range | integer <int32> Default: 4096 The number of ports, and file descriptors, to open per thread. Must be at least 1. |
netgate-unbound:prefetch | boolean If true, message cache elements are prefetched before they expire to keep the cache up to date. |
netgate-unbound:serve-expired | boolean If true, the server attempts to serve old responses from cache with a TTL of 0 in the response without waiting for the actual resolution to finish. |
netgate-unbound:do-tcp | boolean Default: true If true, TCP queries are answered. |
netgate-unbound:harden-dnssec-stripped | boolean If true, require DNSSEC data for trust-anchored zones. |
netgate-unbound:cache-min-ttl | integer <int64> Maximum time to live for RRsets and messages in the cache. Default is 0 seconds. |
netgate-unbound:msg-cache-size | integer <int64> The number of bytes in the message cache. The default is 4 megabytes. |
netgate-unbound:incoming-num-tcp | integer <int32> The number of incoming TCP buffers to allocate per thread. Default is 10. |
netgate-unbound:use-caps-for-id | boolean If true, use 0x20-encoded random bits in the query to foil spoof attempts. |
netgate-unbound:unwanted-reply-threshold | integer <int64> If not 0, when a total number of unwanted replies per thread reaches this threshold, warnings are issued and defensive actions is taken. The RRset and message caches are cleared. |
netgate-unbound:edns-buffer-size | integer <int32> The EDNS reassembly buffer size in bytes advertised to peers. Default is 4096 by RFC recommendation. |
netgate-unbound:outgoing-num-tcp | integer <int32> The number of outgoing TCP buffers to allocate per thread. Default is 10. |
object (netgate.unbound.unboundconfig.daemon.server.LocalZones) The local-zone attributes. | |
object (netgate.unbound.unboundconfig.daemon.server.OutgoingInterfaces) The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list. | |
netgate-unbound:rrset-cache-size | integer <int64> The number of bytes in the RRset cache. The default is 4 MB. |
object (netgate.unbound.unboundconfig.daemon.server.AccessControl) Access control specifications. | |
netgate-unbound:jostle-timeout | integer <int64> Timeout, in msec, used when the server is very busy. Set to a value that usually results in one roundtrip to the authority servers. This value helps mitigate denial of service and slow queries. Default is 200 milliseconds. |
object (netgate.unbound.unboundconfig.daemon.server.Interfaces) Interface binding specifications. | |
netgate-unbound:rrset-cache-slabs | integer <int32> The power of 2 number of slabs in the RRset cache. |
netgate-unbound:infra-host-ttl | integer <int64> Time to live, in seconds, for entries in the host cache. The host cache contains roundtrip timing, lameness, and EDNS support information. Default is 900. |
netgate-unbound:do-udp | boolean Default: true If true, UDP queries are answered. |
netgate-unbound:num-threads | integer <int32> The number of threads used to serve clients. Use 1 for no threading. |
netgate-unbound:cache-max-ttl | integer <int64> Maximum time to live for RRsets and messages in the cache. Default is 86400 seconds. |
netgate-unbound:harden-glue | boolean Default: true If true, and it is within the server's authority, glue will be trusted. |
netgate-unbound:infra-cache-numhosts | integer <int64> The number of hosts for which information is cached. Default is 10000. |
netgate-unbound:so-rcvbuf | integer <int64> If not 0, then set the SO_RCVBUF socket option to get more buffer space on the UDP port's incoming queries so that short spikes on busy servers do not drop packets |
netgate-unbound:infra-cache-slabs | integer <int32> The power of 2 number of slabs in the infrastructure cache. |
netgate-unbound:port | integer <int32> The port on which the server responds to queries. Default is 53. |
netgate-unbound:key-cache-slabs | integer <int32> The power of 2 number of slabs in the key cache. A value (close) to the number of cpus is a reasonable guess. |
netgate-unbound:do-ip6 | boolean If true, IPv6 queries are answered. |
netgate-unbound:do-ip4 | boolean Default: true If true, IPv4 queries are answered. |
netgate-unbound:verbosity | integer <int32> The verbosity level, 0-5. |
netgate-unbound:msg-cache-slabs | integer <int32> The power of 2 number of slabs in the message cache. A value (close) to the number of cpus is a reasonable guess. |
netgate-unbound:prefetch-key | boolean If true, DNSKEYs are fetched earlier in the validation process when a DS record is encountered. |
netgate-unbound:hide-version | boolean If true, version.server and version.bind queries are refused. |
netgate-unbound:hide-identity | boolean Default: true If true, id.server and hostname.bind queries are refused. |
{- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
The server attributes.
netgate.unbound.unboundconfig.daemon.Server to be added or updated
object (netgate.unbound.unboundconfig.daemon.Server) The server attributes. |
{- "netgate-unbound:server": {
- "netgate-unbound:num-queries-per-thread": 0,
- "netgate-unbound:outgoing-range": 4096,
- "netgate-unbound:prefetch": true,
- "netgate-unbound:serve-expired": true,
- "netgate-unbound:do-tcp": true,
- "netgate-unbound:harden-dnssec-stripped": true,
- "netgate-unbound:cache-min-ttl": 0,
- "netgate-unbound:msg-cache-size": 0,
- "netgate-unbound:incoming-num-tcp": 0,
- "netgate-unbound:use-caps-for-id": true,
- "netgate-unbound:unwanted-reply-threshold": 0,
- "netgate-unbound:edns-buffer-size": 0,
- "netgate-unbound:outgoing-num-tcp": 0,
- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}, - "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}, - "netgate-unbound:rrset-cache-size": 0,
- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}, - "netgate-unbound:jostle-timeout": 0,
- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}, - "netgate-unbound:rrset-cache-slabs": 0,
- "netgate-unbound:infra-host-ttl": 0,
- "netgate-unbound:do-udp": true,
- "netgate-unbound:num-threads": 0,
- "netgate-unbound:cache-max-ttl": 0,
- "netgate-unbound:harden-glue": true,
- "netgate-unbound:infra-cache-numhosts": 0,
- "netgate-unbound:so-rcvbuf": 0,
- "netgate-unbound:infra-cache-slabs": 0,
- "netgate-unbound:port": 0,
- "netgate-unbound:key-cache-slabs": 0,
- "netgate-unbound:do-ip6": true,
- "netgate-unbound:do-ip4": true,
- "netgate-unbound:verbosity": 0,
- "netgate-unbound:msg-cache-slabs": 0,
- "netgate-unbound:prefetch-key": true,
- "netgate-unbound:hide-version": true,
- "netgate-unbound:hide-identity": true
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Access control specifications.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/access-control" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}
}
Access control specifications.
netgate.unbound.unboundconfig.daemon.server.AccessControl to be added to list
Array of objects (netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access) |
{- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}
Access control specifications.
netgate.unbound.unboundconfig.daemon.server.AccessControl to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.AccessControl) Access control specifications. |
{- "netgate-unbound:access-control": {
- "netgate-unbound:access": [
- {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
]
}
}
Access control specifications.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/access-control" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
creates netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access
netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access to be added to list
netgate-unbound:action | string (netgate.unbound.UnboundAccessControl) Enum: "allow" "allow_snoop" "deny" "deny_non_local" "refuse" "refuse_non_local" |
netgate-unbound:ip-prefix | string An IP prefix being granted some access. |
{- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
returns netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access
ip-prefix required | string Id of access |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/access-control/access=%7Bip-prefix%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:access": {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
}
creates or updates netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access
ip-prefix required | string Id of access |
netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access) |
{- "netgate-unbound:access": {
- "netgate-unbound:action": "allow",
- "netgate-unbound:ip-prefix": "string"
}
}
removes netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access
ip-prefix required | string Id of access |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/access-control/access=%7Bip-prefix%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Interface binding specifications.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/interfaces" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}
}
Interface binding specifications.
netgate.unbound.unboundconfig.daemon.server.Interfaces to be added to list
Array of objects (netgate.unbound.unboundconfig.daemon.server.interfaces.Interface) |
{- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}
Interface binding specifications.
netgate.unbound.unboundconfig.daemon.server.Interfaces to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.Interfaces) Interface binding specifications. |
{- "netgate-unbound:interfaces": {
- "netgate-unbound:interface": [
- {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
]
}
}
Interface binding specifications.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/interfaces" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
creates netgate.unbound.unboundconfig.daemon.server.interfaces.Interface
netgate.unbound.unboundconfig.daemon.server.interfaces.Interface to be added to list
netgate-unbound:port | integer <int32> An optional port number. |
netgate-unbound:ip-address | string IP address of an interface on which queries should be answered. |
{- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
returns netgate.unbound.unboundconfig.daemon.server.interfaces.Interface
ip-address required | string Id of interface |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/interfaces/interface=%7Bip-address%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:interface": {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
}
creates or updates netgate.unbound.unboundconfig.daemon.server.interfaces.Interface
ip-address required | string Id of interface |
netgate.unbound.unboundconfig.daemon.server.interfaces.Interface to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.interfaces.Interface) |
{- "netgate-unbound:interface": {
- "netgate-unbound:port": 0,
- "netgate-unbound:ip-address": "string"
}
}
removes netgate.unbound.unboundconfig.daemon.server.interfaces.Interface
ip-address required | string Id of interface |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/interfaces/interface=%7Bip-address%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}
}
The local-zone attributes.
netgate.unbound.unboundconfig.daemon.server.LocalZones to be added to list
Array of objects (netgate.unbound.unboundconfig.daemon.server.localzones.Zone) Each local-zone is identified by a domain name. |
{- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}
The local-zone attributes.
netgate.unbound.unboundconfig.daemon.server.LocalZones to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.LocalZones) The local-zone attributes. |
{- "netgate-unbound:local-zones": {
- "netgate-unbound:zone": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Each local-zone is identified by a domain name.
netgate.unbound.unboundconfig.daemon.server.localzones.Zone to be added to list
netgate-unbound:description | string Arbitrary description for zone. |
netgate-unbound:type | string (netgate.unbound.Type) Enum: "deny" "refuse" "static" "transparent" "typetransparent" "redirect" "inform" "inform_deny" "no_default" |
object (netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts) Local host names within the zone. | |
netgate-unbound:zone-name | string The local-zone domain name. |
{- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
Each local-zone is identified by a domain name.
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:zone": {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
}
Each local-zone is identified by a domain name.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.Zone to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.localzones.Zone) Each local-zone is identified by a domain name. |
{- "netgate-unbound:zone": {
- "netgate-unbound:description": "string",
- "netgate-unbound:type": "deny",
- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}, - "netgate-unbound:zone-name": "string"
}
}
Each local-zone is identified by a domain name.
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Local host names within the zone.
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D/hosts" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}
}
Local host names within the zone.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts to be added to list
Array of objects (netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host) |
{- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}
Local host names within the zone.
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts) Local host names within the zone. |
{- "netgate-unbound:hosts": {
- "netgate-unbound:host": [
- {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
]
}
}
Local host names within the zone.
zone-name required | string Id of zone |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D/hosts" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
creates netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
zone-name required | string Id of zone |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host to be added to list
netgate-unbound:description | string Arbitrary description for host. |
netgate-unbound:ip-address | Array of strings An IP address for the host. |
netgate-unbound:host-name | string The host name within the simple zone. |
{- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
returns netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
zone-name required | string Id of zone |
host-name required | string Id of host |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D/hosts/host=%7Bhost-name%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:host": {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
}
creates or updates netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
zone-name required | string Id of zone |
host-name required | string Id of host |
netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host) |
{- "netgate-unbound:host": {
- "netgate-unbound:description": "string",
- "netgate-unbound:ip-address": [
- "string"
], - "netgate-unbound:host-name": "string"
}
}
removes netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host
zone-name required | string Id of zone |
host-name required | string Id of host |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/local-zones/zone=%7Bzone-name%7D/hosts/host=%7Bhost-name%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/outgoing-interfaces" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}
}
The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list.
netgate.unbound.unboundconfig.daemon.server.OutgoingInterfaces to be added to list
netgate-unbound:ip-address | Array of strings An IP address to use for outbound queries. |
{- "netgate-unbound:ip-address": [
- "string"
]
}
The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list.
netgate.unbound.unboundconfig.daemon.server.OutgoingInterfaces to be added or updated
object (netgate.unbound.unboundconfig.daemon.server.OutgoingInterfaces) The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list. |
{- "netgate-unbound:outgoing-interfaces": {
- "netgate-unbound:ip-address": [
- "string"
]
}
}
The IP addresses of interfaces that should be used for outgoing queries. If more than one IP address is configured, a random interface will be selected from the list.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/daemon/server/outgoing-interfaces" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
A collection of various Unbound parameters.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/parameters" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-unbound:parameters": {
- "netgate-unbound:enable": true
}
}
A collection of various Unbound parameters.
netgate.unbound.unboundconfig.Parameters to be added to list
netgate-unbound:enable | boolean If true, the Unbound daemon is enabled. |
{- "netgate-unbound:enable": true
}
A collection of various Unbound parameters.
netgate.unbound.unboundconfig.Parameters to be added or updated
object (netgate.unbound.unboundconfig.Parameters) A collection of various Unbound parameters. |
{- "netgate-unbound:parameters": {
- "netgate-unbound:enable": true
}
}
A collection of various Unbound parameters.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-unbound:unbound-config/parameters" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
operates on netgate.unbound.UnboundConfigOperation
object (netgate.unbound.unboundconfigoperation.Input) |
{- "input": {
- "netgate-unbound:request": "string",
- "netgate-unbound:param": "string"
}
}
{- "output": {
- "netgate-unbound:stdout": "string"
}
}
operates on netgate.unbound.UnboundControl
object (netgate.unbound.unboundcontrol.Input) |
{- "input": {
- "netgate-unbound:operation": "start"
}
}
{- "output": {
- "netgate-unbound:stdout": "string"
}
}
operates on netgate.unbound.UnboundCoredump
object (netgate.unbound.unboundcoredump.Input) |
{- "input": {
- "netgate-unbound:operation": "enable"
}
}
{- "output": {
- "netgate-unbound:stdout": "string"
}
}