BlueXIII's Blog

热爱技术,持续学习

0%

K8S离线部署笔记-6-DNS服务

步骤

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 安装
yum -y install dnsmasq

## 配置文件
vi /etc/dnsmasq.conf

# 配置正向解析
vi /etc/hosts
注意先配置一条hostname的记录

# 启用服务
systemctl start dnsmasq
systemctl enable dnsmasq

# 客户端配置
vi /etc/sysconfig/network-scripts/ifcfg-ens192
DNS1=10.10.51.77

systemctl restart network

# 测试
ping registry.yourcompany.com