Pls help to solve error log in /var/log/message related to DNS

Discussion in 'Server Operation' started by chobong, Aug 31, 2011.

  1. chobong

    chobong New Member

    Deal all,

    There are so many logs in my /etc/log/message related to DNS

    localhost named[19893]: client 127.0.0.1#53610: query (cache) 'myhostname/MX/IN' denied
    localhost named[19893]: client 127.0.0.1#55316: query (cache) 'hostname/AAAA/IN' denied
    Jul 31 04:21:58 localhost named[19893]: client 127.0.0.1#41130: query (cache) 'myhostname/AAAA/IN' denied
    Jul 31 04:21:58 localhost named[19893]: client 127.0.0.1#52272: query (cache) 'myhostname/AAAA/IN' denied
    Jul 31 04:21:58 localhost named[19893]: client 127.0.0.1#33580: query (cache) 'myhostname' denied
    Jul 31 04:21:58 localhost named[19893]: client 127.0.0.1#37168: query (cache) 'myhostname' denied
    ....

    when I used 'netstat -tap | grep dns' , it showed
    getnameinfo failed
    getnameinfo failed

    I am using Centos 5.6 64bit and bind 9.3.9
    Here is my name.conf

    options
    { listen-on-v6 {none;};
    directory "/var/named"; // the default
    dump-file "data/cache_dump.db";
    statistics-file "data/named_stats.txt";
    memstatistics-file "data/named_mem_stats.txt";
    dnssec-enable yes;
    recursion no;
    allow-notify {my static-ip-server; };
    allow-recursion {my static-ip-server; };
    allow-transfer {my static-ip-server; };
    version "DNS server";
    auth-nxdomain no;

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

    include "/etc/named.rfc1912.zones";
    include "/etc/named.root.hints";
    include "/etc/named.conf.local";
    include "/etc/rndc.key";

    Could you please help me to fix this problem?
    Thank you so much!
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Do you have working nameservers in your /etc/resolv.conf? Does
    Code:
    ping -c4 google.com
    work?
     
  3. chobong

    chobong New Member

    Thanks falko

    I have set DNS in /etc/resolv.conf, and now I don't see the error "getnameinfo failed" again. :)

    But there are still many logs in /var/log/message, how can I disable them? Or can I ignore them?

    Pls help me. Thank you!
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What exactly is in /var/log/messages now?
     
  5. chobong

    chobong New Member

    There are many lines below. Can I ignore them?

    Jul 31 04:21:58 localhost named[19893]: client 127.0.0.1#41130: query (cache) 'myhostname/AAAA/IN' denied
    Jul 31 04:21:58 localhost named[19893]: client 127.0.0.1#52272: query (cache) 'myhostname/AAAA/IN' denied
    Jul 31 04:21:58 localhost named[19893]: client 127.0.0.1#33580: query (cache) 'myhostname/AAAA/IN' denied
    Jul 31 04:21:58 localhost named[19893]: client 127.0.0.1#37168: query (cache) 'myhostname/AAAA/IN' denied
    Sep 6 16:22:01 localhost named[30731]: client 127.0.0.1#42465: query (cache) 'myhostname/A/IN' denied
    Sep 6 16:22:01 localhost named[30731]: client 127.0.0.1#51950: query (cache) 'myhostname/A/IN' denied
    Sep 6 16:22:01 localhost named[30731]: client 127.0.0.1#48921: query (cache) 'myhostname/A/IN' denied
    Sep 6 16:22:01 localhost named[30731]: client 127.0.0.1#43249: query (cache) 'myhostname/A/IN' denied
    Sep 6 16:22:01 localhost named[30731]: client 127.0.0.1#36250: query (cache) 'myhostname/MX/IN' denied
    Sep 6 16:22:01 localhost named[30731]: client 127.0.0.1#34525: query (cache) 'myhostname/MX/IN' denied
    Sep 6 16:22:01 localhost named[30731]: client 127.0.0.1#51420: query (cache) 'myhostname/MX/IN' denied
    Sep 6 16:22:01 localhost named[30731]: client 127.0.0.1#36697: query (cache) 'myhostname/MX/IN' denied
    ....
     
    Last edited: Sep 6, 2011
  6. falko

    falko Super Moderator ISPConfig Developer

    No. Can you add 127.0.0.1 to your named.conf?

    Code:
    options
    { listen-on-v6 {none;};
    directory "/var/named"; // the default
    dump-file "data/cache_dump.db";
    statistics-file "data/named_stats.txt";
    memstatistics-file "data/named_mem_stats.txt";
    dnssec-enable yes;
    recursion no;
    allow-notify {my static-ip-server; [COLOR="Red"]127.0.0.1;[/COLOR]};
    allow-recursion {my static-ip-server;  [COLOR="Red"]127.0.0.1;[/COLOR]};
    allow-transfer {my static-ip-server;  [COLOR="Red"]127.0.0.1;[/COLOR]};
    version "DNS server";
    auth-nxdomain no;
    
    };
     

Share This Page