DNS: Domain Name System¶
https://en.m.wikipedia.org/wiki/Domain_Name_System
Server API¶
-
enum
dnsserver
::
DnsReplyCode
¶ Values:
-
NoError
= 0¶
-
FormError
= 1¶
-
ServerFailure
= 2¶
-
NonExistentDomain
= 3¶
-
NotImplemented
= 4¶
-
Refused
= 5¶
-
YXDomain
= 6¶
-
YXRRSet
= 7¶
-
NXRRSet
= 8¶
-
-
DNS_QR_QUERY
¶
-
DNS_QR_RESPONSE
¶
-
DNS_OPCODE_QUERY
¶
-
struct
DnsHeader
¶ - #include <DnsServer.h>
-
class
DnsServer
: public UdpConnection¶ - #include <DnsServer.h>
Public Functions
-
DnsServer
()¶
-
void
setErrorReplyCode
(DnsReplyCode replyCode)¶
-
void
setTTL
(uint32_t ttl)¶
-
void
stop
()¶
-
virtual bool
listen
(int port)¶
-
virtual bool
connect
(IpAddress ip, uint16_t port)¶
-
virtual void
close
()¶
-
virtual bool
send
(const char *data, int length)¶
-
bool
sendString
(const char *data)¶
-
virtual bool
sendTo
(IpAddress remoteIP, uint16_t remotePort, const char *data, int length)¶
-
bool
sendStringTo
(IpAddress remoteIP, uint16_t remotePort, const char *data)¶
-