|  | WE310F5
    39.00.000
    | 
This section describes the M2MB APIs to perform various Domain Name System (DNS) server operations. More...
| #define | M2MB_DNS_MAX_HOSTNAME_LEN 128 | 
| typedef struct M2MB_DNS_SERVER_HOST | M2MB_DNS_SERVER_HOST_T | 
| Structure of HOST in the DNS server.  More... | |
| M2MB_STATUS_T | m2mb_dns_server_init (VOID) | 
| DNS server initialization.  More... | |
| M2MB_STATUS_T | m2mb_dns_server_deinit (VOID) | 
| DNS server de-initialization.  More... | |
| M2MB_STATUS_T | m2mb_dns_server_add_host (const char *hostName, UINT32 ip4addr, M2MB_SOCKET_BSD_IPV6_ADDR_T *ip6addr, UINT32 ttl) | 
| Add a DNS host information.  More... | |
| M2MB_STATUS_T | m2mb_dns_server_delete_host (const char *hostName) | 
| Delete the host information.  More... | |
| M2MB_STATUS_T | m2mb_dns_server_is_started (VOID) | 
| Check the running status of DNS server.  More... | |
This section describes the M2MB APIs to perform various Domain Name System (DNS) server operations.
DNS-Server module provides the APIs for initialization, de-initialization of the server and the operations on the server like adding/deleting HOSTs.
| #define M2MB_DNS_MAX_HOSTNAME_LEN 128 | 
Maximum length of the host name, including domain (e.g., www.telit.com).
Definition at line 57 of file m2mb_dns_server.h.
| typedef struct M2MB_DNS_SERVER_HOST M2MB_DNS_SERVER_HOST_T | 
Structure of HOST in the DNS server.
Structure for storing a HOST in the DNS server. This would be used to add the HOST or while listing the HOST list.
| M2MB_STATUS_T m2mb_dns_server_add_host | ( | const char * | hostName, | 
| UINT32 | ip4addr, | ||
| M2MB_SOCKET_BSD_IPV6_ADDR_T * | ip6addr, | ||
| UINT32 | ttl | ||
| ) | 
Add a DNS host information.
This API adds the host information to DNS server running.
| [in] | hostName | Pointer to the name of the host. | 
| [in] | ip4addr | IPv4 address of the host. | 
| [in] | ip6addr | IPv6 address of the host. | 
| [in] | ttl | time to live in seconds. ttl = 0 indicates 0x7FFFFFFF seconds (INFINITE_DELAY). | 
m2mb_dns_server_add_host( "www.testhost.com", dns_host_ip, NULL, 0 );
| M2MB_STATUS_T m2mb_dns_server_deinit | ( | VOID | ) | 
DNS server de-initialization.
This API de-initializes the DNS server module.
| M2MB_STATUS_T m2mb_dns_server_delete_host | ( | const char * | hostName | ) | 
Delete the host information.
This API deletes the details of the host that has been added to DNS server running.
| [in] | hostName | Name of the host added. | 
m2mb_dns_server_delete_host( "www.testhost.com" );
| M2MB_STATUS_T m2mb_dns_server_init | ( | VOID | ) | 
DNS server initialization.
This API initializes the DNS server module.
| M2MB_STATUS_T m2mb_dns_server_is_started | ( | VOID | ) | 
Check the running status of DNS server.
This API gives the running status of DNS server.