Hi,
i already wrote this on the mailing list some weeks ago, but since nobody fixed this bug yet i'll try it here again. This issue is a real showstopper for decentral DNS in our small mesh and may force us to use a hierarchical approach, so please help if you can by fixing the code or testing this out on your mesh.
**** Following the mail written on olsr-dev on 2009-01-29. I highlighed the important parts with >> in this paste, so you can easily see where the problem is. I should also add that the configs on all three nodes are identical except the sections below.
---
I'm trying to set up "ip-forwarders" (announce names for other hosts, e.g. hna-hosts) with the nameservice plugin. It almost works. On x86-hosts the names get inserted correctly, but on mips (i tested on Broadcom with Kamikaze and Freifunk Firmware, Atheros with Kamikaze and qemu with debian-mipsel) the plugin inserts wrong ips for the names, namely the ip of the host doing the announcement. Please see configs and the contents of the hosts files below. These are from a virtual test setup, running two kamikaze-x86 and one debian-mipsel, all with olsrd-0.5.6-r3.
== Node-1 ==
= Kamikaze x86, 2.6.25.17, 10.11.12.1, HNA: 192.168.0.201 =
LoadPlugin "olsrd_nameservice.so.0.3"
{
PlParam "name" "Node-1"
PlParam "192.168.0.201" "hna-node-1"
PlParam "suffix" ".ffa"
PlParam "hosts-file" "/var/etc/hosts.olsr"
}
10.11.12.1 Node-1.ffa # myself
192.168.0.201 hna-node-1.ffa # myself
192.168.0.202 hna-node-2.ffa # 192.168.0.202
10.11.12.2 Node-2.ffa # 10.11.12.2
192.168.0.203 hna-node-3.ffa # 192.168.0.203
10.11.12.3 Node-3.ffa # 10.11.12.3
== Node-2 ==
= Kamikaze x86, 2.6.25.17, 10.11.12.2, HNA: 192.168.0.202 =
LoadPlugin "olsrd_nameservice.so.0.3"
{
PlParam "name" "Node-2"
PlParam "192.168.0.202" "hna-node-2"
PlParam "hosts-file" "/var/etc/hosts.olsr"
PlParam "suffix" ".ffa"
}
10.11.12.2 Node-2.ffa # myself
192.168.0.202 hna-node-2.ffa # myself
192.168.0.201 hna-node-1.ffa # 192.168.0.201
10.11.12.1 Node-1.ffa # 10.11.12.1
192.168.0.203 hna-node-3.ffa # 192.168.0.203
10.11.12.3 Node-3.ffa # 10.11.12.3
== Node-3 ==
= Debian-*Mipsel*, 2.6.18-6-qemu, 10.11.12.3, HNA: 192.168.0.203 =
= I get the same (wrong) results at WRT54G with FFF or Kamikaze, but it was easier to test with debian =
LoadPlugin "olsrd_nameservice.so.0.3"
{
PlParam "name" "Node-3"
PlParam "192.168.0.203" "hna-node-3"
PlParam "suffix" ".ffa"
PlParam "hosts-file" "/etc/hosts.olsr"
}
10.11.12.3 Node-3.ffa # myself
192.168.0.203 hna-node-3.ffa # myself
10.11.12.1 hna-node-1.ffa # 10.11.12.1
10.11.12.1 Node-1.ffa # 10.11.12.1
10.11.12.2 hna-node-2.ffa # 10.11.12.2
10.11.12.2 Node-2.ffa # 10.11.12.2
If someone is willing to have a look at this, i can upload the 3 qemu-vms or give ssh access to these nodes.
regards,
soma
Oops, removed the highlights while reediting. the important part is the hosts file of node3, the messed up ip/name pairs for hna-node-1.ffa and hna-node-2.ffa.