[Olsr-users] olsr nameservice plugin
Ferry Huberts
(spam-protected)
Wed Feb 12 07:54:19 CET 2014
On 11/02/14 23:37, Justin Lewis wrote:
> 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.
>
I don't know enough about Android to help you further here. sorry.
> Cheers,
> Justin
>
--
Ferry Huberts
More information about the Olsr-users
mailing list