Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 09-03-2010, 02:27 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 13

Rep: Reputation: 0
Arrow DNS server failure error " : not found 2 (SERVFAIL)

I have followed all the steps for configuring DNS on a fedora machinine, i have configured Cache and Master (primary)servers on the same machine. I haven't configured Slave. All testing commands are giving expected results but when i type 'host localhost' instead of giving me an IP address, Am getting the error " not found:2 (SERVFAIL)"

What could be the problem?


// named.conf
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
// See /usr/share/doc/bind*/sample/ for example named configuration files.

options {

listen-on port 53 {; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

logging {
channel default_debug {
file "data/";
severity dynamic;

zone "." IN {
type hint;
file "";

//zone "" IN {
// type master;
// file "";
// };

//zone "" IN {
// type master;
// file "bit.rev";

zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };

zone "" IN {
type master;
file "named.loopback";
allow-update { none; };

//include "/etc/named.rfc1912.zones";
Type :quit<Enter> to exit Vim

Last edited by dezio; 09-03-2010 at 04:26 AM.
Old 09-03-2010, 08:40 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,053
Blog Entries: 14

Rep: Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226
You don't show the contents of the zone file so the error may be there.

You also don't mention whether you verified that named is actually running.

Also just because DNS is running doesn't mean you're interrogating it. Have you set nsswitch.conf to do host lookups in DNS (or FILES and DNS)? Have you modified /etc/resolv.conf to have a nameserver entry for localhost (
Old 09-05-2010, 03:25 AM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

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
DNS Server answers SERVFAIL vikki Linux - Server 9 08-13-2009 04:38 AM
DNS SERVER WITH ERROR: "Server Can't Find : SERVFAIL" jcvalim Linux - Server 52 05-21-2009 03:18 AM
host *****.com not found: 2 (SERVFAIL Error Master900ve Linux - Server 3 02-28-2009 09:38 AM
DNS error : " file not found" rajat Linux - Server 2 04-26-2007 12:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 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