I have trouble with dns server at CentOS. I have domain cloudauth.me, I have bought it from godaddy.com.

I added glue record to this domain . I configured nameservers with ns1.cloudauth.me and ns2.cloudauth.me . And IP address of this subdomains is which I configured at godaddy. is ip of my VPS.

Now I want to configure dns server at CentOS.

My configuration is this /etc/named.conf

// 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;
allow-recursion {;;};

    query-source address * port 53;

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

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

    managed-keys-directory "/var/named/dynamic";

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;

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

zone "cloudauth.me" {
type master;
file "/var/named/cloudauth.me.hosts";

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

And domain zone file is this . /var/named/cloudauth.me.hosts

$ttl 38400

@                 IN SOA          ns1.cloudauth.me. ns2.cloudauth.me. (
100     ; serial
1H      ; refresh
1M      ; retry
1W      ; expiry
1D)     ; minimum

cloudauth.me.      86400   IN      A

cloudauth.me.      86400   IN      NS      ns1.cloudauth.me.

cloudauth.me.      86400   IN      NS      ns2.cloudauth.me.

ns1  86400   IN      A

ns2  86400   IN      A

www      86400   IN      A

The problem is domain cloudauth.me not working . I have checked many nslookup servers . my domain cannot resolved . What is wrong in my configuration?

  • As an aside, having "two" nameservers that are hosted from the same BIND instance is somewhat missing the point. – nickgrim Feb 6 '13 at 10:13
  • Unless you're expecting to receive email at ns2@cloudauth.me, I don't think your SOA is correct. – nickgrim Feb 6 '13 at 10:16
  • dns.squish.net just now found your glue records ok, but gives an error of "The server refused our query". – nickgrim Feb 6 '13 at 10:18
  • Have you checked your firewall? – mgorven Feb 6 '13 at 19:57
  • I have found problem. tank you – Taleh Ibrahimli Feb 14 '13 at 11:20

I have found issue . issue is at this line

allow-query     { localhost; };

For remote access to binding server , this line must be fallowing

allow-query     { any; };

This replacement solved this problem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.