Einzelnen Beitrag anzeigen
Alt 12.03.2003, 22:04   #7
Ewi
Jr. Member
 
Registriert seit: 31.10.1999
Beiträge: 71


Standard

Hier einmal die
named.conf
-----------------

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//

options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {192.168.123.1;};
auth-nxdomain no; # conform to RFC1035
};
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
// add entries for other zones below here
zone "private.net" {
type master;
file "/etc/bind/db.private.net";
allow-update {192.168.123.1;};
};
zone "123.168.123.1 {
type master;
file "/etc/bind/db.192.168.123";
allow-update {192.168.123.1;};
};

Dann die Zonendateien
db.192.168.123
----------------------
$TTL 3h
123.168.192.in-addr.arpa. IN SOA famserv.private.net.
root.localhost. (
2003031201 ; Seriennummer
3h ; refresh
1h ; retry
1w ; expire
1h ; minimum
)
; Nameserver:
123.168.192.in-addr.arpa. IN NS famserv.private.net.
;Normale Adressen:
1.123.168.192.in-addr.arpa. IN PTR famserv.private.net.

db.private.net
---------------
$TTL 3h
private.net. IN SOA famserv.private.net. root.localhost. (
2003031201 ; Seriennummer
3h ; refresh
1h ; retry
1w ; expire
1h ; minimum
)
; Nameserver
private.net. IN NS famserv.private.net.
; Namen:
localhost.private.net. IN A 127.0.0.1
famserv.private.net. IN A 192.168.123.1
; Alternative Namen:
router.private.net. IN CNAME famserv.private.net.

Weiters die
-----------------------------------------
# dhcpd.conf
# option definitions common to all supported networks...
option domain-name "private.net";
option domain-name-servers 192.168.123.1;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
# server-name "famserv";

subnet 192.168.123.0 netmask 255.255.255.0 {
range 192.168.123.200 192.168.123.250;
option broadcast-address 192.168.123.255;
option routers 192.168.123.1; }

--------------------------------------------------
# dhcp-dns.conf
# edit these for your own system

# this conf file is 'required()' into perl scripts so
# perl syntax applies.

$DDNSHOME="/var/lib/dhcp-dns";
$DHCPD="/var/lib/dhcp/dhcpd.leases";
$DOMAIN="private.net";
$NSUPDATE="/usr/bin/nsupdate";
----------------------------------------------------
Wuerde mich freuen wenn Ihr mir helfen koenntet.
Wie kann ich sehen ob der DNS überhaupt gestartete ist ?
Hab gerade versucht /etc/init.d/named start und bekomme als Antwort no such file or directory.

erwin
Ewi ist offline   Mit Zitat antworten