A bind telepítése:
sudo apt-get install bind9 dnsutils
Telepítés után automatikusan elindul a szerver, ezért elöszőr gondoskodjunk a leállításárál.
sudo /etc/init.d/bind9 stop
A
named.conf tartalma (
Letőlthetö itt.):
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind/README.Debian for information on the
// structure of BIND configuration files in Debian for BIND versions 8.2.1
// and later, *BEFORE* you customize this configuration file.
options {
directory "/var/cache/bind";
forwarders {
(külső dns 1);
(külső dns 2);
};
listen-on port 53 {
127.0.0.1;
10.100.40.1;
};
};
// reduce log verbosity on issues outside our control
logging {
category lame-servers { null; };
// category cname { null; };
};
// 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 "sajatnet.hu" {
type master;
file "/etc/bind/db.sajatnet";
};
zone "100.10.in-addr.arpa" {
type master;
file "/etc/bind/db.100.10";
};
A
db.sajatnet tartalma(
Letőlthetö itt.):
$TTL 86400
@ IN SOA gepneve.sajatnet.hu. root.gepneve.sajatnet.hu. (
20090318 ; Serial
28800 ; Refresh
7200 ; Retry
604800 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS gepneve.sajatnet.hu.
;-------------------------------------------------------;
gepneve IN A 10.100.40.1 ;
@ IN MX 10 gepneve.sajatnet.hu. ;
ns IN CNAME gepneve ;
www IN CNAME gepneve ;
ftp IN CNAME gepneve ;
mail IN CNAME gepneve ;
proxy IN CNAME gepneve ;
;-------------------------------------------------------;
masikgepneve IN A 10.100.40.2
; vege.
A
db.100.10 tartalma(
Letőlthetö itt.):
; BIND data file for 192.168.x.x & 10.100.x.x reverse DNS
;
$TTL 86400
@ IN SOA gepneve.sajatnet.hu. root.gepneve.sajatnet.hu. (
2000092101 ; Serial
28800 ; Refresh
7200 ; Retry
604800 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS gepneve.sajatnet.hu.
;
1.40 IN PTR gepneve.sajatnet.hu.
2.40 IN PTR masikgepneve.sajatnet.hu.
;vege
A kővetkezö paranccsal indíthatjuk el:
sudo /etc/init.d/bind9 start
scaniatm - 2017. július 24. 11:42