OK. Here's the quickest and easiest path to getting automagic DNS working once you're on the network.

This will allow you to resolve box.node.swn for static entries as well as dhcp'd machines.

step 1.

Email mattw, rob, ken or rlotz (or all of us) with your nodename and IP to set up a forwarder in the main zone files. This is probably the most time-intensive step. You should have a tunnel or a working node before you do this.

step 2.

add these three lines to your /etc/dnsmasq.conf

addn-hosts=/var/run/hosts_olsr
server=/swn/10.13.13.14
domain=nodename.swn                 

step 3.

In your /etc/olsrd.conf

LoadPlugin "olsrd_nameservice.so.0.2"
{
  PlParam "name" "routername.nodename"
  PlParam "suffix" ".swn"
  PlParam "dns-server" ""
  PlParam "hosts-file" "/var/run/hosts_olsr"
  PlParam "resolv-file" "/var/run/resolv.conf_olsr"
}

step 4.

you're set up.

Add static hosts in /etc/hosts

dhcp hosts are automagically added.

DnsMasqSetup (last edited 2008-04-13 16:36:59 by localhost)