[Pdns-users] "host" command returning weird results. Anyone know what I'm doing wrong?

Nicholas Williams williamsn at bondware.com
Wed Jul 9 16:45:44 UTC 2008


I setup PowerDNS with a MySQL 5 backend on Centos 5 this morning. I put 
in the "test.com" example records that come in the PowerDNS user guide. 
When I perform a "host" query, as suggested in the guide, I get this:

$ host www.test.com localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

www.test.com has address 199.198.197.196
Host www.test.com not found: 2(SERVFAIL)
Host www.test.com not found: 2(SERVFAIL)

Likewise, when I query remotely, I get the same result:

$ host www.test.com dns1.bondware.com
Using domain server:
Name: dns1.bondware.com
Address: 66.18.125.148#53
Aliases:

www.test.com has address 199.198.197.196
Host www.test.com not found: 2(SERVFAIL)
Host www.test.com not found: 2(SERVFAIL)

However, when I perform a "dig", the results appear normal:

$ dig @localhost www.test.com

; <<>> DiG 9.3.4-P1 <<>> @localhost www.test.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41896
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.test.com.            IN    A

;; ANSWER SECTION:
www.test.com.        120    IN    A    199.198.197.196

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jul  9 11:43:15 2008
;; MSG SIZE  rcvd: 46

$ dig @dns1.bondware.com www.test.com

; <<>> DiG 9.3.4-P1 <<>> @dns1.bondware.com www.test.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37210
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.test.com.            IN    A

;; ANSWER SECTION:
www.test.com.        120    IN    A    199.198.197.196

;; Query time: 1 msec
;; SERVER: 66.18.125.148#53(66.18.125.148)
;; WHEN: Wed Jul  9 11:43:25 2008
;; MSG SIZE  rcvd: 46

I tend to think this is something I'm doing wrong, or perhaps a 
configuration setting I need to change, but I can't find anything in the 
guide about it. Anyone have any ideas?

Thanks,

Nick

-- 

*/Nicholas Williams/*
Associate Web Developer,
Bondware, Inc.

"An idea, I have. Share it with you, I will. Change the world, we will 
together."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20080709/3299b254/attachment.html>


More information about the Pdns-users mailing list