4.4. Domain Name Forwarder (DNS)

The Domain Name System (DNS) is an Internet service that translates domain names into IP addresses.

SISO uses the lightweight dnsmasq [22] DNS forwarder and DHCP server. It can resolv the names of local machines which are not in the global DNS by simply adding entries to the /etc/hosts file. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP for booting diskless clients.

Download and unpack the sources.

wget -P $DL_DIR  # was 2.33, 2.39, 2.41
tar -C $PRJ_DIR/apps -xvzf $DL_DIR/dnsmasq-2.41.tar.gz
cd $PRJ_DIR/apps/dnsmasq-2.41

Compile and install to rootfs.d. For configuration examples refer to the manual page (man -M $ROOTFS_DIR/usr/man 8 dnsmasq).

install -s -m 755 src/dnsmasq $ROOTFS_DIR/usr/sbin/
install -m 644 man/dnsmasq.8 $ROOTFS_DIR/usr/man/man8/

Configuration examples can be found in Section 5.1.3, “DHCP Server and DNS Forwarder configuration”.