# PodDnsConfigV1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [PodDnsConfigV1](/reference/api/csharp/aspire.hosting.kubernetes/poddnsconfigv1.md)
- Kind: `Properties`
- Members: `3`

Represents the DNS configuration for a Pod in Kubernetes.

## Nameservers

- Name: `Nameservers`
- Modifiers: `get`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/PodDNSConfigV1.cs#L27)

Gets the list of IP addresses of DNS servers to be used by the Pod.

```csharp
public List<string> Nameservers { get; }
```

## Remarks

This property defines the nameservers for the Pod's DNS configuration. If specified, these nameservers replace the default nameservers provided by the Kubernetes cluster's DNS configuration.

## Options

- Name: `Options`
- Modifiers: `get`
- Returns: [List<PodDnsConfigOptionV1>](/reference/api/csharp/aspire.hosting.kubernetes/poddnsconfigoptionv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/PodDNSConfigV1.cs#L38)

Represents a list of DNS configuration options for a Pod in Kubernetes.

```csharp
public List<PodDnsConfigOptionV1> Options { get; }
```

## Remarks

Each element in this collection defines a specific DNS configuration option, encapsulated in the `PodDnsConfigOptionV1` class. These options allow fine-tuning of DNS behaviors and settings for the Pod.

## Searches

- Name: `Searches`
- Modifiers: `get`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/PodDNSConfigV1.cs#L50)

Gets the list of DNS search domains used for name resolution in the Pod's DNS configuration.

```csharp
public List<string> Searches { get; }
```

## Remarks

The Searches property specifies the DNS search domains that are appended to unqualified domain names to attempt to resolve them. This is a key part of DNS resolution behavior in a Kubernetes Pod and helps to define how the Pod resolves DNS queries for host names that are not fully qualified.
