DnsServer.h
Go to the documentation of this file.
bool start(uint16_t port, const String &domainName, const IpAddress &resolvedIP)
Start the DNS server.
void onReceive(pbuf *buf, IpAddress remoteIP, uint16_t remotePort) override
void setTTL(uint32_t ttl)
Set message Time-To-Live in seconds.
Definition: DnsServer.h:82
void setErrorReplyCode(DnsReplyCode replyCode)
Set error reply code.
Definition: DnsServer.h:74
A class to make it easier to handle and pass around IP addresses.
Definition: IpAddress.h:45
Definition: UdpConnection.h:28
@ NXRRSet
@ NoError
@ NotImplemented
@ FormError
@ YXDomain
@ ServerFailure
@ NonExistentDomain
@ YXRRSet
@ Refused
Definition: DnsServer.h:45