系统技术文档

193 阅读1分钟

DNS

出网(强制转单IP递归)

添加需要转发到单IP递归的域名

##ssh链接到 211.161.192.209

[root@automation_and_git ~]# cd /chroot/
[root@automation_and_git chroot]# git pull git@git.gwbnsh.net.cn:/chroot
From git.gwbnsh.net.cn:/chroot
 * branch            HEAD       -> FETCH_HEAD
Already up-to-date.

[root@automation_and_git chroot]# vim etc/forward_to/gwbn-yd
[root@automation_and_git chroot]# git commit -a
[root@automation_and_git chroot]# git push git@git.gwbnsh.net.cn:/chroot

使用“Ansible”自动化运维工具批量发布

[root@automation_and_git chroot]# ll
total 16
lrwxrwxrwx  1 root root   14 Jan  7 17:06 ansible.sh -> /mt/ansible.sh
drwxr-xr-x  2 root root   40 Jan  7 16:49 doc
drwxr-xr-x  2 root root   21 Jan  7 16:49 dump
drwxr-xr-x  5 root root 4096 Jan  7 16:49 etc
-rwxr-xr-x  1 root root  547 Jan  7 16:49 pdns.sh
drwxr-xr-x 15 root root 4096 Jan  7 16:49 var
[root@automation_and_git chroot]# ./ansible.sh

添加新NS操作

首先打开任意一台dns服务器

ip r | grep ns的ip 

(查看是否已经添加过)如果没添加那就先打开自己的服务器(longxianguo也行)

cd /scripts

要进入相关打文件夹拉去git上的库

git pull git@git.gwbnsh.net.cn:/scripts

vim route-dns
  • /NEWIPS 回车
    • 按a编辑 找到对应的标签

在NEWIPS这个标签下面添加上新的ns的ip

git commit -a

打标签,写明备注;这一步是:提交到缓存区

git push git@git.gwbnsh.net.cn:/scripts

提交修改到scrips库

批量打开所有(除去4台gentoo设备)的dns服务器

工具上选择输入到所有

cd /scripts

进入所有服务器的scripts文件夹

git pull git@git.gwbnsh.net.cn:/scripts

拉下scripts库

所有的dns服务器上运行

./route-dns add NEWIPS

这条命令

进入另外4台gentoo设备、

cd /scripts

git pull

./route-dns add NEWIPS

Email

日志系统

Cacti监控

log30服务器

跳板机

ELK服务器

ACS服务器

FTP服务器