[Olsr-users] olsr nameservice plugin

Justin Lewis (spam-protected)
Tue Feb 11 23:38:54 CET 2014


On 11/02/14 19:54, Ferry Huberts wrote:
>
>
> On 11/02/14 18:52, Justin Lewis wrote:
>> 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.
>
> check that /etc/nsswitch.conf contains
>
>    hosts:      files dns .....
>
> so, with files first
>

Thanks for the response. I don't actually have a nsswitch.conf file 
(this is on Android).

Is this setup even going to work (dnsmasq on every node)? Is there a 
better way to setup dnsmasq with the nameservice plugin? I am kind of 
lost here.

Cheers,
Justin




More information about the Olsr-users mailing list