Przyznam szczerze że robię całą pracę wyjątkowo hobbystycznie, dla własnej nauki. Posiadam serwer Debian 8 64bit.
Kiedyś już udało mi się to postawić i odpowiednio skonfigurować, jednak od wczoraj walka oraz korzystanie z wielu różnych poradników nie przyniosła odpowiedniego rezultatu. Aby ułatwić poszukiwanie problemu wstawię logi, oraz konfigurację którą przeprowadziłem.
IP Publiczne: 188.213.173.172
DNSy: nameserver 62.149.128.4
nameserver 62.149.132.4
Poradnik z którego korzystałem: KLIK
dig @localhost bertkowo.pl :
Kod: Zaznacz cały
; <<>> DiG 9.9.5-9+deb8u6-Debian <<>> @localhost bertkowo.pl
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17856
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;bertkowo.pl. IN A
;; ANSWER SECTION:
bertkowo.pl. 86400 IN A 188.213.173.172
;; AUTHORITY SECTION:
bertkowo.pl. 86400 IN NS ns2.bertkowo.pl.
bertkowo.pl. 86400 IN NS ns1.bertkowo.pl.
;; ADDITIONAL SECTION:
ns1.bertkowo.pl. 86400 IN A 188.213.173.172
ns2.bertkowo.pl. 86400 IN A 188.213.173.172
;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Thu Mar 24 13:26:26 CET 2016
;; MSG SIZE rcvd: 124
Konfiguracja named.conf.local
Kod: Zaznacz cały
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "bertkowo.pl" {
type master;
file "/etc/bind/db.bertkowo.pl";
allow-update{none;};
notify yes;
};
zone "173.213.188.in-addr.arpa" {
type master;
file "/etc/bind/db.bertkowo.pl.rev";
};
Kod: Zaznacz cały
options {
directory "/var/cache/bind";
listen-on { 127.0.0.1; };
listen-on { 188.213.173.172; };
forwarders{
8.8.8.8;
8.8.4.4;
};
dnssec-validation auto;
listen-on-v6 { any; };
auth-nxdomain no;
};
Kod: Zaznacz cały
$TTL 86400
@ IN SOA ns1.bertkowo.pl. mail.bertkowo.pl. (
2016032301
3H
5M
1W
1D)
;
bertkowo.pl. IN NS ns1.bertkowo.pl.
bertkowo.pl. IN NS ns2.bertkowo.pl.
@ IN A 188.213.173.172
ns1.bertkowo.pl. IN A 188.213.173.172
server.bertkowo.pl. IN A 188.213.173.172
ns2.bertkowo.pl. IN A 188.213.173.172
mail.bertkowo.pl. IN CNAME server.bertkowo.pl.
Kod: Zaznacz cały
$TTL 3h
173.213.188.in-addr.arpa. IN SOA ns1.bertkowo.pl. mail.be$
2013103001
3h
1h
1w
1h
)
;
173.213.188.in-addr.arpa. IN NS ns1.bertkowo.pl.
172.173.213.188.in-addr.arpa. IN PTR ns1.bertkowo.pl.
Kod: Zaznacz cały
● bind9.service - BIND Domain Name Server
Loaded: loaded (/lib/systemd/system/bind9.service; enabled)
Drop-In: /run/systemd/generator/bind9.service.d
└─50-insserv.conf-$named.conf
Active: active (running) since Thu 2016-03-24 13:31:24 CET; 52s ago
Docs: man:named(8)
Process: 8334 ExecStop=/usr/sbin/rndc stop (code=exited, status=0/SUCCESS)
Process: 8353 ExecReload=/usr/sbin/rndc reload (code=exited, status=0/SUCCESS)
Main PID: 8338 (named)
CGroup: /system.slice/bind9.service
└─8338 /usr/sbin/named -f -u bind
Mar 24 13:31:49 Bertek named[8338]: automatic empty zone: 8.E.F.IP6.ARPA
Mar 24 13:31:49 Bertek named[8338]: automatic empty zone: 9.E.F.IP6.ARPA
Mar 24 13:31:49 Bertek named[8338]: automatic empty zone: A.E.F.IP6.ARPA
Mar 24 13:31:49 Bertek named[8338]: automatic empty zone: B.E.F.IP6.ARPA
Mar 24 13:31:49 Bertek named[8338]: automatic empty zone: 8.B.D.0.1.0.0.2.I...PA
Mar 24 13:31:49 Bertek named[8338]: reloading configuration succeeded
Mar 24 13:31:49 Bertek named[8338]: reloading zones succeeded
Mar 24 13:31:49 Bertek rndc[8353]: server reload successful
Mar 24 13:31:49 Bertek named[8338]: all zones loaded
Mar 24 13:31:49 Bertek named[8338]: running
Hint: Some lines were ellipsized, use -l to show in full.
Kod: Zaznacz cały
root@Bertek:~# named-checkzone bertkowo.pl /etc/bind/db.bertkowo.pl
zone bertkowo.pl/IN: loaded serial 2016032301
OK