9.1-临时配置信息
ifconfig # 看ip地址 自答 ip addr
# ifconfig 网卡名字
ifconfig ens33
# 主机名修改
# 临时配置
hostname Anolis-OS
hostname
cat /etc/hostname
# 永久配置
echo Anolis-OS > /etc/hostname
cat /etc/hostname
hostnamectl set-hostname XXX
cat /etc/hostname
# DNS 虚拟机DNS 一般是网关
nslookup www.baidu.com # 解析命令
# 查看DNS配置
cat /etc/resolve.conf
# DNS 默认 53 端口
#
cat /etc/hosts