泛域名解析
输入错误的域名前缀,依然可以准确的解析到域名对应的IP地址
- 虚拟机A 操作:
[root@svr7 named]# vim /var/named/tedu.cn.zone
$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
tedu.cn. NS svr7
svr7 A 10.10.0.55
www A 10.10.0.22
www A 10.10.0.23
www A 10.10.0.24
* A 10.10.0.21
ftp A 10.10.0.25
2.重启服务
[root@svr7 named]# systemctl restart named
-虚拟机B验证
[root@k8s-node2 ~]# nslookup wwww.tedu.cn #输入了4个w 还是解析了
Server: 10.10.0.10
Address: 10.10.0.10#53
Name: wwww.tedu.cn
Address: 10.10.0.21
[root@k8s-node2 ~]# ping www.tedu.cn #ping 会轮询 配置文件添加了多条规则
PING www.tedu.cn (10.10.0.22) 56(84) bytes of data.
^C
--- www.tedu.cn ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[root@k8s-node2 ~]# ping www.tedu.cn
PING www.tedu.cn (10.10.0.22) 56(84) bytes of data.
^C
--- www.tedu.cn ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[root@k8s-node2 ~]# ping www.tedu.cn
PING www.tedu.cn (10.10.0.23) 56(84) bytes of data.