这是我当前的DNS example.com.db区域文件.我按照教程.它有效,因为当我通过resolve.conf从另一台服务器指向这个DNS时,当我执行“ping example.com”时,它实际上会将我转发到正确的IP.
; ; BIND data file for example.com ; $TTL 604800 @ IN SOA example.com. info.example.com. ( 2007011501 ; Serial 7200 ; Refresh 120 ; Retry 2419200 ; Expire 604800) ; Default TTL ; @ IN NS ns1.example.com. @ IN NS ns2.example.com. example.com. IN MX 10 mail.example.com. example.com. IN A 192.168.254.1 www IN CNAME example.com. mail IN A 192.168.254.1 ftp IN CNAME example.com. example.com. IN TXT "v=spf1 ip4:192.168.254.1 a mx ~all" mail IN TXT "v=spf1 a -all"
马上,
ping example.com....goes to 192.168.254.1. That's great!!! it works!
我的问题是 – 我怎么能添加一些东西做这个文件,以便当我的其他服务器:
ping dbserver1....goes to 44.245.66.222 ping cacheserver1 ....goes to 38.221.44.555
我想将它用作我的机器的通用主机文件.