bind9

apt-get install bind9

/var/lib/bind

vim josef-friedrich.de.hosts

Wildcard DNS

*.josef-friedrich.de. IN A 192.168.1.1

Refresh dns cache

rndc flush

Testing

apt-get install dnsutils
dig josef-friedrich.de

nsupdate

zone "myzone.com" {
  type master;
  file "/var/lib/bind/myzone.com.db";
  allow-update { localhost; };
};