# PodDnsConfigV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/PodDNSConfigV1.cs)

Represents the DNS configuration for a Pod in Kubernetes.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class PodDnsConfigV1
{
    // ...
}
```

## Remarks

This class is used to define custom DNS settings, including nameservers, search domains, and DNS configuration options, for a Pod in Kubernetes.

## Constructors

- [PodDnsConfigV1](/reference/api/csharp/aspire.hosting.kubernetes/poddnsconfigv1/constructors.md#constructor)

## Properties

- [Nameservers](/reference/api/csharp/aspire.hosting.kubernetes/poddnsconfigv1/properties.md#nameservers) : `List<string>` `get` -- Gets the list of IP addresses of DNS servers to be used by the Pod.
- [Options](/reference/api/csharp/aspire.hosting.kubernetes/poddnsconfigv1/properties.md#options) : [List<PodDnsConfigOptionV1>](/reference/api/csharp/aspire.hosting.kubernetes/poddnsconfigoptionv1.md) `get` -- Represents a list of DNS configuration options for a Pod in Kubernetes.
- [Searches](/reference/api/csharp/aspire.hosting.kubernetes/poddnsconfigv1/properties.md#searches) : `List<string>` `get` -- Gets the list of DNS search domains used for name resolution in the Pod's DNS configuration.
