- 论坛徽章:
- 0
|
解决步骤,出现跟楼主一样的问题
原配置:
+---------------+------+------+---------------------+------+-------------+
| zone | host | type | data | view | mx_priority |
+---------------+------+------+---------------------+------+-------------+
| xxx.com | xxx.com. | MX | mail.xxx.com. | CNC | NULL |
| xxx.com | xxx.com. | MX | mail.xxx.com. | ANY | NULL |
+---------------+------+------+---------------------+------+-------------+
无法查询出mx记录:
dig @xxx.xxx.xxx.xxx xxx.com mx
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> @xxx.xxx.xxx.xxx xxx.com MX
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14321
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;xxx.com. IN MX
;; Query time: 9 msec
;; SERVER: xxx.xxx.xxx.xxx#53(xxx.xxx.xxx.xxx)
;; WHEN: Fri Jun 14 17:37:09 2013
;; MSG SIZE rcvd: 83
现配置:
+---------------+------+------+---------------------+------+-------------+
| zone | host | type | data | view | mx_priority |
+---------------+------+------+---------------------+------+-------------+
| xxx.com | @ | MX | mail.xxx.com. | CNC | 10 |
| xxx.com | @ | MX | mail.xxx.com. | ANY | 10 |
+---------------+------+------+---------------------+------+-------------+
粗心大意了,是因为mx_priority没有加权重值,host一般在bind+dlz模式下多为@,不排除也有host的写法跟mydns一样是域名的,记得域名后加点(.)
[root@localhost ~]# dig @xxx.xxx.xxx.xxx xxx.com mx
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> @xxx.xxx.xxx.xxx xxx.com mx
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58855
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;xxx.com. IN MX
;; ANSWER SECTION:
xxx.com. 19200 IN MX 10 mail.xxx.com.
;; AUTHORITY SECTION:
xxx.com. 19200 IN NS NS1.xxx.com.
xxx.com. 19200 IN NS NS2.xxx.com.
;; Query time: 10 msec
;; SERVER: xxx.xxx.xxx.xxx#53(xxx.xxx.xxx.xxx)
;; WHEN: Sat Jun 15 08:09:46 2013
;; MSG SIZE rcvd: 88
记录出现。OK |
|