netgate-unbound API (24.06)

This YANG module provides a data-model for the Unbound service.

Copyright 2018-2020 Rubicon Communications, LLC.

unbound-config

returns netgate.unbound.UnboundConfig

Configuration for the Unbound DNS name resolver daemon.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:unbound-config": {
    }
}

creates netgate.unbound.UnboundConfig

Configuration for the Unbound DNS name resolver daemon.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:parameters": {
    },
  • "netgate-unbound:daemon": {
    }
}

creates or updates netgate.unbound.UnboundConfig

Configuration for the Unbound DNS name resolver daemon.

Request Body schema: application/yang-data+json

netgate.unbound.UnboundConfig to be added or updated

object (netgate.unbound.UnboundConfig)

Configuration for the Unbound DNS name resolver daemon.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:unbound-config": {
    }
}

removes netgate.unbound.UnboundConfig

Configuration for the Unbound DNS name resolver daemon.

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.Daemon

The server attributes.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:daemon": {
    }
}

creates netgate.unbound.unboundconfig.Daemon

The server attributes.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:forward-zones": {
    },
  • "netgate-unbound:server": {
    }
}

creates or updates netgate.unbound.unboundconfig.Daemon

The server attributes.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.Daemon to be added or updated

object (netgate.unbound.unboundconfig.Daemon)

The server attributes.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:daemon": {
    }
}

removes netgate.unbound.unboundconfig.Daemon

The server attributes.

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.daemon.ForwardZones

The forward-zone attributes.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:forward-zones": {
    }
}

creates netgate.unbound.unboundconfig.daemon.ForwardZones

The forward-zone attributes.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:zone": [
    ]
}

creates or updates netgate.unbound.unboundconfig.daemon.ForwardZones

The forward-zone attributes.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.ForwardZones to be added or updated

object (netgate.unbound.unboundconfig.daemon.ForwardZones)

The forward-zone attributes.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:forward-zones": {
    }
}

removes netgate.unbound.unboundconfig.daemon.ForwardZones

The forward-zone attributes.

Responses

Request samples

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))

}

creates 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.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:forward-addresses": {
    },
  • "netgate-unbound:forward-hosts": {
    },
  • "netgate-unbound:forward-first": true,
  • "netgate-unbound:forward-tls-upstream": true,
  • "netgate-unbound:zone-name": "string"
}

returns 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.

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:zone": {
    }
}

creates or updates 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.

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:zone": {
    }
}

removes 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.

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses

A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:forward-addresses": {
    }
}

creates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses

A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses to be added to list

Array of objects (netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:address": [
    ]
}

creates or updates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses

A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:forward-addresses": {
    }
}

removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardAddresses

A collection of nameserver IPv4 or IPv6 addresses of nameservers to which queries are forwarded.

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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

creates netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:auth-name": "string",
  • "netgate-unbound:port": 0,
  • "netgate-unbound:ip-address": "string"
}

returns netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address

returns netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address

path Parameters
zone-name
required
string

Id of zone

ip-address
required
string

Id of address

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:address": {
    }
}

creates or updates netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address

creates or updates netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address

path Parameters
zone-name
required
string

Id of zone

ip-address
required
string

Id of address

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address to be added or updated

object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:address": {
    }
}

removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address

removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.forwardaddresses.Address

path Parameters
zone-name
required
string

Id of zone

ip-address
required
string

Id of address

Responses

Request samples

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

returns netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:forward-hosts": {
    }
}

creates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts

creates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:host": [
    ]
}

creates or updates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts

creates or updates netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts to be added or updated

object (netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:forward-hosts": {
    }
}

removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts

removes netgate.unbound.unboundconfig.daemon.forwardzones.zone.ForwardHosts

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.daemon.Server

The server attributes.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:server": {
    }
}

creates netgate.unbound.unboundconfig.daemon.Server

The server attributes.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "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:outgoing-interfaces": {
    },
  • "netgate-unbound:rrset-cache-size": 0,
  • "netgate-unbound:access-control": {
    },
  • "netgate-unbound:jostle-timeout": 0,
  • "netgate-unbound:interfaces": {
    },
  • "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
}

creates or updates netgate.unbound.unboundconfig.daemon.Server

The server attributes.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.Server to be added or updated

object (netgate.unbound.unboundconfig.daemon.Server)

The server attributes.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:server": {
    }
}

removes netgate.unbound.unboundconfig.daemon.Server

The server attributes.

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.daemon.server.AccessControl

Access control specifications.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:access-control": {
    }
}

creates netgate.unbound.unboundconfig.daemon.server.AccessControl

Access control specifications.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.server.AccessControl to be added to list

Array of objects (netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:access": [
    ]
}

creates or updates netgate.unbound.unboundconfig.daemon.server.AccessControl

Access control specifications.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.server.AccessControl to be added or updated

object (netgate.unbound.unboundconfig.daemon.server.AccessControl)

Access control specifications.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:access-control": {
    }
}

removes netgate.unbound.unboundconfig.daemon.server.AccessControl

Access control specifications.

Responses

Request samples

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

creates netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:action": "allow",
  • "netgate-unbound:ip-prefix": "string"
}

returns netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access

returns netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access

path Parameters
ip-prefix
required
string

Id of access

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:access": {
    }
}

creates or updates netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access

creates or updates netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access

path Parameters
ip-prefix
required
string

Id of access

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access to be added or updated

object (netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:access": {
    }
}

removes netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access

removes netgate.unbound.unboundconfig.daemon.server.accesscontrol.Access

path Parameters
ip-prefix
required
string

Id of access

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.daemon.server.Interfaces

Interface binding specifications.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:interfaces": {
    }
}

creates netgate.unbound.unboundconfig.daemon.server.Interfaces

Interface binding specifications.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.server.Interfaces to be added to list

Array of objects (netgate.unbound.unboundconfig.daemon.server.interfaces.Interface)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:interface": [
    ]
}

creates or updates netgate.unbound.unboundconfig.daemon.server.Interfaces

Interface binding specifications.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.server.Interfaces to be added or updated

object (netgate.unbound.unboundconfig.daemon.server.Interfaces)

Interface binding specifications.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:interfaces": {
    }
}

removes netgate.unbound.unboundconfig.daemon.server.Interfaces

Interface binding specifications.

Responses

Request samples

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

creates netgate.unbound.unboundconfig.daemon.server.interfaces.Interface

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:port": 0,
  • "netgate-unbound:ip-address": "string"
}

returns netgate.unbound.unboundconfig.daemon.server.interfaces.Interface

returns netgate.unbound.unboundconfig.daemon.server.interfaces.Interface

path Parameters
ip-address
required
string

Id of interface

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:interface": {
    }
}

creates or updates netgate.unbound.unboundconfig.daemon.server.interfaces.Interface

creates or updates netgate.unbound.unboundconfig.daemon.server.interfaces.Interface

path Parameters
ip-address
required
string

Id of interface

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.server.interfaces.Interface to be added or updated

object (netgate.unbound.unboundconfig.daemon.server.interfaces.Interface)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:interface": {
    }
}

removes netgate.unbound.unboundconfig.daemon.server.interfaces.Interface

removes netgate.unbound.unboundconfig.daemon.server.interfaces.Interface

path Parameters
ip-address
required
string

Id of interface

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.daemon.server.LocalZones

The local-zone attributes.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:local-zones": {
    }
}

creates netgate.unbound.unboundconfig.daemon.server.LocalZones

The local-zone attributes.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:zone": [
    ]
}

creates or updates netgate.unbound.unboundconfig.daemon.server.LocalZones

The local-zone attributes.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.server.LocalZones to be added or updated

object (netgate.unbound.unboundconfig.daemon.server.LocalZones)

The local-zone attributes.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:local-zones": {
    }
}

removes netgate.unbound.unboundconfig.daemon.server.LocalZones

The local-zone attributes.

Responses

Request samples

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))

}

creates netgate.unbound.unboundconfig.daemon.server.localzones.Zone

Each local-zone is identified by a domain name.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:description": "string",
  • "netgate-unbound:type": "deny",
  • "netgate-unbound:hosts": {
    },
  • "netgate-unbound:zone-name": "string"
}

returns netgate.unbound.unboundconfig.daemon.server.localzones.Zone

Each local-zone is identified by a domain name.

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:zone": {
    }
}

creates or updates netgate.unbound.unboundconfig.daemon.server.localzones.Zone

Each local-zone is identified by a domain name.

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:zone": {
    }
}

removes netgate.unbound.unboundconfig.daemon.server.localzones.Zone

Each local-zone is identified by a domain name.

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts

Local host names within the zone.

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:hosts": {
    }
}

creates netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts

Local host names within the zone.

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

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)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:host": [
    ]
}

creates or updates netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts

Local host names within the zone.

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:hosts": {
    }
}

removes netgate.unbound.unboundconfig.daemon.server.localzones.zone.Hosts

Local host names within the zone.

path Parameters
zone-name
required
string

Id of zone

Responses

Request samples

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

creates netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host

path Parameters
zone-name
required
string

Id of zone

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:description": "string",
  • "netgate-unbound:ip-address": [
    ],
  • "netgate-unbound:host-name": "string"
}

returns netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host

returns netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host

path Parameters
zone-name
required
string

Id of zone

host-name
required
string

Id of host

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:host": {
    }
}

creates or updates netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host

creates or updates netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host

path Parameters
zone-name
required
string

Id of zone

host-name
required
string

Id of host

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host to be added or updated

object (netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:host": {
    }
}

removes netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host

removes netgate.unbound.unboundconfig.daemon.server.localzones.zone.hosts.Host

path Parameters
zone-name
required
string

Id of zone

host-name
required
string

Id of host

Responses

Request samples

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))

}

returns 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.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:outgoing-interfaces": {
    }
}

creates 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.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:ip-address": [
    ]
}

creates or updates 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.

Request Body schema: application/yang-data+json

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.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:outgoing-interfaces": {
    }
}

removes 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.

Responses

Request samples

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))

}

returns netgate.unbound.unboundconfig.Parameters

A collection of various Unbound parameters.

Responses

Request samples

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))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-unbound:parameters": {
    }
}

creates netgate.unbound.unboundconfig.Parameters

A collection of various Unbound parameters.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.Parameters to be added to list

netgate-unbound:enable
boolean

If true, the Unbound daemon is enabled.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:enable": true
}

creates or updates netgate.unbound.unboundconfig.Parameters

A collection of various Unbound parameters.

Request Body schema: application/yang-data+json

netgate.unbound.unboundconfig.Parameters to be added or updated

object (netgate.unbound.unboundconfig.Parameters)

A collection of various Unbound parameters.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-unbound:parameters": {
    }
}

removes netgate.unbound.unboundconfig.Parameters

A collection of various Unbound parameters.

Responses

Request samples

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))

}

unbound-config-operation

operates on netgate.unbound.UnboundConfigOperation

operates on netgate.unbound.UnboundConfigOperation

Request Body schema: application/yang-data+json
object (netgate.unbound.unboundconfigoperation.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}

unbound-control

operates on netgate.unbound.UnboundControl

operates on netgate.unbound.UnboundControl

Request Body schema: application/yang-data+json
object (netgate.unbound.unboundcontrol.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}

unbound-coredump

operates on netgate.unbound.UnboundCoredump

operates on netgate.unbound.UnboundCoredump

Request Body schema: application/yang-data+json
object (netgate.unbound.unboundcoredump.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}