---
title: "DNSServiceReconfirmRecord(_:_:_:_:_:_:_:)"
framework: dnssd
role: symbol
role_heading: Function
path: "dnssd/dnsservicereconfirmrecord(_:_:_:_:_:_:_:)"
---

# DNSServiceReconfirmRecord(_:_:_:_:_:_:_:)

Instructs the daemon to verify the validity of a resource record that appears to be out of date (for example, because TCP connection to a service’s target failed).

## Declaration

```swift
func DNSServiceReconfirmRecord(_ flags: DNSServiceFlags, _ interfaceIndex: UInt32, _ fullname: UnsafePointer<CChar>!, _ rrtype: UInt16, _ rrclass: UInt16, _ rdlen: UInt16, _ rdata: UnsafeRawPointer!) -> DNSServiceErrorType
```

## Parameters

- `flags`: Not currently used.
- `interfaceIndex`: Specifies the interface of the record in question. The caller must specify the interface. This API (by design) causes increased network traffic, so it requires the caller to be precise about which record should be reconfirmed. It is not possible to pass zero for the interface index to perform a “wildcard” reconfirmation, where *all* matching records are reconfirmed.
- `fullname`: The resource record’s full domain name.
- `rrtype`: The resource record’s type (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, and so on).
- `rrclass`: The class of the resource record (usually doc://com.apple.dnssd/documentation/dnssd/kDNSServiceClass_IN).
- `rdlen`: The length, in bytes, of the resource record rdata.
- `rdata`: The raw rdata of the resource record.

## Discussion

Discussion Causes the record to be flushed from the daemon’s cache (as well as all other daemons’ caches on the network) if the record is determined to be invalid. important: Use this routine conservatively. Reconfirming a record necessarily consumes network bandwidth, so this should not be done indiscriminately.

## See Also

### Special Purpose Calls

- [DNSServiceCreateConnection(_:)](dnssd/dnsservicecreateconnection(_:).md)
- [DNSServiceRegisterRecord(_:_:_:_:_:_:_:_:_:_:_:_:)](dnssd/dnsserviceregisterrecord(_:_:_:_:_:_:_:_:_:_:_:_:).md)
- [PeerConnectionRelease(_:_:_:_:)](dnssd/peerconnectionrelease(_:_:_:_:).md)
