# HostAliasV1 Properties

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

Represents a host alias configuration which maps an IP address to a set of hostnames. This is used for specifying additional host entries in a pod's /etc/hosts file.

## Hostnames

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

Represents a collection of hostnames associated with a specific IP address. This property contains a list of hostnames used for defining aliases.

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

## Ip

- Name: `Ip`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HostAliasV1.cs)

Gets or sets the IP address associated with the HostAlias in the Kubernetes resource definition.

```csharp
public string Ip { get; set; }
```

## Remarks

This property represents the IP address that will be mapped to the specified hostnames in the resource.
