I have setup powerdns server, I'm satisfied with basic functionalities.
users in my domain are unable to access example.com unless they use www.example.com
when I use host command
host example.com 127.0.0.1
I get
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.6 <<>> @localhost example.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45277
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;example.com.INA
;; AUTHORITY SECTION:
example.com.300INSOAdns.example.com. hostmaster.example.com. 1 86400 86400 604800 300
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 29 11:06:15 2013
;; MSG SIZE rcvd: 80
the query doesn't return server ip only when I use www.example.com or ftp.example.com is there is a work around for this?
Thanks
Best Answer
OKay, I have found a solution, if you are using a nice UI such as (PowerDNS Webinterface) to manage your powerDNS server, you need to create an "empty" A record pointing to your IP address
example