Skip to content
Laurent Deru edited this page Mar 25, 2016 · 2 revisions

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.

Example

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);
}
Clone this wiki locally