DNSServer constructor
DNSServer({})
Implementation
DNSServer({
required this.host,
this.name,
this.description,
this.port = 53, // Default port
this.protocol = DNSProtocol.udp, // Default protocol
this.path = '/dns-query', // Default path for DoH
this.headers = const { // Default headers for DoH
'Accept': 'application/dns-message',
'Content-Type': 'application/dns-message',
'Connection': 'close',
},
});