CreateContainerDnsConfigDetails

class oci.container_instances.models.CreateContainerDnsConfigDetails(**kwargs)

Bases: object

Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

Methods

__init__(**kwargs) Initializes a new CreateContainerDnsConfigDetails object with values from keyword arguments.

Attributes

nameservers Gets the nameservers of this CreateContainerDnsConfigDetails.
options Gets the options of this CreateContainerDnsConfigDetails.
searches Gets the searches of this CreateContainerDnsConfigDetails.
__init__(**kwargs)

Initializes a new CreateContainerDnsConfigDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • nameservers (list[str]) – The value to assign to the nameservers property of this CreateContainerDnsConfigDetails.
  • searches (list[str]) – The value to assign to the searches property of this CreateContainerDnsConfigDetails.
  • options (list[str]) – The value to assign to the options property of this CreateContainerDnsConfigDetails.
nameservers

Gets the nameservers of this CreateContainerDnsConfigDetails. IP address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation. If null, uses nameservers from subnet dhcpDnsOptions.

Returns:The nameservers of this CreateContainerDnsConfigDetails.
Return type:list[str]
options

Gets the options of this CreateContainerDnsConfigDetails. Options allows certain internal resolver variables to be modified. Options are a list of objects in https://man7.org/linux/man-pages/man5/resolv.conf.5.html. Examples: [“ndots:n”, “edns0”].

Returns:The options of this CreateContainerDnsConfigDetails.
Return type:list[str]
searches

Gets the searches of this CreateContainerDnsConfigDetails. Search list for host-name lookup. If null, we will use searches from subnet dhcpDnsOptios.

Returns:The searches of this CreateContainerDnsConfigDetails.
Return type:list[str]