Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

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


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 @" from any machine on local network.

# dig @

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

;            IN      A

;; Query time: 0 msec
;; WHEN: Wed Nov 26 10:17:44 2008
;; MSG SIZE  rcvd: 36
# nslookup

** server can't find SERVFAIL

What am I doing wrong here?

Here are my configuration files;

# cat /etc/bind/zones/
// replace with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server      IN      SOA (
// Do not modify the following lines!

// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// = domain name      IN      NS          IN      MX     10

// Replace the IP address with the right IP addresses.
www                 IN      A
mail                IN      A
stargate            IN      A
galactica           IN      A
caprica             IN      A
pegasus             IN      A
celestra            IN      A
zimbra              IN      A
# 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 with your domain name
zone "" {
        type master;
        file "/etc/bind/zones/";

# 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 buna göre 97.168.192 olacak herhalde.
zone "" {
     type master;
     file "/etc/bind/zones/";
Thanks in advance for any/all suggestions/information...

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

Rep: Reputation: 41
Add this

@  IN ip_address ;the ip address you want to resolve to
Old 11-30-2008, 03:08 PM   #3
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: 69
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 03:09 PM. Reason: stupid smilies


bind, bind9, dns

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:31 AM
bind9: configuration: non-authoritative zone tilman1 Linux - Networking 3 05-11-2008 06:06 PM
DNS (bind9) on Ubuntu not working right Avatar Linux - Networking 9 01-07-2008 05:01 PM
dns configuration using Bind9 and ubuntu aljohn123 Ubuntu 0 11-13-2006 11:47 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:08 AM.

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