Robert Harker Technical Wiki
Thoughts and Ideas About Large Sites

[ Prev ] [ Index ] [ Next ]


named

TOPIC

/etc/sysconfig/named:
# only use ipv4, also dislable #listen-on-v6
OPTIONS="-4"

/etc/named.conf comment out:
#listen-on-v6 port 53

# check that /etc/named.conf /var/named/chroot/etc/named.conf are the same file:
ls -li /etc/named.conf /var/named/chroot/etc/named.conf
# if not:
cp /etc/named.conf /var/named/chroot/etc/
# or hard link before first named start up?

# enable chroot environment
/usr/libexec/setup-named-chroot.sh /var/named/chroot on

# note: the files and dir /var/named/* are hard linked
# from /var/named/chroot/var/name

#######################################################################

# copy in local config for dns served zones
cp -r ~harker/masters /var/named/chroot/var/named
chown -R root.named /var/named/chroot/var/named/masters
chmod 750 /var/named/chroot/var/named/masters
chmod 640 /var/named/chroot/var/named/masters/*
ls -l /var/named/chroot/var/named/masters

# copy in rndc key (if needed)
cp ~harker/rndc.key /etc/rndc.key
ls -il /etc/rndc.key /var/named/chroot/etc/rndc.key
ln /etc/rndc.key /var/named/chroot/etc/rndc.key
chmod 640 /etc/rndc.key
chgrp named /etc/rndc.key
ls -il /etc/rndc.key /var/named/chroot/etc/rndc.key

# copy in named.conf file
cp ~harker/named.conf /etc/named.conf
# if needed
ls -il /etc/named.conf /var/named/chroot/etc/named.conf
ln /etc/named.conf /var/named/chroot/etc/named.conf
chmod 640 /etc/named.conf
chgrp named /etc/named.conf
ls -il /etc/named.conf /var/named/chroot/etc/named.conf

#######################################################################

# enable named
systemctl status named-chroot.service
systemctl enable named-chroot.service
systemctl start named-chroot.service
systemctl status named-chroot.service

# remember to add yourself to group named

#######################################################################


Backlinks: index Start
Created with Zim desktop wiki