Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scripts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
infra
scripts
Commits
e1453d11
Commit
e1453d11
authored
Jan 24, 2024
by
Joab Bremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
1951a11f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
update_domains.sh
update_domains.sh
+24
-0
No files found.
update_domains.sh
0 → 100644
View file @
e1453d11
#!/bin/bash
# Configurações
USER
=
"root"
REMOTE_SERVER
=
"177.174.64.21"
REMOTE_NAMED_CONF
=
"/etc/named.conf"
REMOTE_ZONES_DIR
=
"/var/named/chroot/var/named/"
# Caminhos Locais
LOCAL_NAMED_CONF
=
"/etc/named.conf"
LOCAL_ZONES_DIR
=
"/var/named/chroot/var/named/"
# Caminhos para os Executáveis
RSYNC
=
"/usr/bin/rsync"
RNDC
=
"/usr/sbin/rndc"
# Sincronizar named.conf do servidor remoto para o local
$RSYNC
-avz
$USER
@
$REMOTE_SERVER
:
$REMOTE_NAMED_CONF
$LOCAL_NAMED_CONF
# Sincronizar arquivos de zona do servidor remoto para o local
$RSYNC
-avz
--delete
$USER
@
$REMOTE_SERVER
:
$REMOTE_ZONES_DIR
$LOCAL_ZONES_DIR
# Recarregar a configuração do BIND local
$RNDC
reload
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment