Show / Hide Table of Contents

Class DhcpDnsOption

DHCP option for specifying how DNS (hostname resolution) is handled in the subnets in the VCN. For more information, see DNS in Your Virtual Cloud Network.

Inheritance
object
DhcpOption
DhcpDnsOption
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class DhcpDnsOption : DhcpOption

Properties

CustomDnsServers

Declaration
[JsonProperty(PropertyName = "customDnsServers")]
public List<string> CustomDnsServers { get; set; }
Property Value
Type Description
List<string>

If you set serverType to CustomDnsServer, specify the IP address of at least one DNS server of your choice (three maximum).

ServerType

Declaration
[Required(ErrorMessage = "ServerType is required.")]
[JsonProperty(PropertyName = "serverType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DhcpDnsOption.ServerTypeEnum? ServerType { get; set; }
Property Value
Type Description
DhcpDnsOption.ServerTypeEnum?
  • VcnLocal: Reserved for future use.
  • VcnLocalPlusInternet: Also referred to as "Internet and VCN Resolver". Instances can resolve internet hostnames (no internet gateway is required), and can resolve hostnames of instances in the VCN. This is the default value in the default set of DHCP options in the VCN. For the Internet and VCN Resolver to work across the VCN, there must also be a DNS label set for the VCN, a DNS label set for each subnet, and a hostname for each instance. The Internet and VCN Resolver also enables reverse DNS lookup, which lets you determine the hostname corresponding to the private IP address. For more information, see DNS in Your Virtual Cloud Network.
  • CustomDnsServer: Instances use a DNS server of your choice (three maximum).
Remarks

Required

In this article
Back to top