Configuring the olsrd nameservice plug-in
Add the following to /etc/config/olsrd. Be sure to have no important data in /etc/hosts.
config LoadPlugin option library 'olsrd_nameservice.so.0.3' option 'suffix' ".ninux" option 'hosts_file' '/etc/hosts' option 'sighup_pid_file' '/var/run/dnsmasq.pid'
Change the first part of /etc/config/dhcp as follows.
config dnsmasq option domainneeded 1 option boguspriv 1 option filterwin2k 0 # enable for dial on demand option localise_queries 1 option rebind_protection 1 # disable if upstream must serve RFC1918 addresses option rebind_localhost 1 # enable for RBL checking and similar services #list rebind_domain example.lan # whitelist RFC1918 responses for domains option local '/ninux/' option domain 'ninux' option expandhosts 1 option nonegcache 0 option authoritative 1 option readethers 1 option leasefile '/tmp/dhcp.leases' option resolvfile '/tmp/resolv.conf.auto' option addnhosts '/var/run/hosts_olsr'