LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Setup DNS server on Ubuntu 7.04 Server edition using Bind 9 (http://www.linuxquestions.org/questions/linux-server-73/setup-dns-server-on-ubuntu-7-04-server-edition-using-bind-9-a-584946/)

breezey 09-15-2007 04:52 PM

Setup DNS server on Ubuntu 7.04 Server edition using Bind 9
 
I followed the tutorial I found here:

http://ubuntuforums.org/showthread.php?t=236093

to setup dns server on my Ubuntu 7.04 Server edition. But I got ANSWER:0 when I do dig mydomain and can't find mydomain when I do nslookup. Below is the result of both dig and nslookup. I would appreciate if anyone could point me to the problem and how to fix it. Thank you very much.

Code:

home@ubuntu:/$ dig mydomain

; <<>> DiG 9.3.4 <<>> mydomain
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47194
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.                      IN      A

;; AUTHORITY SECTION:
mydomain.              38400  IN      SOA    ns1.mydomain. admin.mydomain. 2006081401 28800 3600 604800 38400

;; Query time: 2 msec
;; SERVER: 192.168.1.109#53(192.168.1.109)
;; WHEN: Sun Sep 16 11:23:51 2007
;; MSG SIZE  rcvd: 72

home@ubuntu:/$ nslookup mydomain
Server:        192.168.1.109
Address:        192.168.1.109#53

*** Can't find mydomain: No answer


Micro420 09-16-2007 12:15 AM

Maybe post your BIND configuration?

soroccoheaven 09-16-2007 03:36 AM

run named-checkzone zone_name zone_file


All times are GMT -5. The time now is 11:44 AM.