<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>NameServicePluginConfig</title><revhistory><revision><revnumber>3</revnumber><date>2011-03-29 22:13:34</date><authorinitials>stefanopilla</authorinitials></revision><revision><revnumber>2</revnumber><date>2011-03-28 10:57:30</date><authorinitials>ClauzClauz</authorinitials></revision><revision><revnumber>1</revnumber><date>2011-03-28 10:51:24</date><authorinitials>ClauzClauz</authorinitials></revision></revhistory></articleinfo><section><title>Configuring the olsrd nameservice plug-in</title><para>The name is a bit misleading, as it has grown from a bit nameservice  to be a instrument for flooding many information in the mesh: </para><itemizedlist><listitem><para>my hostname </para></listitem><listitem><para>hostnames in my attached network </para></listitem><listitem><para>address of my dns server </para></listitem><listitem><para>geopositions </para></listitem><listitem><para>mac addresses </para></listitem><listitem><para>services </para></listitem></itemizedlist><section><title>OpenWrt</title><para>Add the following to <code>/etc/config/olsrd</code>. Be sure to have no important data in <code>/etc/hosts</code>. </para><screen><![CDATA[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']]></screen><para>The <code>/etc/config/dhcp</code> file (i.e. dnsmasq config) can be left with the default values. </para></section><section><title>Other</title><para>Add the following to <code>/etc/olsrd.conf</code>. Be sure to have no important data in <code>/etc/hosts</code>: </para><screen><![CDATA[LoadPlugin "olsrd_nameservice.so.0.3"
{
        PlParam "name" "qq"
        PlParam "suffix" ".ninux"
        PlParam "hosts-file" "/etc/hosts"
        PlParam "sighup-pid-file" "/var/run/dnsmasq.pid"
}]]></screen><para>dnsmasq config can be left with the defaults </para><para>It is also possibile to give the lat/lon coordinates and create a file (.js) in which to store the position of the others nodes: </para><screen><![CDATA[LoadPlugin "olsrd_nameservice.so.0.3"
{]]></screen><screen><![CDATA[        PlParam "lat" "52.524"
        PlParam "lon" "13.31"
        PlParam "latlon-file" "/var/run/latlon.js"
}]]></screen></section></section></article>