Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Runtime: fix the data dir permission problem of Bind #1779

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/cloudtik/runtime/bind/conf/named.conf.options
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ options {

directory "{%data.dir%}";

recursion yes;

dnssec-enable no;
dnssec-validation no;
};
1 change: 1 addition & 0 deletions python/cloudtik/runtime/bind/scripts/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function configure_data_dir() {
fi

mkdir -p ${data_dir}
sudo chown -R root:bind ${data_dir} >/dev/null 2>&1
sed -i "s!{%data.dir%}!${data_dir}!g" ${output_dir}/named.conf.options
}

Expand Down