I am new to this SysAdmin-things.
I installed Bind9 (apt-get install bind9
) on Ubuntu Server 18. I configured forwarding, setup the zone. But it does not work.
The log says that the new zone is up.
When I ping or host ns.ubuntu.local
it says: ping: ns.ubuntu.local: Temporary failure in name resolution
How can I find out, what I am missing?
Log:
Mär 11 08:18:42 server named[4201]: managed-keys-zone: loaded serial 21
Mär 11 08:18:42 server named[4201]: zone 0.in-addr.arpa/IN: loaded serial 1
Mär 11 08:18:42 server named[4201]: zone 127.in-addr.arpa/IN: loaded serial 1
Mär 11 08:18:42 server named[4201]: zone 255.in-addr.arpa/IN: loaded serial 1
Mär 11 08:18:42 server named[4201]: zone ubuntu.local/IN: loaded serial 1
Mär 11 08:18:42 server named[4201]: zone localhost/IN: loaded serial 2
Mär 11 08:18:42 server named[4201]: all zones loaded
My named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// 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 {
8.8.8.8;
8.8.4.4;
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
listen-on { any; };
allow-query { any; };
recursion yes;
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
My named-conf.local
//
// Do any local configuration here
//
zone "ubuntu.local" {
type master;
file "/etc/bind/zones/db.ubuntu.local";
};
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
My zones/db.ubuntu.local
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.ubuntu.local. root.ubuntu.local. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.ubuntu.local.
ns IN A 192.168.2.10
www IN A 102.168.2.10