Skip to content
Gérôme Bovet edited this page May 22, 2015 · 1 revision

DNS Configuration

Each legacy device (KNX and EnOcean) has its own DNS entry pointing to the gateway. By following this approach, legacy devices appear as native WoT devices. This however requires a DNS server where the name will be stored. The gateway will manage those entries.

We strongly recommend the Bind Linux DNS server, allowing external services to manage the entries. We here provide some example configuration of Bind for the eia-fr domain. Replace this with your own.

First, you will need to install the server sudo apt-get install bind.

Give to the user bind (or to everybody) write access to the installation directory chmod 777 /etc/bind.

Add the following lines to the file named.conf.local

zone "eia-fr.ch"{
   type master;
   file "/etc/bind/db.eia-fr.ch";
   allow-transfer { @gateway_ip; };
};

Copy db.empty and name it db.eia-fr.ch

Edit the file db.eia-fr.ch with the following lines:

$TTL    86400
@       IN      SOA     eia-fr.ch. root.eia-fr.ch. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                          86400 )       ; Negative Cache TTL
;

Edit the file /etc/default/bind to consider only IPv4 addresses.

OPTIONS="-4 -u bind"

Restart the DNS server sudo /etc/init.d/bind restart.

To consult the logs cat /var/log/syslog.

Configure the IP address of the server. Edit the file /etc/network/interfaces and add the following lines:

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.132.129
        netmask 255.255.255.0
        network 192.168.132.0
        broadcast 192.168.132.255
        gateway 192.168.132.2
        dns-search eia-fr.ch
        dns-nameservers 192.168.132.129

Restart the network interface sudo /etc/init.d/networking restart.

Clone this wiki locally