fuchsia.net.dns

PROTOCOLS

DnsPolicy

Defined in fuchsia.net.dns/dns.fidl

This interface is used to interact with the policy layer of the fuchsia netstack implementation that is hosted in netcfg. This interface is for use solely by privileged system components such as a 'system setting' user interface, and can be used to change system-wide DNS settings.

SetDNSConfig

Set the DNS servers' IP addresses.

Request

NameType
config DNSConfig

Response

NameType
result NetError

GetDNSConfig

Get the DNS servers' IP addresses.

Request

NameType

Response

NameType
current DNSConfig

STRUCTS

NetError

Defined in fuchsia.net.dns/dns.fidl

NameTypeDescriptionDefault
status Status No default

DNSConfig

Defined in fuchsia.net.dns/dns.fidl

Settings for the system-wide DNS behavior.

NameTypeDescriptionDefault
dns_servers vector<fuchsia.net/IpAddress> No default

ENUMS

Status

Type: uint32

Defined in fuchsia.net.dns/dns.fidl

NameValueDescription
OK 0
UNKNOWN_ERROR 1
PARSE_ERROR 2