Re: Problem on installing/config bind - DNS

This is a discussion on Re: Problem on installing/config bind - DNS ; --- "Jeremy C. Reed" wrote: > On Tue, 28 Oct 2008, Stephen Liu wrote: > > > # /usr/local/bind/sbin/named -u named -t /usr/local/bind -c > > /etc/named.conf > > No printout > > Start it with -g switch also to ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Re: Problem on installing/config bind

  1. Re: Problem on installing/config bind


    --- "Jeremy C. Reed" wrote:

    > On Tue, 28 Oct 2008, Stephen Liu wrote:
    >
    > > # /usr/local/bind/sbin/named -u named -t /usr/local/bind -c
    > > /etc/named.conf
    > > No printout

    >
    > Start it with -g switch also to "Run the server in the foreground and
    >
    > force all logging to stderr." Or look in the log file to see what
    > happened.
    >
    > That may give you better clues on where the problem is.



    Hi Jeremy,


    Debian Etch


    Further to my last posting I found the cause of the problem.


    # /usr/local/bind/sbin/named -u named -t /usr/local/bind -c
    /etc/named.conf -g
    28-Oct-2008 05:20:24.545 starting BIND 9.5.0 -u named -t
    /usr/local/bind -c /etc/named.conf -g
    28-Oct-2008 05:20:24.547 loading configuration from '/etc/named.conf'
    28-Oct-2008 05:20:24.548 listening on IPv4 interface lo, 127.0.0.1#53
    28-Oct-2008 05:20:24.549 listening on IPv4 interface eth0,
    192.168.0.203#53
    28-Oct-2008 05:20:24.549 could not configure root hints from '
    /etc/named.root': file not found
    28-Oct-2008 05:20:24.549 loading configuration: file not found
    28-Oct-2008 05:20:24.549 exiting (due to fatal error)
    * end *


    # cat named.conf
    options {
    directory "/namedb";
    version "I do not give any version info";
    pid-file "/var/run/named.pid";
    allow-transfer { none ;};
    };

    zone "." IN {
    type hint;
    file " /etc/named.root";
    };
    * end *


    Changing the line;
    file " /etc/named.root";

    to;
    file "named.root";


    # /usr/local/bind/sbin/named -u named -t /usr/local/bind -c
    /etc/named.conf -g
    28-Oct-2008 05:01:30.081 starting BIND 9.5.0 -u named -t
    /usr/local/bind -c /etc/named.conf -g
    28-Oct-2008 05:01:30.083 loading configuration from '/etc/named.conf'
    28-Oct-2008 05:01:30.084 listening on IPv4 interface lo, 127.0.0.1#53
    28-Oct-2008 05:01:30.085 listening on IPv4 interface eth0,
    192.168.0.203#53
    28-Oct-2008 05:01:30.085 could not configure root hints from
    'named.root': file not found
    28-Oct-2008 05:01:30.085 loading configuration: file not found
    28-Oct-2008 05:01:30.085 exiting (due to fatal error)
    * end *


    Still the same.


    Whether it is necessary to put the full path of "/named.root"? If YES,
    what will be the full path?


    On which file specifies ROOTDIR? TIA


    B.R.
    Stephen L

    Send instant messages to your online friends http://uk.messenger.yahoo.com


  2. Re: Problem on installing/config bind

    In article , Stephen Liu
    wrote:

    > # /usr/local/bind/sbin/named -u named -t /usr/local/bind -c
    > /etc/named.conf -g
    > 28-Oct-2008 05:20:24.545 starting BIND 9.5.0 -u named -t
    > /usr/local/bind -c /etc/named.conf -g
    > 28-Oct-2008 05:20:24.547 loading configuration from '/etc/named.conf'
    > 28-Oct-2008 05:20:24.548 listening on IPv4 interface lo, 127.0.0.1#53
    > 28-Oct-2008 05:20:24.549 listening on IPv4 interface eth0,
    > 192.168.0.203#53
    > 28-Oct-2008 05:20:24.549 could not configure root hints from '
    > /etc/named.root': file not found
    > 28-Oct-2008 05:20:24.549 loading configuration: file not found
    > 28-Oct-2008 05:20:24.549 exiting (due to fatal error)
    > * end *
    >
    >
    > # cat named.conf
    > options {
    > directory "/namedb";
    > version "I do not give any version info";
    > pid-file "/var/run/named.pid";
    > allow-transfer { none ;};
    > };
    >
    > zone "." IN {
    > type hint;
    > file " /etc/named.root";
    > };
    > * end *
    >
    >


    > Changing the line;
    > file " /etc/named.root";
    >
    > to;
    > file "named.root";


    Why did you write /etc/named.root if the file isn't really in /etc?

    > Whether it is necessary to put the full path of "/named.root"?


    Whatever you want. Any files without a full path will be resolved
    relative to the directory you specified in the "directory" option.

    > If YES,
    > what will be the full path?


    In your case, it apparently should be /namedb/named.root.

    --
    Barry Margolin, barmar@alum.mit.edu
    Arlington, MA
    *** PLEASE don't copy me on replies, I'll read them in the group ***


+ Reply to Thread