Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 459 — #485
i
i
i
i
i
i
i
i
21
Linux in the Network
in the documentation as /usr/share/doc/packages/bind/sample-
config.
However, do not set up any official domains until assigned one by the re-
sponsible institution. Even if you have your own domain and it is managed
by the provider, you are better off not to use it, as BIND would otherwise
not forward any more requests for this domain. The provider’s web server,
for example, would not be accessible for this domain.
To start the name server, enter the command rcnamed start as root.
If “done” appears to the right in green, named, as the name server pro-
cess is called, has been started successfully. Test the name server immedi-
ately on the local system with the host or dig programs, which should
return localhost as the default server with the address 127.0.0.1. If
this is not the case, /etc/resolv.conf probably contains an incorrect
name server entry or the file does not exist at all. For the first test, enter
host 127.0.0.1, which should always work. If you get an error mes-
sage, use rcnamed status to see whether the server is actually running.
If the name server does not start or behaves in an unexpected way, you can
usually find the cause in the log file /var/log/messages.
To use the name server of the provider or one already running on your net-
work as the forwarder, enter the corresponding IP address or addresses in
the options section under forwarders. The addresses included in Ex-
ample 21.10 are just examples. Adjust these entries according to your own
setup.
Example 21.10: Forwarding Options in named.conf
options {
directory "/var/lib/named";
forwarders { 10.11.12.13; 10.11.12.14; };
listen-on { 127.0.0.1; 192.168.0.99; };
allow-query { 127/8; 192.168.0/24; };
notify no;
};
The options entry is followed by entries for the zone, for localhost,
0.0.127.in-addr.arpa, and the type hint entry under “.”, which
should always be present. The corresponding files do not need to be mod-
ified and should work as is. Also make sure that each entry is closed with
a “;” and that the curly braces are in the correct places. After changing the
configuration file /etc/named.conf or the zone files, tell BIND to reread
them with rcnamed reload. Achieve the same by stopping and restarting
the name server with rcnamed restart. Stop the server at any time by
entering rcnamed stop.
459SUSE LINUX Enterprise Server










