Remove Logging of lame server from BIND

Remove the annoying lame server message from BIND that appears on a daily basis in /var/log/messages.

Lame server
A lame server is when the NS record for a domain specifies a server that is not authoritative for the domain. For example, the NS record for http://www.domain.com may list ns1.domain.com as one of its nameserver; however, if you actually query ns1.domain.com, the nameserver does not answer as an authoritative server.

Turning off logging of lame server
Add the following lines to your /etc/named.conf:
logging {
category lame-servers { null; };
};

This just prevents you from seeing the messages. You can also configure your BIND so that it only answers for domains that it is the authoritative server for by adding the following lines to your /etc/named.conf

acl localip { 127.0.0.1; aaa.bbb.ccc.ddd; };
// replace aaa.bbb.ccc.ddd with your server’s IP address. if you have multiple IP addresses, you should add them all, separated by semi-colons

options {
allow-transfer {
localip;
};
allow-recursion {
localip;
};
}

Once you are done making modifications, restart named and your lame server messages should go away!

Advertisements

3 thoughts on “Remove Logging of lame server from BIND

  1. hello there and thank you for your info – I have
    certainly picked up something new from right here.
    I did however expertise several technical issues using
    this web site, since I experienced to reload the site many times previous to I could get it to
    load properly. I had been wondering if your web host is OK?
    Not that I’m complaining, but sluggish loading instances times will sometimes affect your placement in google and could damage
    your quality score if advertising and marketing
    with Adwords. Well I am adding this RSS to my e-mail and can look out for much more of your respective fascinating content.
    Ensure that you update this again very soon.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s