# PodDnsConfigV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/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.
