Did you create a zone entry in named.conf and the associated zone file?
zone "example.ca" {
type master;
file "example.ca.db";
};
example.ca.db:
IN A 192.168.1.1
When you restart named, always look in the logs (/var/log/messages on most systems) to see if any zones got turfed. If you make a mistake, named will not load the zone, but will happily continue on with the next zone.
Does your forwarder work? eg can you nslookup cisco.com @localhost ? Is named bound to all the interfaces?
BTW, if you're just trying to get example.ca working for development, the fastest way is to edit your hosts file(s) and skip DNS entirely. DNS takes a few "oops" moments to understand, and is often best skipped if possible.
Sean
Could I ask for help configuring DNS?
I am trying to setup an webserver using Ubuntu 9.10 Server, Karmic Koala. I
have it setup in my home office behind a D-Link router. I installed DNS
server, LAMP, email server, and Tomcat. To get familiar with configuring
DNS, I attempted to simply setup a DNS as both a caching server and create a
master entry to point to a website on itself. I called the website
"example.ca". The D-Link router acts as a firewall so it shouldn't
propagate. But it isn't working, when I use "nslookup example.ca" the
response is "*** Can't find example.ca: No answer". When I try "ping
example.ca" the response is "unknown host example.ca". What did I do wrong?
I changed "/etc/resolv.conf" to have the IP address of my server instead of
the router or my ISP, although the domain and search are still my ISP. I
ensured the "forwarders" address in "named.conf.options" is my router. I did
restart the DNS service after each change. Bit it still isn't working; I can
lookup any address from the internet but my own server does not resolve. I
followed these instructions:
https://help.ubuntu.com/10.04/serverguide/C/dns-configuration.html
http://ulyssesonline.com/2007/11/07/how-to-setup-a-dns-server-in-ubuntu/
Thanks,
Rob Dyck
_______________________________________________
Roundtable mailing list
Roundtable@muug.mb.ca
http://www.muug.mb.ca/mailman/listinfo/roundtable