Hi All:
For whatever reason I can not get dns caching to work on any of my
centos boxes. Running Centos 5 and 6. Any thoughts on why these will
not run? The services start fine but when telling to perform a dig
using itself as the resolver the queries fail (See below).
Any help would be appreciated.
Thanks,
Ed
[root at qmail ~]# ps -aux | grep pdns-recursor
Warning: bad syntax, perhaps a bogus '-'? See
/usr/share/doc/procps-3.2.7/FAQ
root 7908 0.0 0.1 61208 568 pts/2 R+ 11:07 0:00 grep
pdns-recursor
[root at qmail ~]#
[root at qmail ~]#
[root at qmail ~]#
[root at qmail ~]#
[root at qmail ~]# dig mx blm.gov @127.0.0.1
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> mx
blm.gov @127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 4634
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;blm.gov. IN MX
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Feb 8 11:08:04 2013
;; MSG SIZE rcvd: 25
[root at qmail ~]# service pdns-recursor stop
Stopping pdns-recursor: [ OK ]
[root at qmail ~]#
[root at qmail ~]#
[root at qmail ~]#
[root at qmail ~]#
[root at qmail ~]# service named start
Starting named: [ OK ]
[root at qmail ~]#
[root at qmail ~]#
[root at qmail ~]#
[root at qmail ~]# dig mx teichert.com @127.0.0.1
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> mx
teichert.com
@127.0.0.1
;; global options: printcmd
;; connection timed out; no servers could be reached
[root at qmail ~]# *
*[root at qmail ~]# dig mx teichert.com @192.168.1.6
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> mx
teichert.com
@192.168.1.6
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28537
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;teichert.com. IN MX
;; ANSWER SECTION:
teichert.com. 3600 IN MX 10 mailgw4.ppt.questsys.com.
teichert.com. 3600 IN MX 10 mailgw1.ppt.questsys.com.
teichert.com. 3600 IN MX 10 mailgw2.ppt.questsys.com.
teichert.com. 3600 IN MX 10 mailgw3.ppt.questsys.com.
;; ADDITIONAL SECTION:
mailgw4.ppt.questsys.com. 3600 IN A 208.67.178.51
;; Query time: 125 msec
;; SERVER: 192.168.1.6#53(192.168.1.6)
;; WHEN: Fri Feb 8 11:12:20 2013
;; MSG SIZE rcvd: 155
[root at qmail ~]#
[root at qmail ~]# dig mx blm.gov @192.168.1.6
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> mx
blm.gov @192.168.1.6
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63254
;; flags: qr aa; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 8
;; QUESTION SECTION:
;blm.gov. IN MX
;; ANSWER SECTION:
blm.gov. 300 IN MX 5 mail4.blm.gov.
blm.gov. 300 IN MX 5 mail5.blm.gov.
;; AUTHORITY SECTION:
blm.gov. 86400 IN NS blmdns2.blm.gov.
blm.gov. 86400 IN NS blmdns1.blm.gov.
;; ADDITIONAL SECTION:
mail4.blm.gov. 600 IN A 204.124.92.27
mail4.blm.gov. 600 IN AAAA 2001:49c8:8004:20fc::92:27
mail5.blm.gov. 600 IN A 204.124.92.28
mail5.blm.gov. 600 IN AAAA 2001:49c8:8004:20fc::92:28
blmdns1.blm.gov. 86400 IN A 204.124.92.8
blmdns1.blm.gov. 86400 IN AAAA 2001:49c8:8004:20fc::92:8
blmdns2.blm.gov. 86400 IN A 204.124.93.8
blmdns2.blm.gov. 86400 IN AAAA 2001:49c8:8004:20fc::93:8
;; Query time: 78 msec
;; SERVER: 192.168.1.6#53(192.168.1.6)
;; WHEN: Fri Feb 8 11:13:01 2013
;; MSG SIZE rcvd: 289*
*