首页 > 免root版 > 怎样开gg修改器的root_怎么用GG修改器
怎样开gg修改器的root_怎么用GG修改器
  • 怎样开gg修改器的root_怎么用GG修改器

  • 大小:14.57MB日期:2024-12-18 15:07:05
  • 语言:简体中文系统:Android
绿色无毒,安全可靠!部分设备误报拦截请通过!

应用详情

GG修改器破解版下载地址:https://ghb2023zs.bj.bcebos.com/gg/xgq/ggxgq?GGXGQ

大家好,今天小编为大家分享关于怎样开gg修改器的root_怎么用GG修改器的内容,赶快来一起来看看吧。

DNS服务器软件::bind,powerdns,dnsmasq,unbound,coredns

BIND相关程序包

BIND包相关文件

主配置文件

注意:

主配置文件语法检查

named-checkconf

解析库文件语法检查

named-checkzone "magedu.org" /var/named/magedu.org.zone #centos8没有整个命令

配置生效

#三种方式
#rndc reload
#systemctl reload named
#service named reload

实现DNS正向主从服务器

实验设备:服务器

    centos8 地址10.0.0.88;centos7 地址10.0.0.77

     客户端

    centos7 地址10.0.0.7

设置域名:magedu.org

客户端DNS解析:主服务器掉线,自动连接 “从服务器”解析

主服务器配置

1、编辑配置文件 /etc/named.conf

[root@centos8-liyj ~]#vim /etc/named.conf

注释// 图片中蓝色行

添加 allow-transfer { 10.0.0.77;}; #只允许从服务器进行区域传输

修改

dnssec-enable yes; #改为no
dnssec-validation yes; #改为no

配置文件

2、编辑/etc/named.rfc1912.zones

再最后添加以下内容
zone "magedu.org" IN {
typer master;
file "magedu.org.zone"; #文件目录,默认/var/named/
};                  #在named.conf文件中定义了directory "/var/named";

named.rfc1912.zones

3、编辑DNS区域数据库文件

[root@centos8-liyj /etc/named]#cd /var/named/
[root@centos8-liyj /var/named]#ls
data dynamic named.ca named.empty named.localhost named.loopback slaves

3.1复制named.localhost文件格式,重新编辑

[root@centos8-liyj /var/named]#cp -p named.localhost magedu.org.zone #-p 复制原格式权限
[root@centos8-liyj /var/named]#ll                        或者手动修改:chgrp named magedu.org.zone
total 20
drwxrwx--- 2 named named 6 Aug 25 2021 data
drwxrwx--- 2 named named 6 Aug 25 2021 dynamic
-rw-r----- 1 root named 152 Aug 25 2021 magedu.org.zone #文件权限为640 ,强制 属主root,数组named
-rw-r----- 1 root named 2253 Aug 25 2021 named.ca
-rw-r----- 1 root named 152 Aug 25 2021 named.empty
-rw-r----- 1 root named 152 Aug 25 2021 named.localhost
-rw-r----- 1 root named 168 Aug 25 2021 named.loopback
drwxrwx--- 2 named named 6 Aug 25 2021 slaves

[root@centos8-liyj /var/named]#vim magedu.org.zone

$TTL 1D
@ IN SOA ns1 admin.magedu.org. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS ns1            #主DNS
NS ns2            #从DNS
ns1 A 10.0.0.88         #指向地址
ns2 A 10.0.0.77

[root@centos8-liyj /var/named]#systemctl start named #第一次启动
[root@centos8-liyj /var/named]#rndc reload          #不是第一次启动,使用rndc reload 加载 配置文件,不会终端DNS服务
server reload successful
[root@centos8-liyj /var/named]#

主服务器DNS-dig测试

[root@centos8-liyj /var/named]#dig ns1.magedu.org
#本机设置了DNS地址,联通了外网,互联网上由 ns1.magedu.org域名。解析如下
ns1.magedu.org. 5 IN A 47.91.170.222 #解析出外网地址,
                                      vim /etc/sysconfig/network-scripts/ifcfg-eth0
                                      删除本机的DNS地址

[root@centos8-liyj /var/named]#cat /etc/sysconfig/network-scripts/ifcfg-eth0 #修改后,删除了DNS地址,重启网卡服务
DEVICE="eth0"
NAME="eth0"
BOOTPROTO="static"
IPADDR=10.0.0.88
PREFIX=24
GATEWAY=10.0.0.2
ONBOOT="yes"

dig域名测试正确

从服务器配置

[root@centos7-liyj ~]#vim /etc/named.conf
注释//

options {
// listen-on port 53 { 127.0.0.1; };
// allow-query { localhost; };

allow-transfer { none;}; #不允许其他主机进行区域传输

yes改为no

dnssec-enable no;
dnssec-validation no;

}

配置文件

[root@centos7-liyj ~]#vim /etc/named.rfc1912.zones 添加以下内容
zone "magedu.org" {
type slave;
masters { 10.0.0.88;};
file "slaves/magedu.org.slave"; #文件目录
};

配置文件

systemctl start named #第一次启动服务
rndc reload #不是第一次启动服务
ls /var/named/slaves/magedu.org.slave #查看区域数据库文件是否生成

[root@centos7-liyj ]#ll /var/named/slaves/
total 4
-rw-r--r-- 1 named named 264 May 2 17:06 magedu.org.slave
[root@centos7-liyj ]#cat /var/named/slaves/magedu.org.slave #从服务器 自动生成文件
boXQ                                    查看内容乱码,不允许从服务器看到配置
mageduorg6ns1mageduorgadminmageduorgQ :*0DQ
mageduorgns1mageduorgns2mageduorg*Qns1mageduorg
X*Qns2mageduorg

解决乱码问题:

添加
masterfile-format text;

重启服务
systemctl restart named

[root@centos7-liyj /var/named/slaves]#cat /var/named/slaves/magedu.org.slave
$ORIGIN .
$TTL 86400 ; 1 day
magedu.org IN SOA ns1.magedu.org. admin.magedu.org. (
0 ; serial
86400 ; refresh (1 day)
3600 ; retry (1 hour)
604800 ; expire (1 week)
10800 ; minimum (3 hours)
)
NS ns1.magedu.org.
NS ns2.magedu.org.
$ORIGIN magedu.org.
ns1 A 10.0.0.88
ns2 A 10.0.0.77

DNS gid测试

首先修改 eth0 网卡配置,删除dns地址,添加dns=10.0.0.88

[root@centos7-liyj ~]#cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NAME="eth0"
BOOTPROTO="static"
IPADDR=10.0.0.77
PREFIX=24
GATEWAY=10.0.0.2
DNS3=10.0.0.88
ONBOOT="yes"

域名解析

客户端域名解析

修改客户端DNS1 为 10.0.0.88 DNS2为10.0.0.77

[root@centos7-liyj ~]#vim /etc/sysconfig/network-scripts/ifcfg-eth0
[root@centos7-liyj ~]#cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NAME="eth0"
BOOTPROTO="static"
IPADDR=10.0.0.7
PREFIX=24
GATEWAY=10.0.0.2
DNS1=10.0.0.77
DNS2=10.0.0.88
ONBOOT="yes"

测试,DNS主从服务器都在线

yum install -y bind-utils

[root@centos7-liyj ~]#dig ns1.magedu.org

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 <<>> ns1.magedu.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26563
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;ns1.magedu.org. IN A

;; ANSWER SECTION:
ns1.magedu.org. 86400 IN A 10.0.0.88

;; AUTHORITY SECTION:
magedu.org. 86400 IN NS ns1.magedu.org.
magedu.org. 86400 IN NS ns2.magedu.org.

;; ADDITIONAL SECTION:
ns2.magedu.org. 86400 IN A 10.0.0.77

;; Query time: 0 msec
;; SERVER: 10.0.0.88#53(10.0.0.88)
;; WHEN: Mon May 02 18:04:39 CST 2022
;; MSG SIZE rcvd: 107

[root@centos7-liyj ~]#dig ns2.magedu.org

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 <<>> ns2.magedu.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7070
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;ns2.magedu.org. IN A

;; ANSWER SECTION:
ns2.magedu.org. 86400 IN A 10.0.0.77

;; AUTHORITY SECTION:
magedu.org. 86400 IN NS ns1.magedu.org.
magedu.org. 86400 IN NS ns2.magedu.org.

;; ADDITIONAL SECTION:
ns1.magedu.org. 86400 IN A 10.0.0.88

;; Query time: 0 msec
;; SERVER: 10.0.0.88#53(10.0.0.88)
;; WHEN: Mon May 02 18:04:47 CST 2022
;; MSG SIZE rcvd: 107

DNS主服务器掉线

[root@centos8-liyj ~]#systemctl stop named
[root@centos8-liyj ~]#systemctl status named
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Active: inactive (dead)

客户端解析

[root@centos7-liyj ~]#dig ns2.magedu.org

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 <<>> ns2.magedu.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57974
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;ns2.magedu.org. IN A

;; ANSWER SECTION:
ns2.magedu.org. 86400 IN A 10.0.0.77

;; AUTHORITY SECTION:
magedu.org. 86400 IN NS ns2.magedu.org.
magedu.org. 86400 IN NS ns1.magedu.org.

;; ADDITIONAL SECTION:
ns1.magedu.org. 86400 IN A 10.0.0.88

;; Query time: 1 msec
;; SERVER: 10.0.0.77#53(10.0.0.77)
;; WHEN: Mon May 02 18:11:26 CST 2022
;; MSG SIZE rcvd: 107

[root@centos7-liyj ~]#dig ns1.magedu.org

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 <<>> ns1.magedu.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3739
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;ns1.magedu.org. IN A

;; ANSWER SECTION:
ns1.magedu.org. 86400 IN A 10.0.0.88

;; AUTHORITY SECTION:
magedu.org. 86400 IN NS ns2.magedu.org.
magedu.org. 86400 IN NS ns1.magedu.org.

;; ADDITIONAL SECTION:
ns2.magedu.org. 86400 IN A 10.0.0.77

;; Query time: 1 msec
;; SERVER: 10.0.0.77#53(10.0.0.77)
;; WHEN: Mon May 02 18:11:37 CST 2022
;; MSG SIZE rcvd: 107

原文链接:

以上就是关于怎样开gg修改器的root_怎么用GG修改器的全部内容,感谢大家的浏览观看,如果你喜欢本站的文章可以CTRL+D收藏哦。

相关文章

热门下载

大家还在搜