首页 > 代码库 > dns服务
dns服务
2 vim /etc/sysconfig/network-scripts/ifcfg-eth0
3 vim /etc/sysconfig/network-scripts/ifcfg-eth0
4 hostnamectl set-hostname server-dns.example.com
5 reboot
6 vim /etc/yum.repos.d/rhel_dvd.repo
7 yum clean all
8 ifconfig
9 yum install bind -y
10 firewall-cmd --permanent --add-service=dns
11 firewall-cmd --reload
12 vim /etc/named.conf
13 vim /etc/named.rfc1912.zones
14 cd /var/named/
15 ls
16 cp -p named.localhost logo.com.zone
17 vim logo.com.zone
18 systemctl restart named
19 vim /etc/named.conf
20 vim /etc/named.rfc1912.zones
21 systemctl restart named
22 vim /etc/named.rfc1912.zones
23 systemctl restart named
24 vim /etc/named.conf
25 vim /etc/named.rfc1912.zones
26 systemctl restart named
27 vim /etc/named.rfc1912.zones
28 systemctl restart named
29 vim /etc/named.rfc1912.zones
30 systemctl restart named
31 dig www.logo.com
32 vim /etc/named.conf
33 vim /etc/named/logo.com.zone
34 vim /var/named/logo.com.zone
35 systemctl restart named
36 dig www.logo.com
37 vim /etc/named.conf
38 dig www.logo.com
39 vim /etc/resolv.conf
40 dig www.logo.com
41 vim /var/named/logo.com.zone
42 systemctl
43 systemctl restart named
44 dig www.logo.com
45 vim /etc/named.rfc1912.zones
46 systemctl restart named
47 vim /etc/named.rfc1912.zones
48 vim /var/named/logo.com.zone
49 dig www.logo.com
50 systemctl restart named
51 dig www.logo.com
52 > /var/log/messages
53 ll /var/named/
54 ll -d /var/named/
55 chmod 770 /var/named/
56 cd
57 ls
58 cd /var/named/
59 ls
60 cp -p logo.com.zone /mnt
61 getenforce
62 setenforce 0
63 getenforce
64 ls
65 > /var/log/messages
66 cat /var/log/messages
67 ll /var/named/
68 cat /var/log/messages
69 ping 172.25.254.217
70 setenforce 0
71 vim /etc/named.rfc1912.zones
72 systemctl restart named
73 vim /etc/named.rfc1912.zones
74 systemctl restart named
75 vim /etc/named.rfc1912.zones
76 systemctl restart named
77 vim /etc/named.rfc1912.zones
78 systemctl restart named
79 ll -d /var/named/
80 vim /etc/named.rfc1912.zones
81 setenforce 0
82 cat /var/log/messages
83 getenforce
84 dig www.logo.com
85 cat /var/named/
86 cat /var/log/messages
87 ll
88 getenforce
89 systemctl restart
90 systemctl restart named
91 cd
92 systemctl restart named
93 vim /etc/named.rfc1912.zones
94 cat /var/log/messages
95 dig www.logo.com
96 vim /var/named/logo.com.zone
97 > /var/log/messages
98 cat /var/log/messages
99 chmod 770 /var/named/
100 ll -d /var/named/
101 systemctl restart named
102 vim /etc/named.rfc1912.zones
103 systemctl restart named
104 vim /etc/named.rfc1912.zones
105 setenforce 0
106 getenforce
107 ll -d /var/named/
108 cd /var/named/
109 ls
110 vim logo.com.zone
111 dig www.logo.com
112 ls
113 vim /etc/sysconfig/selinux
114 reboot
115 cd /var/named/
116 ls
117 dig www.logo.com
118 dnssec-keygen -a HMAC-MD5 -b 128 -n HOST logo
119 vim /etc/named.rfc1912.zones
120 cd
121 systemctl restart named
122 vim /etc/named.rfc1912.zones
123 setenforce 0
124 ll -d /var/named/
125 vim /etc/resolv.conf
126 dig www.logo.com
127 ls /mnt
128 dig www.logo.com
129 cd /var/named/
130 ls
131 vim logo.com.zone
132 dig www.logo.com
133 ls
134 vim logo.com.zone
135 ll -d /var/named/
136 cat logo.com.zone
137 cd /mnt/
138 ls
139 cat logo.com.zone
140 cd /var/named/
141 ls
142 rm -rf logo.com.zone logo.com.zone.jnl
143 ls
144 cp -p /mnt/logo.com.zone .
145 ls
146 cd
147 systemctl restart named
148 dig www.logo.com
149 cd /var/named/
150 ls
151 vim logo.com.zone
152 cd /mnt/
153 ls
154 vim logo.com.zone
155 cd /var/named/
156 ls
157 vim logo.com.zone
158 rm -rf logo.com.zone
159 ls
160 cp -p /mnt/logo.com.zone .
161 ls
162 vim logo.com.zone
163 cd
164 systemctl restart named
165 dig www.logo.com
166 cd /mnt/
167 ls
168 vim /etc/rndc.key
169 dnssec-key -a HMAC-MD5 -b 128 -n HOST logo
170 ls
171 dnssec-keygen -a HMAC-MD5 -b 128 -n HOST logo
172 ls
173 cat Klogo.+157+26907.
174 cat Klogo.+157+26907.key
175 cat Klogo.+157+26907.private
176 cp -p /etc/rndc.key /etc/logo.key
177 vim /etc/logo.key
178 fg
179 vim /etc/named.rfc1912.zones
180 vim /etc/named.conf
181 vim /etc/named.rfc1912.zones
182 systemctl restart named
183 vim /etc/named.rfc1912.zones
184 systemctl restart named
185 vim /etc/named.conf
186 vim /etc/named.rfc1912.zones
187 systemctl restart named
188 cat /var/log/messages
189 ls
190 vim /etc/logo.key
191 ls
192 history
193 vim /etc/named.conf
194 vim /etc/logo.key
195 systemctl restart named
196 cat Klogo.+157+26907.private
197 vim /etc/logo.key
198 fg
199 systemctl restart named
200 ls
201 cd /var/named/
202 ls
203 vim logo.com.zone
204 cd /mnt/
205 ls
206 scp Klogo.+157+26907.* root@172.25.254.217:/mnt
207 dig www.logo.com
208 cd /var/named/
209 ls
210 vim logo.com.zone
211 cd /mnt/
212 ls
213 vim logo.com.zone
214 cd /var/named/
215 ls
216 rm -rf logo.com.zone logo.com.zone.jnl
217 cp -p /mnt/logo.com.zone .
218 ls
219 vim logo.com.zone
220 cd
221 systemctl restart named
222 dig www.logo.com
223 systemctl restart named
224 dig www.logo.com
225 cd /var/named/
226 ls
227 vim logo.com.zone
228 ls
229 rm -fr logo.com.zone
230 cp -p /mnt/logo.com.zone .
231 vim logo.com.zone
232 cd
233 systemctl restart named
234 cd /var/named/
235 ls
236 vim logo.com.zone
237 dig www.logo.com
238 yum install dhcp -y
239 vim /etc/yum.repos.d/rhel_dvd.repo
240 yum install dhcp -y
241 cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf
242 vim /etc/dhcp/dhcpd.conf
243 systemctl restart dhcpd
244 vim /etc/resolv.conf
245 systemctl status dhcpd
246 vim /etc/dhcp/dhcpd.conf
247 > /var/log/messages
248 systemctl restart dhcpd.service
249 cat /var/log/messages
250 systemctl stop dhcpd.service
1 ifconfig
2 vim /etc/sysconfig/network-scripts/ifcfg-eth0
3 vim /etc/sysconfig/network-scripts/ifcfg-eth0
4 hostnamectl set-hostname server-dns.example.com
5 reboot
6 vim /etc/yum.repos.d/rhel_dvd.repo
7 yum clean all
8 ifconfig
9 yum install bind -y
10 firewall-cmd --permanent --add-service=dns
11 firewall-cmd --reload
12 vim /etc/named.conf
13 vim /etc/named.rfc1912.zones
14 cd /var/named/
15 ls
16 cp -p named.localhost logo.com.zone
17 vim logo.com.zone
18 systemctl restart named
19 vim /etc/named.conf
20 vim /etc/named.rfc1912.zones
21 systemctl restart named
22 vim /etc/named.rfc1912.zones
23 systemctl restart named
24 vim /etc/named.conf
25 vim /etc/named.rfc1912.zones
26 systemctl restart named
27 vim /etc/named.rfc1912.zones
28 systemctl restart named
29 vim /etc/named.rfc1912.zones
30 systemctl restart named
31 dig www.logo.com
32 vim /etc/named.conf
33 vim /etc/named/logo.com.zone
34 vim /var/named/logo.com.zone
35 systemctl restart named
36 dig www.logo.com
37 vim /etc/named.conf
38 dig www.logo.com
39 vim /etc/resolv.conf
40 dig www.logo.com
41 vim /var/named/logo.com.zone
42 systemctl
43 systemctl restart named
44 dig www.logo.com
45 vim /etc/named.rfc1912.zones
46 systemctl restart named
47 vim /etc/named.rfc1912.zones
48 vim /var/named/logo.com.zone
49 dig www.logo.com
50 systemctl restart named
51 dig www.logo.com
52 > /var/log/messages
53 ll /var/named/
54 ll -d /var/named/
55 chmod 770 /var/named/
56 cd
57 ls
58 cd /var/named/
59 ls
60 cp -p logo.com.zone /mnt
61 getenforce
62 setenforce 0
63 getenforce
64 ls
65 > /var/log/messages
66 cat /var/log/messages
67 ll /var/named/
68 cat /var/log/messages
69 ping 172.25.254.217
70 setenforce 0
71 vim /etc/named.rfc1912.zones
72 systemctl restart named
73 vim /etc/named.rfc1912.zones
74 systemctl restart named
75 vim /etc/named.rfc1912.zones
76 systemctl restart named
77 vim /etc/named.rfc1912.zones
78 systemctl restart named
79 ll -d /var/named/
80 vim /etc/named.rfc1912.zones
81 setenforce 0
82 cat /var/log/messages
83 getenforce
84 dig www.logo.com
85 cat /var/named/
86 cat /var/log/messages
87 ll
88 getenforce
89 systemctl restart
90 systemctl restart named
91 cd
92 systemctl restart named
93 vim /etc/named.rfc1912.zones
94 cat /var/log/messages
95 dig www.logo.com
96 vim /var/named/logo.com.zone
97 > /var/log/messages
98 cat /var/log/messages
99 chmod 770 /var/named/
100 ll -d /var/named/
101 systemctl restart named
102 vim /etc/named.rfc1912.zones
103 systemctl restart named
104 vim /etc/named.rfc1912.zones
105 setenforce 0
106 getenforce
107 ll -d /var/named/
108 cd /var/named/
109 ls
110 vim logo.com.zone
111 dig www.logo.com
112 ls
113 vim /etc/sysconfig/selinux
114 reboot
115 yum search mariadb
116 yum install mariadb-server.x86_64 -y
117 systemctl stop firewalld.service
118 netstat -antlpe | grep mysql
119 vim /etc/my.cnf
120 netstat -antlpe | grep mysql
121 systemctl start mariadb
122 netstat -antlpe | grep mysql
123 netstat -antlpe
124 msyql
125 mysql_secure_installation
126 history
127 mysql -u root -h 172.25.254.117
128 vim /etc/my.cnf
129 netstat -antlpe | grep mysql
130 systemctl restart mariadb.service
131 mysql
132 mysql_secure_installation
133 systemctl restart mariadb.service
134 mysql -uroot -predhat
135 mysql -uroot -p
本文出自 “12106768” 博客,请务必保留此出处http://12116768.blog.51cto.com/12106768/1878316
dns服务