?
Solved

DNS name not resolving in BIND

Posted on 2009-04-24
2
Medium Priority
?
439 Views
Last Modified: 2012-05-06
I have a BIND server running for multiple domains.  All of a sudden one of my hosted domains is not resolving, while all others are still working fine.  It is still current with my registrar and all the registrar information is correct.  

When I do an nslookup from my DNS server on that domain, it returns with:

[root@local_dns]# nslookup domain.com
Server: 127.0.0.1
Address: 127.0.0.1#53

*** Can't find domain.com: No answer


I've included my zone files below.............

## This is my domain.com.zone file##
; Zone definition for domain.com
$TTL 43200
 
@      IN         SOA        ns.domain.com. root.domain.com. (
                     2009042401          ; serial
                     4H                          ; refresh
                     1H                          ; retry
                     1W                         ; expire
                      1D )                       ; minimum
 
@                 IN                 NS         ns.domain.com.
@                 IN                 MX         10 spam.domain.com.
domain.com.     IN            TXT        "v=spf1 a mx ptr mx:mail.domain.com ip4:<my_ip_addr> -all"
mail.domain.com.   IN        TXT        "v=spf1 a -all"
 
                A           <ip_address>
ns            A           <ip_address_2>
www     CNAME   domain.com.
mail          A            <ip_address>
spam       A             <ip_address_3>
 
###############################################
 
#######This is the section of my domain definition in named.conf######
 
zone "domain.com" in {
      type master;
      file "domain.com.zone"
      allow-transfer { ip_addr_of_secondary DNS; };
};

Open in new window

0
Comment
Question by:bkesting
  • 2
2 Comments
 

Author Comment

by:bkesting
ID: 24226718
And when I do an nslookup for www.domain.com, I get:

Server: 127.0.0.1
Address: 127.0.0.1#53

www.domain.com       canonical name = domain.com.
0
 

Accepted Solution

by:
bkesting earned 0 total points
ID: 24229655
I replaced:

         A       <ip_address>

with:

@      A      <ip_address>

and now the nslookup of the base of domain.com works.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question