Project

General

Profile

Actions

Característica #47

closed

DNS system for internal MESH

Added by Pau Escrich almost 14 years ago. Updated over 6 years ago.

Status:
Tancat
Priority:
Normal
Category:
IPv6 routing protocols
Target version:
-
Start date:
05/28/2011
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

We need a DNS system to access mesh nodes using hostname instead ipv6. Like qmp45

Actions #1

Updated by Pau Escrich over 13 years ago

  • Assignee set to Agustí Moll Garcia
Actions #2

Updated by Pau Escrich about 13 years ago

An easy way to do it (works for me):

root@qmpc2:~# cat /etc/crontabs/root
*/5 * * * * qmpinfo nodes | awk '{print $2,$1}' > /tmp/qmp.hosts

root@qmpc2:~# cat /etc/config/dhcp| grep addnhosts
list 'addnhosts' '/tmp/qmp.hosts'

root@qmpc2:~# cat /etc/init.d/qmp_autoconf | grep "startup()" -A5
startup() {
$QMP_DIR/qmp_control.sh apply_netserver
logread | md5sum | awk '{print $1}' > $QMP_KEY
qmpinfo nodes | awk '{print $2,$1}' > /tmp/qmp.hosts
/etc/init.d/dnsmasq restart
}

Actions #3

Updated by Pau Escrich about 12 years ago

A quick and dirty script to generate the qmp.hosts file based on bmx6 json information.

/www/cgi-bin/bmx6-info -s '$neighbours' | sed  -e 's/{/\n/g' -e 's/}//g' | \ 
        egrep 'globalId|address' | awk '{print $4}' | \
    while read l; do
    [ $(echo "$l" | grep -c ",") -eq 1 ] && {
        nodename=$(echo $l | tr -d \" | tr -d \, | cut -d . -f1)
    } || {
        ip=$(echo $l | tr -d \")
        echo "$ip $nodename" 
    }
    done

Actions #4

Updated by Roger Pueyo Centelles over 6 years ago

  • Status changed from Nou to Tancat
Actions

Also available in: Atom PDF