Tag Archives: dns

Ubuntu and (dot).local addresses – Avahi

I have a Ubuntu server where there was a problem with .local address, i could’t look up the zone from the server.
After a little search i found that Avahi (Zeroconf) was the problem.

The default setup of Avahi, is to look for the zone in mDNS, if that failed the resolv failed.

So to fix this, edit /etc/nsswitch.conf

Change this line
hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
To:
hosts:          files dns mdns4_minimal mdns4

Installation of tinydns and axfrdns. djbdns

This is a small howto in installation of djbdns, with tinydns and axfrdns services.
First install daemontools

mkdir -p /package
chmod 1755 /package
cd /package
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
gunzip daemontools-0.76.tar.gz
tar -xf daemontools-0.76.tar
cd admin/daemontools-0.76
wget http://djbware.csi.hu/patches/daemontools-0.76.errno.patch
patch < daemontools-0.76.errno.patch
#Ask: /package/admin/daemontools-0.76/src/error.h
#to the question about witch file you want to patch
#
package/install

Now install ucspi-tcp

cd /usr/local/src
wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
gunzip ucspi-tcp-0.88.tar.gz
tar -xf ucspi-tcp-0.88.tar
cd ucspi-tcp-0.88
wget http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.errno.patch
patch < ucspi-tcp-0.88.errno.patch
make setup check

Then install djbdns

cd /usr/local/src
wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
gunzip djbdns-1.05.tar.gz
tar -xf djbdns-1.05.tar
cd djbdns-1.05
wget http://djbware.csi.hu/patches/djbdns-1.05.errno.patch
patch -p1 < djbdns-1.05.errno.patch
make setup check

Global:

useradd dnslog

TinyDNS (DNS Server)

useradd tinydns
tinydns-conf tinydns dnslog /etc/tinydns 1.2.3.5
ln -s /etc/tinydns /service

DNS Cache (DNS Resolv)

useradd dnscache
dnscache-conf dnscache dnslog /etc/dnscache 1.2.3.5
ln -s /etc/dnscache /service

AXFR Server

useradd axfrdns
axfrdns-conf axfrdns dnslog /etc/axfrdns /etc/tinydns 1.2.3.4
ln -s /etc/axfrdns /service