Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st August 2011, 04:41
chobong chobong is offline
Junior Member
 
Join Date: Aug 2011
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Pls help to solve error log in /var/log/message related to DNS

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!
Reply With Quote
Sponsored Links
  #2  
Old 31st August 2011, 11:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
when I used 'netstat -tap | grep dns' , it showed
getnameinfo failed
getnameinfo failed
Do you have working nameservers in your /etc/resolv.conf? Does
Code:
ping -c4 google.com
work?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
chobong (1st September 2011)
  #3  
Old 1st September 2011, 05:34
chobong chobong is offline
Junior Member
 
Join Date: Aug 2011
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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!
Reply With Quote
  #4  
Old 1st September 2011, 19:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by chobong View Post
But there are still many logs in /var/log/message, how can I disable them? Or can I ignore them?
What exactly is in /var/log/messages now?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
chobong (6th September 2011)
  #5  
Old 6th September 2011, 05:56
chobong chobong is offline
Junior Member
 
Join Date: Aug 2011
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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 by chobong; 6th September 2011 at 05:59.
Reply With Quote
  #6  
Old 6th September 2011, 11:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

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; 127.0.0.1;};
allow-recursion {my static-ip-server;  127.0.0.1;};
allow-transfer {my static-ip-server;  127.0.0.1;};
version "DNS server";
auth-nxdomain no;

};
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS data from Standalone servers to Primary DNS server SamTzu Tips/Tricks/Mods 7 15th November 2009 13:38
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 19:51
Google Apps dayjahone General 19 29th March 2008 17:25
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34


All times are GMT +2. The time now is 03:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.