[Olsr-users] olsr nameservice plugin
Justin Lewis
(spam-protected)
Tue Feb 11 18:52:44 CET 2014
Hi again,
So yes, it was the file permissions causing the problem. But now I have
another problem. My config now looks like:
LoadPlugin "olsrd_nameservice.so.0.3"
{
PlParam "name" "myhostname"
PlParam "dns-server" ""
PlParam "hosts-file" "/var/run/hosts_olsr"
PlParam "resolv-file" "/var/etc/resolv.conf"
PlParam "sighup-pid-file" "/var/run/dnsmasq.pid"
}
This writes the correct entries in the hosts_olsr file and sends a
SIGHUP to dnsmasq when something changes.
But, I am still unable to resolve hostnames. The nameservice plugin
isn't writing anything to resolv.conf. I was hoping that a node would
detect that the other is a dns server, and write the other node's IP in
resolv.conf. Putting 127.0.0.1 in resolv.conf doesn't work either.
I am running dnsmasq with the --addn-hosts=/var/run/hosts_olsr and
--resolv-file=/var/etc/resolv.conf options.
How can I get hostname resolution working? Thanks in advance for replies.
Cheers,
Justin
On 14/01/14 13:37, Chris W. wrote:
> Hello Justin,
>
> are these files readonly for the olsrd user?
> Anyway, it'd be not too bad using a temporary space for these ever
> changing files like
>
> PlParam "hosts-file" "/var/run/hosts_olsr"
> PlParam "resolv-file" "/var/etc/resolv.conf"
>
> and to tell your dnsmasq with the option --addn-hosts=path to read it.
> At least that's what my install looks like on openwrt.
>
> good luck
>
> Chris
>
>
>
>
>
> On 01/11/2014 10:59 PM, Justin Lewis wrote:
>> Hi,
>>
>> I'm trying to use the nameservice plugin, but it doesn't seem to be
>> writing anything to /etc/hosts or /etc/resolv.conf. Here is my plugin
>> config:
>>
>> LoadPlugin "olsrd_nameservice.so.0.3"
>> {
>> PlParam "name" "myhostname"
>> PlParam "hosts-file" "/etc/hosts"
>> PlParam "resolv-file" "/etc/resolv.conf"
>> }
>>
>> What am I doing wrong? I'm somewhat of a newbie to this, so I could be
>> grossly misunderstanding. I appreciate any help.
>>
>> Btw, I'm running olsr 0.6.7 on android.
>>
>> Cheers,
>> Justin
>>
More information about the Olsr-users
mailing list