BIND CHROOT CentOS problem

Discussion in 'Installation/Configuration' started by bentman78, Apr 30, 2009.

  1. bentman78

    bentman78 New Member

    Hello all,
    I'm having a problem with a chroot bind config from this site

    Basically I have my in /var/named/chroot/etc and it looks like this":
    // we include the rndckey (copy-paste from rndc.key created earlier)

    key "rndckey" {
    algorithm hmac-md5;
    secret "wouldn't you like to know;

    controls {
    inet port 953 allow {; } keys { "rndckey"; };
    #inet allow { any; } keys { "rndckey"; };

    options {
    directory "/var/named";
    pid-file "/var/run/named/";

    recursion yes;

    allow-recursion {;;

    // these are the opendns servers (optional)
    forwarders {;;

    listen-on {;;

    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    #query-source address * port 53;

    // so people can't try to guess what version you're running
    version "REFUSED";

    allow-query {;;

    server {
    keys { rndckey; };

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

    // we assume we have a slave dns server with the IP
    #zone "" IN {
    # type master;
    # file "data/";
    # allow-update { none; };
    # allow-transfer {; };
    # };

    My zone files look like so in /var/named/chroot/var/named/data/

    $ttl 38400 IN SOA (
    200904291437 ; Serial
    10800 ; Refresh after 3 hours
    3600 ; Retry after 1 hour
    604800 ; Expire after 1 week
    86400 ) ; Minimum TTL of 1 day IN NS IN MX 1 IN A IN A IN A IN A IN CNAME

    My problem is with the rndc status command it doesn't show any zones listed.
    [[email protected] data]# rndc status
    number of zones: 0
    debug level: 0
    xfers running: 0
    xfers deferred: 0
    soa queries in progress: 0
    query logging is OFF
    recursive clients: 0/1000
    tcp clients: 0/100
    server is up and running

    Bind is working and the process is there, doing ps aucx | grep named shows the PID.

    Is there something I'm missing? I've looked over the conf and can't find a thing. Also, no errors in /var/log/messages.

    Also, when I query my domains using nslookup I can't get a response. I can query sites like google, howtoforge..etc..etc

    IT seems my zone files aren't loading? But then again I can't tell because I have no errors in the logs.

    Thanks in advance, any help is appreciated, I'm pulling my hair out.
  2. bentman78

    bentman78 New Member

    I figured it out.

Share This Page