LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2008, 04:25 AM   #1
havan
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Question Why my DNS configuration is not working?


Hello,

I've read many how-to's about Bind configuration in last two days. I've installed and configured bind but I can't get correct answer from it.

I get the following answer when I "dig somedomain.net @192.168.97.100" from any machine on local network.

Code:
# dig somedomain.net @192.168.97.100

; <<>> DiG 9.4.2-P2 <<>> somedomain.net @192.168.97.100
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 63224
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;somedomain.net.            IN      A

;; Query time: 0 msec
;; SERVER: 192.168.97.100#53(192.168.97.100)
;; WHEN: Wed Nov 26 10:17:44 2008
;; MSG SIZE  rcvd: 36
Code:
# nslookup somedomain.net.
Server:         192.168.97.100
Address:        192.168.97.100#53

** server can't find somedomain.net: SERVFAIL

What am I doing wrong here?

Here are my configuration files;

Code:
# cat /etc/bind/zones/somedomain.net.db
// replace example.com with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
somedomain.net.      IN      SOA     stargate.somedomain.net. admin.somedomain.net. (
// Do not modify the following lines!
                                                        2006081401
                                                        28800
                                                        3600
                                                        604800
                                                        38400
 )

// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// example.com = domain name
somedomain.net.      IN      NS              stargate.somedomain.net.
#somedomain.net.      IN      MX     10       mail.somedomain.net.

// Replace the IP address with the right IP addresses.
www                 IN      A       192.168.97.112
mail                IN      A       192.168.97.115
stargate            IN      A       192.168.97.100
galactica           IN      A       192.168.97.112
caprica             IN      A       192.168.97.113
pegasus             IN      A       192.168.97.114
celestra            IN      A       192.168.97.116
zimbra              IN      A       192.168.97.115
Code:
# cat /etc/bind/named.conf.local
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

# This is the zone definition. replace example.com with your domain name
zone "somedomain.net" {
        type master;
        file "/etc/bind/zones/somedomain.net.db";
        };

# This is the zone definition for reverse DNS. replace 0.168.192 with your network address in reverse notation - e.g my network address is 192.168.0
# Bizim adres 192.168.97.100 buna göre 97.168.192 olacak herhalde.
zone "97.168.192.in-addr.arpa" {
     type master;
     file "/etc/bind/zones/rev.97.168.192.in-addr.arpa";
};
Thanks in advance for any/all suggestions/information...

Last edited by havan; 11-26-2008 at 04:55 AM.
 
Old 11-27-2008, 02:21 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Add this

Code:
@  IN ip_address ;the ip address you want somedomain.net. to resolve to
 
Old 11-30-2008, 02:08 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
While comments in BIND configuration files (such as named.conf) may be in C (/* */), C++ (//), or shell (#) format, comments in the actual zone file need to begin with a semi-colon (;). I'm betting if you check your logs you will find a whole bunch of syntax errors with your zone file, which would cause it to not load correctly.

Last edited by chort; 11-30-2008 at 02:09 PM. Reason: stupid smilies
 
  


Reply

Tags
bind, bind9, dns



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UBUNTU bind9 problem xokaido Linux - Server 17 07-28-2008 02:31 AM
bind9: configuration: non-authoritative zone tilman1 Linux - Networking 3 05-11-2008 05:06 PM
DNS (bind9) on Ubuntu not working right Avatar Linux - Networking 9 01-07-2008 04:01 PM
dns configuration using Bind9 and ubuntu aljohn123 Ubuntu 0 11-13-2006 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration