All Products
Search
Document Center

Function Compute:CustomDNS

Last Updated:Jun 11, 2026

Parameter

Type

Description

Example

object

The information about the custom Domain Name System (DNS) configurations of the function.

dnsOptions

array

The DNS resolution configurations in the resolv.conf file. Each item corresponds to a key-value pair in the key:value format, in which the key is required.

DNSOption

The DNS option.

nameServers

array

The IP addresses of the DNS server.

string

The DNS server.

8.8.x.x

searches

array

The search domains of DNS server.

string

The search domain of the DNS server.

ns1.svc.cluster-domain.example