fuchsia.net.name

Added: 11

PROTOCOLS

DnsServerWatcher

Defined in fuchsia.net.name/server_watcher.fidl

Provides a hanging get interface to watch for DNS servers configuration.

WatchServers

Returns a list of DNS servers.

First call always returns a snapshot of the current list of servers or blocks if an empty list would be returned. Subsequent calls will block until the list of servers changes.

The list of servers changes over time by configuration or network topology changes, expiration, etc. Callers must repeatedly call WatchServers and replace any previously returned servers with new ones to avoid using stale or expired entries.

It is invalid to call this method while a previous call is pending. Doing so will cause the server end of the protocol to be closed.

  • response servers The list of servers to use for DNS resolution, in priority order.

Request

<EMPTY>

Response

NameType
servers vector<DnsServer>

Lookup

Defined in fuchsia.net.name/lookup.fidl

Provides name and address resolution.

LookupHostname

Look up a hostname by IP address.

Request

NameType
addr fuchsia.net/IpAddress

Response

NameType
payload Lookup_LookupHostname_Result

LookupIp

Lookup a list of IP addresses by hostname.

Request

NameType
hostname fuchsia.net/Hostname
options LookupIpOptions

Response

NameType
payload Lookup_LookupIp_Result

LookupAdmin

Defined in fuchsia.net.name/lookup_admin.fidl

Provides administration controls over name resolution settings.

GetDnsServers

Gets the DNS servers currently in use to resolve name lookups.

  • response servers The list of servers in use by LookupAdmin, in priority order.

Request

<EMPTY>

Response

NameType
servers vector<fuchsia.net/SocketAddress>

SetDnsServers

Sets the DNS servers to servers

  • request servers The list of servers to use for domain name resolution, in priority order. An empty list means no servers will be used and name resolution may fail. Each SocketAddress in servers must be a valid unicast socket address. The list of servers will be deduplicated.
  • error Returns ZX_ERR_INVALID_ARGS if any of the provided addresses does not meet the conditions above.

Request

NameType
servers vector<fuchsia.net/SocketAddress>

Response

NameType
payload LookupAdmin_SetDnsServers_Result

STRUCTS

LookupAdmin_SetDnsServers_Response

Defined in fuchsia.net.name/lookup_admin.fidl

<EMPTY>

Lookup_LookupHostname_Response

Defined in fuchsia.net.name/lookup.fidl

FieldTypeDescriptionDefault
hostname fuchsia.net/Hostname No default

Lookup_LookupIp_Response

Defined in fuchsia.net.name/lookup.fidl

FieldTypeDescriptionDefault
result LookupResult No default

ENUMS

LookupError strict

Type: uint32

Defined in fuchsia.net.name/lookup.fidl

Lookup operation errors.

NameValueDescription
1

No result was found for this query.

2

The lookup failed, but may succeed at a later time. For instance, the network or DNS server may be unreachable.

3

The lookup failed due to an invalid argument (for instance, the hostname was not encoded correctly, or was too long).

4

The lookup failed due to an internal error.

TABLES

DhcpDnsServerSource

Defined in fuchsia.net.name/dns.fidl

OrdinalFieldTypeDescription
source_interface uint64

The interface index over which this server was discovered.

Dhcpv6DnsServerSource

Defined in fuchsia.net.name/dns.fidl

OrdinalFieldTypeDescription
source_interface uint64

The interface index over which this server was discovered.

DnsServer

Defined in fuchsia.net.name/dns.fidl

A DNS server configuration.

OrdinalFieldTypeDescription
address fuchsia.net/SocketAddress

The server's address, must be provided.

source DnsServerSource

The configuration source for this server. Defaults to fuchsia.net.name/DnsServerSource.static_source.

LookupIpOptions

Defined in fuchsia.net.name/lookup.fidl

OrdinalFieldTypeDescription
ipv4_lookup bool

Include IPv4 results.

If not set, interpreted as false.

ipv6_lookup bool

Include IPv6 results.

If not set, interpreted as false.

sort_addresses bool

Sort addresses in order of preference.

It true, Addresses are sorted according to destination address selection described in RFC 6724 Section 6.

If not set, interpreted as false.

canonical_name_lookup bool

Include the canonical name.

If not set, interpreted as false.

Added: 12

LookupResult

Defined in fuchsia.net.name/lookup.fidl

OrdinalFieldTypeDescription
addresses vector<fuchsia.net/IpAddress>[1024]

The IP addresses resulting from a lookup.

If sorting was requested, addresses is sorted in order of preference, most preferred destination address first.

canonical_name fuchsia.net/Hostname

The canonical name of the requested hostname.

Provided only if requested.

Added: 12

NdpDnsServerSource

Defined in fuchsia.net.name/dns.fidl

OrdinalFieldTypeDescription
source_interface uint64

The interface index over which this server was discovered.

StaticDnsServerSource

Defined in fuchsia.net.name/dns.fidl

OrdinalFieldTypeDescription

UNIONS

DnsServerSource strict

Defined in fuchsia.net.name/dns.fidl

OrdinalVariantTypeDescription
static_source StaticDnsServerSource

The server is statically configured through fuchsia.net.name/LookupAdmin.SetDefaultServers.

dhcp DhcpDnsServerSource

The server was discovered through DHCPv4.

ndp NdpDnsServerSource

The server was discovered through an NDP Router Advertisement.

dhcpv6 Dhcpv6DnsServerSource

The server was discovered through DHCPv6.

LookupAdmin_SetDnsServers_Result strict

Defined in fuchsia.net.name/lookup_admin.fidl

OrdinalVariantTypeDescription
response LookupAdmin_SetDnsServers_Response
err zx/Status

Lookup_LookupHostname_Result strict

Defined in fuchsia.net.name/lookup.fidl

OrdinalVariantTypeDescription
response Lookup_LookupHostname_Response
err LookupError

Lookup_LookupIp_Result strict

Defined in fuchsia.net.name/lookup.fidl

OrdinalVariantTypeDescription
response Lookup_LookupIp_Response
err LookupError

CONSTANTS

NameValueTypeDescription
MAX_ADDRESSES 1024 uint16

Maximum number of addresses that can be returned by a lookup.