DNS Proxy - cetic/6lbr GitHub Wiki
The DNS Proxy, or DNS Forwarder, inside 6LBR allows the nodes to use the 6LBR as DNS server. Therefore a DNS server must not be preconfigured in the nodes or transmitted using an application specific channel.
The actual DNS Server can either be configured manually in the WSN configuration page or be auto configured using DHCP.
Example
The following code can be used in a node to configure the 6LBR as the selected name server :
rpl_dag_t *dag = rpl_get_any_dag();
if(dag) {
uip_ipaddr_copy(sixlbr_addr, globaladdr);
uip_nameserver_update(dag->dag_id, UIP_NAMESERVER_INFINITE_LIFETIME);
}