DNS Server.
More...
#include <DnsServer.h>
◆ DnsServer()
◆ addRecord()
Add record.
- Parameters
-
name | Domain name |
address | Address |
References COV, and service.
◆ addUpstreamNameServer() [1/2]
Add upstream server.
- Parameters
-
References COV, and service.
◆ addUpstreamNameServer() [2/2]
bool DnsServer::addUpstreamNameServer |
( |
const std::string & | ip, |
|
|
uint16_t | port = 53 ) |
Add upstream server.
- Parameters
-
- Returns
- Whether adding is successful
References COV, and service.
◆ bind()
Bind address.
- Parameters
-
- Returns
- Whether binding is successful
References COV, and service.
◆ getLastError()
int DnsServer::getLastError |
( |
| ) |
|
Get error code.
- Returns
- Error code
References service.
◆ getLastErrorMessage()
std::string DnsServer::getLastErrorMessage |
( |
| ) |
|
Get error message.
- Returns
- Error message
References service.
◆ setCallback()
void DnsServer::setCallback |
( |
const Callback & | callback | ) |
|
◆ shutdown()
bool DnsServer::shutdown |
( |
| ) |
|
Shutdown.
- Returns
- Whether shutdown is successful
References service.
◆ startup()
bool DnsServer::startup |
( |
| ) |
|
Startup.
- Returns
- Whether startup is successful
References service.
◆ service
Service::Ptr sese::service::dns::DnsServer::service |
|
private |
The documentation for this class was generated from the following files: