Package com.ibm.cloud.is.vpc.v1.model
Class VPCDNSResolver
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.VPCDNSResolver
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
VPCDNSResolverTypeDelegated
,VPCDNSResolverTypeManual
,VPCDNSResolverTypeSystem
public class VPCDNSResolver extends com.ibm.cloud.sdk.core.service.model.GenericModel
VPCDNSResolver. Classes which extend this class: - VPCDNSResolverTypeDelegated - VPCDNSResolverTypeManual - VPCDNSResolverTypeSystem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VPCDNSResolver.Configuration
The configuration of the system DNS resolver for this VPC.static interface
VPCDNSResolver.Type
The type of the DNS resolver used for the VPC.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfiguration()
Gets the configuration.List<DNSServer>
getManualServers()
Gets the manualServers.List<DNSServer>
getServers()
Gets the servers.String
getType()
Gets the type.VPCReferenceDNSResolverContext
getVpc()
Gets the vpc.
-
-
-
Method Detail
-
getServers
public List<DNSServer> getServers()
Gets the servers. The DNS servers for this VPC. The servers are populated: - by the system when `dns.resolver.type` is `system` - using the DNS servers in `dns.resolver.vpc` when `dns.resolver.type` is `delegated` - using `dns.resolver.manual_servers` when the `dns.resolver.type` is `manual` The maximum number of DNS servers is expected to [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the servers
-
getType
public String getType()
Gets the type. The type of the DNS resolver used for the VPC. - `delegated`: DNS server addresses are provided by the DNS resolver of the VPC specified in `dns.resolver.vpc`. - `manual`: DNS server addresses are specified in `dns.resolver.manual_servers`. - `system`: DNS server addresses are provided by the system. The maximum number of DNS servers is expected to [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the type
-
getVpc
public VPCReferenceDNSResolverContext getVpc()
Gets the vpc. The VPC whose DNS resolver provides the DNS server addresses for this VPC. The VPC may be remote and therefore may not be directly retrievable.- Returns:
- the vpc
-
getManualServers
public List<DNSServer> getManualServers()
Gets the manualServers. The manually specified DNS servers for this VPC. If the DNS servers have `zone_affinity`, the DHCP [Domain Name Server Option](https://datatracker.ietf.org/doc/html/rfc2132#section-3.8) for a zone will list the DNS server with the affinity for that zone first, followed by the unique DNS servers from other zones. If the DNS servers do not have `zone_affinity`, the DHCP [Domain Name Server Option](https://datatracker.ietf.org/doc/html/rfc2132#section-3.8) for each zone will list all the manual DNS servers in the order specified. The maximum number of manual DNS servers is expected to [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the manualServers
-
getConfiguration
public String getConfiguration()
Gets the configuration. The configuration of the system DNS resolver for this VPC. - `custom_resolver`: A custom DNS resolver is configured for this VPC. - `private_resolver`: A private DNS resolver is configured for this VPC. Applies when the VPC has either or both of the following: - at least one endpoint gateway residing in it - a [DNS Services](https://cloud.ibm.com/docs/dns-svcs) private zone configured for it - `default`: The provider default DNS resolvers are configured for this VPC. This system DNS resolver configuration is used when the VPC has: - no custom DNS resolver configured for it, and - no endpoint gateways residing in it, and - no [DNS Services](https://cloud.ibm.com/docs/dns-svcs) private zone configured for it.- Returns:
- the configuration
-
-