我目前使用 ubuntu+bind 配置的权威 dns,下面是我的 db.example.com 文件,目前域名 example.com 解析正常,但我需要让所有域名只要使用 ns1.example.com 和 ns2.example.com 的都解析到 www.example2.COM ( CNAME ),求大神帮忙看看。
$TTL 86400 $ORIGIN example.com. @ IN SOA ns1.example.com. hostmaster.example.com. ( 202108252 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 86400 ) ; Negative Cache TTL
;Name Server IN NS ns1.example.com. IN NS ns2.example.com.
;A Records ns1 IN A 222.222.222.222 ns2 IN A 111.111.111.111
;Cname Records www IN CNAME www.example2.COM. www2 IN CNAME www.example2.COM.
- IN CNAME www.example2.COM.