Kod: Zaznacz cały
Stopping domain name service...: bindrndc: connect failed: 127.0.0.1#953: connection refused
failed!
Starting domain name service...: bind failed!
Kod: Zaznacz cały
Stopping domain name service...: bindrndc: connect failed: 127.0.0.1#953: connection refused
failed!
Starting domain name service...: bind failed!
Kod: Zaznacz cały
rndc-confgen > /etc/rndc.conf
this generated something like:
/etc/rndc.conf
---------------------------------------------------
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "gibberish-gibberish";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndc-key" {
# algorithm hmac-md5;
# secret "same-gibberish-gibberish-as-above";
# };
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf
--------------------------------------------------------------------------
Then, I went to /etc/named.conf and replaced the include line for rndc.key with the last part (commented lines) of the rndc.conf file (obviously uncommented).
also, I copied /etc/rndc.conf to /var/named/chroot/etc.
restarted named, rndc start and vualá!
# rndc status
number of zones: 9
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
Kod: Zaznacz cały
$TTL 3600
@ IN SOA linux.sbsmen. root.sbsmen. (
2002070205 ;; serial
86400 ;; refresh
3600 ;; retry
3600000 ;; expire
1209600 ;; minimum
);
IN NS linux.sbsmen. ;;adres naszego Primary DNS
@ IN A 172.23.198.1 ;;adres IP naszego serwera trzymającego te domenę (zwykle ten na którym aktualnie piszemy ten plik)
www IN A 172.23.198.1 ;; definicja [url]www.sbsmen[/url]
linux IN A 172.23.198.1 ;; definicja linux.sbsmen
stacjalinux11 IN A 172.23.198.100
Kod: Zaznacz cały
ssh user@linux