skip to content »

bluebird-next.ru

Ubuntu bind slave not updating

Add your changes to the files which are included or to those included further down the branches. // This is the primary configuration file for the BIND DNS server named. for information on the // structure of BIND configuration files in Debian, *BEFORE* you customize // this configuration file.

ubuntu bind slave not updating-36ubuntu bind slave not updating-17

We also use PRT records not MX, A or CNAME records here. If you will be using this DNS/DHCP server along with Samba4 to create an Active directory server you should also add another CNAME record to /var/lib/bind/zone at the end./var/lib/bind/ Adding these records just means you can access the machine with two different names, in this case dns-dhcp and lab-addc1.It is very easy to break a working setup, let alone fail to get it working, by missing off a single semi-colon or full stop.Talking about full stops, if your system fails to work it is most likely a missing full stop that is stopping it from working. The official documentation for bind9 which is rather extensive and very well written, so go there first, there is no need to go anywhere else for help 🙂 Get it from https://org it is also installed with the bind9-doc package. The first configuration file to look at, is one you should not change.Just remember that if you do change the text, also update the text where it is accessed in both /etc/bind/named.conf* and /etc/dhcp/Let’s get on with defining our first zones.Before that include the file created above into the local file. The first zone is the forward looking zone for the second one is the reverse lookup zone definition.It will point out where you missed off those pesky full stops. The NIC on the DNS server should be setup to look only at localhost, 127.0.0.1.

🙂 Use the tail command below in a new terminal window and the restart in your existing terminal. change the the line for dns-nameservers, the interfaces file should now have something like this in it.

Let us do a quick check that the reverse lookup is also working.

This time lookup the IP address 10.1.200.1 that is my lab-router, you may need to use a different IP depending on what you placed in your file. The config for DHCP is all in one file and a little less verbose. You should be able to work out what the options do, if not look in man ddns-updates on; ddns-update-style interim; update-static-leases on; authoritative; # This option points to the same we create for bind9. If you seach towars the end there is a line for /etc/dhcp/ddns-keys/** r, comment this out and add the one below to replace it.

include "/etc/bind/rndc.key"; allow unknown-clients; use-host-decl-names on; default-lease-time If try and start up the dhcp daemon it will throw an error and fail to start. Reboot the server to get our services, DNS, DHCP & apparmor, restarted and along with all their dependencies.

Take a look at the syslog file for any errors or warnings.

Also add the reverse lookup record to /var/lib/bind/rev.zone, but this time before the “PTR I use the hostname lab-addc1 as the SAMBA AD DC server name.