I am trying to set up my own DNS server, both for learning as well as for privacy. I installed Bind9 and tried to follow a few online tutorials, as well as the Linux Administration Handbook, but it still seems not to work. I set named.conf to listen on the localhost, and set it to be recursive. I then set resolv.conf to have only one nameserver which is 127.0.0.1.
I then tried to use it from my desktop and tried dig nyc.gov, as a site I had never been to before, I got the following resonse
> dig nyc.gov ; <<>> DiG 9.7.0-P1 <<>> nyc.gov ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 54429 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;nyc.gov. IN A ;; Query time: 14 msec ;; SERVER: 18.104.22.168#53(22.214.171.124) ;; WHEN: Sun Aug 1 02:07:09 2010 ;; MSG SIZE rcvd: 25
It seems it needs to be recursive, though I set Bind to be, and yes I did restart the daemon.
Any tips would be appreciated, or any further tutorials on the matter. I mainly want an alternative DNS server for my colleagues and I. Thank you.