Specify name server to use with DNS Service Discovery

I am porting a project from the now deprecated dns_util api to use the DNS Service Discovery api.

With dns_util I am able to specify a DNS name server to use for resolving queries. This is useful for testing new servers or propogation when changes have been made to DNS records.

Is it possible to specify the nameserver to use with DNS Service Discovery?

Answered by DTS Engineer in 894214022
Is it possible to specify the nameserver to use with DNS Service Discovery?

You’re referring to the DNS-SD API, right? So the thing you get when you include <dns_sd.h>?

If so, the answer is “No.” That API always uses the standard system resolver configuration [1].

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Note that I said “resolver configuration” here, not simply “resolver”. The exact resolver it talks to depends on a lot of different factors.

Accepted Answer
Is it possible to specify the nameserver to use with DNS Service Discovery?

You’re referring to the DNS-SD API, right? So the thing you get when you include <dns_sd.h>?

If so, the answer is “No.” That API always uses the standard system resolver configuration [1].

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Note that I said “resolver configuration” here, not simply “resolver”. The exact resolver it talks to depends on a lot of different factors.

Thanks Quinn. I suspected that to be the case but great to have it confirmed.

Specify name server to use with DNS Service Discovery
 
 
Q