Set the domain names which are expected to have requests made of them by the client code interacting with this Server.
This is a convenience method which calls add_A on the server’s
Resolver for each of the domain names listed in domain_names. It associates
them with the server’s current IP address, and automatically updates the mappings if the IP address or resolver change.
Note that this will reset all records on the server’s Resolver, replacing all of them
with the provided domain_names.
It is safe to add further domain names to the Resolver in a callback for the
notify signal for
resolver; that signal is emitted after the resolver is cleared and these domain_names are added.
| this |
a Server |
| domain_names |
null-terminated array of domain names to expect, or null to not expect any |