---
title: MDNSService type | Wartiva GraphQL API
description: A discovered MDNS service. Wartiva GraphQL API reference with arguments, fields, and examples. Browse related operations and types.
url: https://wartiva.com/api-docs/types/mdns-service.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL type

# `MDNSService` type

A discovered MDNS service.

## Fields

| Field Name | Description |
|---|---|
| `instance` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The service instance name (e.g., 'My Printer._ipp._tcp.local'). |
| `service` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The service type (e.g., '_ipp._tcp'). |
| `hostName` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The hostname of the device providing the service. |
| `port` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The IP port number where the service is available, an unsigned 16-bit integer. |
| `txt` - [`[String!]!`](https://wartiva.com/api-docs/types/string.html) | TXT record data containing additional service information as key-value pairs. |
| `domain` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The domain (typically 'local' for mDNS). |
| `ttl` - [`Duration!`](https://wartiva.com/api-docs/types/duration.html) | The Time To Live for the DNS record. |
| `ips` - [`[IpAddress!]`](https://wartiva.com/api-docs/types/ip-address.html) | IP addresses associated with this service. |

## Used by

- [`MDNS`](https://wartiva.com/api-docs/types/mdns.html) type: Multicast DNS (mDNS) service.

## Example

### Example

```json
{
  "instance": "xyz789",
  "service": "abc123",
  "hostName": "abc123",
  "port": 987,
  "txt": ["xyz789"],
  "domain": "xyz789",
  "ttl": "600000000",
  "ips": [IpAddress]
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
