FYI...
If you cannot read the information below, click here http://post.oreilly.com/rd/9z1ze89han7bsf5df28tv1mjs2phsumtlq1maq2g3oo.
O'Reilly Logo http://post.oreilly.com/rd/9z1zhq8sel6dflerhdc2metot3g99ghue3hn1cikd68
Free to Choose Ebook Deal of the Day -- Only $9.99 http://post.oreilly.com/rd/9z1zv0uulgpg6avqunv9dakf8c2jifqi1g2rle68028
eBook Formats: Mobi, APK, PDF, and ePub http://post.oreilly.com/rd/9z1zukl5obmkl0ti43qhggiok0srar9l9hf4nld5u00
**Our Ebook Deal of the Day is so popular, we want to make sure you know about it, and give you the chance to choose.
*Download in 4 DRM-free formats:* PDF, .epub, Kindle-compatible .mobi, and Android .apk. Learn more. http://post.oreilly.com/rd/9z1zm9qle8mfujf1lmbi8lotsu74kof6b4b2492495g
Only $9.99. Choose any O'Reilly ebook from our list of over 2,000 titles. (Microsoft Press titles are excluded from this offer.)
Buy Now & Save http://post.oreilly.com/rd/9z1ziblpurf0ttcmhabgbubhum5cuqmgi2s22722ri0 *Enter code FAVFA in the O'Reilly cart.*
One Day Only: 5/21/2010
Spreading the knowledge of innovators http://post.oreilly.com/rd/9z1z40n6s0h26c1fpdi3sdt6eelmc47ttgeh5j9isf8
oreilly.com http://post.oreilly.com/rd/9z1z2klcm2qhiphheh3f35eftu7evtmm318b7g86aeo
You are receiving this email because you are a User Group contact with O'Reilly Media. Forward this announcement http://post.oreilly.com/f2f/9z1zd7bnvraib167c3gd200ug051pbttbkqa8gq52vo. If you would like to stop receiving these newsletters or announcements from O'Reilly, send an email to marsee@oreilly.com mailto:marsee@oreilly.com.
O'Reilly Media, Inc. 1005 Gravenstein Highway North, Sebastopol, CA 95472 (707) 827-7000
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
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
On Mon, May 31, 2010 at 5:49 PM, Robert Dyck rbdyck2@shaw.ca wrote:
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
Thanks Sean. For some reason my server does respond to www.example.ca but not to example.ca
Of course the point is to learn how to configure DNS, and to start configuring this server for use on the web.
Rob Dyck
If it answers for www.example.ca but not example.ca, then you haven't configured your zone for the latter:
www IN A 192.168.1.1 ; www.example.ca IN A 192.168.1.1 ; example.ca foo.bar IN A 192.168.1.1 ; foo.bar.example.ca
All the names on the left hand side are relative to the domain, including "nothing" which means the domain itself.
Sean
On Mon, May 31, 2010 at 8:25 PM, Robert Dyck rbdyck2@shaw.ca wrote:
Thanks Sean. For some reason my server does respond to www.example.ca but not to example.ca
Of course the point is to learn how to configure DNS, and to start configuring this server for use on the web.
Rob Dyck
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable