<p>Currently, due to input validation in olsrd's init script, there is no way to add IP/hostname pairs to the nameservice plugin. The format olsrd expects in its config file for IP/hostname entries is:</p>

<pre><code>PlParam "1.2.3.4" "nodename"
</code></pre>

<p>Olsrd's init script turns <code>/etc/config/olsrd</code> UCI entries into the olsrd config file. So for IP/hostname pairs, the option name (the IP address) would contain periods, which is disallowed in UCI.</p>

<p>To solve this issue, we would need to add logic to the olsrd init script to convert some new option, like <code>hostname</code> for instance, into the right format for the olsrd config file. So as an example, the following line in <code>/etc/config/olsrd</code>:</p>

<pre><code>option hostname "1.2.3.4/nodename"
</code></pre>

<p>would be converted into:</p>

<pre><code>PlParam "1.2.3.4" "nodename"
</code></pre>

<p>in the generated olsrd config file, <code>/var/run/olsrd.conf</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/commotion-feed/issues/58">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzU3Mzk3NCwiZGF0YSI6eyJpZCI6Mzk1OTU3ODN9fQ==--03c599ff8b6f59c7e360949e4dbdc7af14ebb7a8.gif" width="1" /></p>