getDns method
This operation gets the DNS settings from a device. The device shall return its DNS configurations through the GetDNS command.
Implementation
Future<DnsInformation> getDns() async {
loggy.debug('getDns');
final envelope = await transport.sendRequest(
uri, transport.securedEnvelope(soap.DeviceManagementRequest.dns()));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return GetDnsResponse.fromJson(envelope.body.response!).dnsInformation;
}