mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
replaced static definition for dns server
This commit is contained in:
parent
fbb54a87fe
commit
291870c182
6 changed files with 48 additions and 12 deletions
|
@ -50,8 +50,17 @@ for nameserver in ${ns//,/ };do
|
|||
i=$((i + 1))
|
||||
done
|
||||
|
||||
# Get dns config path
|
||||
if [ -e '/etc/named.conf' ]; then
|
||||
dns_conf='/etc/named.conf'
|
||||
fi
|
||||
|
||||
if [ -e '/etc/bind/named.conf' ]; then
|
||||
dns_conf='/etc/bin/named.conf'
|
||||
fi
|
||||
|
||||
# Remove old user's zone
|
||||
sed -i "/\/$user\/conf\/dns/d" /etc/named.conf
|
||||
sed -i "/\/$user\/conf\/dns/d" $dns_conf
|
||||
|
||||
# Starting loop
|
||||
rebuild_dns_domain_conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue