[Home | Disclaimer | Previous | Content | Next | Contact me]

Named

Accessing shares makes Win clients query all kind of NETBIOS names sometimes using the configured DNS server for this purpose. When your DNS server is outside your LAN this will lead to unreasonable dialouts (internet access). So we decided to have a forwarding and caching only name daemon on our server. As we have a complete /etc/hosts on our server the NBNS requests can be resolved and do not lead to dialouts.

Adjust /etc/resolv.conf  to make our server query our named for names. Named will forward the request to the provider’s DNS when not cached otherwise resolve immediately. Our /etc/resolv.conf looks like:

domain domain1
nameserver 192.168.0.10
search domain1

Our /etc/named.conf  looks like the following. Please remember to adjust the IP addresses of the provider’s name servers (in our example 194.0.0.1 and 194.0.0.2) to your needs.

# Copyright (c) 2001 SuSE GmbH Nuernberg, Germany
#
# Author: Frank Bodammer <feedback@suse.de>
#
# /etc/named.conf
#
# This is a sample configuration file for the name server BIND8.
# It works as a caching only name server without modification.
#
# A sample configuration for setting up your own domain can be
# found in /usr/share/doc/packages/bind8/sample-config.
#
# A description of all available options can be found in
# /usr/share/doc/packages/bind8/html/options.html

#caching only nameserver


options {

    # The directory statement defines the name server's
    # working directory

    directory "/var/named";

    # The forwarders record contains a list of servers to
    # which queries should be forwarded. Enable this line and
    # modify the IP-address to your provider's name server.
    # Up to three servers may be listed.

    forwarders {
     194.0.0.1;
     194.0.0.2;
    };
    forward only;

};

[Home | Disclaimer | Previous | Content | Next | Contact me]