Configuring BIND on Solaris 10

Find BIND service:
# svcs -a | grep dns

Start the service if not started

#svcsadm enable /network/dns/server

Create configuration files: /etc/named.conf and /etc/rndc.conf

named.conf:

options {
directory “/var/named”;
};

logging {
channel simple_log {
file “/var/log/named/bind.log” versions 3 size 5m;
severity error;
print-time yes;
print-severity yes;
print-category yes;
};
category default {
simple_log;
};
};

zone “my” in {
type master;
file “db.my”;
allow-update {192.148.1.1;};
};

# Use with the following in named.conf, adjusting the allow list as needed:
key “rndc-key” {
algorithm hmac-md5;
secret “rEFrdjoRfKNa6ZHuFt0LnQ==”;
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { “rndc-key”; };
};
# End of named.conf

——————————————————
— end of file —————————————
——————————————————

# rndc-confgen > /etc/rndc.conf

Create zone file

$TTL 3h

my. IN SOA pooh.my. hostmaster.my. (
1;
3h;
1h;
1w;
1h );

IN NS ghost.my.
IN NS wild.my.

localhost       IN A    127.0.0.1
ghost    IN A 192.14.1.1
wild    IN A 172.17.2.3

Dump current in-memory zone:

# rndc dumpdb -all

The dump file is written in the same directory where zone file resides.