Italiano English
Modifica History Actions

Differenze per "NameServicePluginConfig"

Differenze tra le versioni 1 e 3 (in 2 versioni)
Versione 1 del 2011-03-28 10:51:24
Dimensione: 1050
Autore: ClauzClauz
Commento:
Versione 3 del 2011-03-29 22:13:34
Dimensione: 1435
Autore: stefanopilla
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 2: Linea 2:
The name is a bit misleading, as it has grown from a bit nameservice to be a instrument for flooding many information in the mesh:
Linea 3: Linea 4:
 * my hostname
 * hostnames in my attached network
 * address of my dns server
 * geopositions
 * mac addresses
 * services

== OpenWrt ==
Linea 4: Linea 13:
Linea 6: Linea 16:
 option library 'olsrd_nameservice.so.0.3'
 option 'suffix' ".ninux"
 option 'hosts_file' '/etc/hosts'
 option 'sighup_pid_file' '/var/run/dnsmasq.pid'
        option library 'olsrd_nameservice.so.0.3'
        option 'suffix' ".ninux"
        option 'hosts_file' '/etc/hosts'
        option 'sighup_pid_file' '/var/run/dnsmasq.pid'
Linea 11: Linea 21:
The {{{/etc/config/dhcp}}} file (i.e. dnsmasq config) can be left with the default values.
Linea 12: Linea 23:
Change the first part of {{{/etc/config/dhcp}}} as follows. == Other ==
Add the following to {{{/etc/olsrd.conf}}}. Be sure to have no important data in {{{/etc/hosts}}}:
Linea 15: Linea 27:
config dnsmasq
 option domainneeded 1
 option boguspriv 1
 option filterwin2k 0 # enable for dial on demand
 option localise_queries 1
 option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
 option rebind_localhost 1 # enable for RBL checking and similar services
 #list rebind_domain example.lan # whitelist RFC1918 responses for domains
 option local '/ninux/'
 option domain 'ninux'
 option expandhosts 1
 option nonegcache 0
 option authoritative 1
 option readethers 1
 option leasefile '/tmp/dhcp.leases'
 option resolvfile '/tmp/resolv.conf.auto'
 option addnhosts '/var/run/hosts_olsr'
LoadPlugin "olsrd_nameservice.so.0.3"
{
        PlParam "name" "qq"
        PlParam "suffix" ".ninux"
        PlParam "hosts-file" "/etc/hosts"
        PlParam "sighup-pid-file" "/var/run/dnsmasq.pid"
}
Linea 33: Linea 35:
dnsmasq config can be left with the defaults

It is also possibile to give the lat/lon coordinates and create a file (.js) in which to store the position of the others nodes:

{{{
LoadPlugin "olsrd_nameservice.so.0.3"
{
}}}
{{{
        PlParam "lat" "52.524"
        PlParam "lon" "13.31"
        PlParam "latlon-file" "/var/run/latlon.js"
}
}}}

Configuring the olsrd nameservice plug-in

The name is a bit misleading, as it has grown from a bit nameservice to be a instrument for flooding many information in the mesh:

  • my hostname
  • hostnames in my attached network
  • address of my dns server
  • geopositions
  • mac addresses
  • services

OpenWrt

Add the following to /etc/config/olsrd. Be sure to have no important data in /etc/hosts.

config LoadPlugin
        option library 'olsrd_nameservice.so.0.3'
        option 'suffix' ".ninux"
        option 'hosts_file' '/etc/hosts'
        option 'sighup_pid_file' '/var/run/dnsmasq.pid'

The /etc/config/dhcp file (i.e. dnsmasq config) can be left with the default values.

Other

Add the following to /etc/olsrd.conf. Be sure to have no important data in /etc/hosts:

LoadPlugin "olsrd_nameservice.so.0.3"
{
        PlParam "name" "qq"
        PlParam "suffix" ".ninux"
        PlParam "hosts-file" "/etc/hosts"
        PlParam "sighup-pid-file" "/var/run/dnsmasq.pid"
}

dnsmasq config can be left with the defaults

It is also possibile to give the lat/lon coordinates and create a file (.js) in which to store the position of the others nodes:

LoadPlugin "olsrd_nameservice.so.0.3"
{

        PlParam "lat" "52.524"
        PlParam "lon" "13.31"
        PlParam "latlon-file" "/var/run/latlon.js"
}