3

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

 2 years ago
source link: https://blog.bluexiii.com/202009/K8S%E7%A6%BB%E7%BA%BF%E9%83%A8%E7%BD%B2%E7%AC%94%E8%AE%B0-6-DNS%E6%9C%8D%E5%8A%A1/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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

Posted on

2020-09-28 Edited on 2021-01-05

# 安装
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
  • Table of Contents
  • Overview

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK