I am trying to run point a domain at my pfsense server and have it run a DNS server which is authorative. So I installed TinyDNS.
Ok, so I setup a rule in pf. The rule is TCP/UDP. Source interface is WAN, source address is *, destination address is [PfSense's public WAN IP], destination port is 53.
Then, I proceeded to setting up TinyDNS. All I did here was enter my domain and such and then I added an A record with [Domain] as my domain and [Seperate WAN Server IP] as the destination IP.
Also, TinyDNS is binding to 127.0.0.1, but I've also tried binding to the router's public IP. (note the Router is the PfSense DNS server) Now, the results of dig
-bash-3.2$ dig DOMAIN.com ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.1 <<>> DOMAIN.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40365 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;DOMAIN.com. IN A ;; ANSWER SECTION: DOMAIN.com. 123 IN A ROUTER WAN IP ;; Query time: 0 msec ;; SERVER: 220.127.116.11#53(18.104.22.168) ;; WHEN: Tue Jan 5 19:38:52 2010 ;; MSG SIZE rcvd: 53
Instead of going to the IP I intend, it for whatever reason is going to the (PfSense) router IP. It's very strange cause I do not have an A record setup to point to my router, so how is this happening? Also, when I use the http://afraid.org DNS Auth Trace tool, the PFSense router returns an answer but is not authorative.
What am I doing wrong here?
I am getting this (with no lookups happening as far as I'm aware) in my TinyDNS logs
TinyDNS Server logs as of Tue Jan 5 21:15:34 UTC 2010 2010-01-05 21:15:18.525985500 :4010 wlan_str xmlrpc.php
(with that entry repeating)