Bind dns reset serial




















Then push dns again. It has the same effekt. This site uses Akismet to reduce spam. Learn how your comment data is processed. Search for:. Finally, skip down to the bottom of the named. Our example is using ourdomain, so sub in what you want to call your LAN hosts:. If you are turning off IPv6 for bind as noted above, then you will need to make a change to one more file:.

These files are the ones that you will edit if you add machines to your network that you want to include in the DNS. The first is the forward file to map our IP address to the hostname. Again, we are using "ourdomain" as our example here. The hosts are added at the bottom of this file. Add as many hosts as you need to the bottom of the file along with their IP addresses and then save your changes. Next, we need a reverse file to map our hostname to the IP address, In this case, the only part of the IP that you need is the last octet in an IPv4 address each number separated by a comma, is an octet of the host and then the PTR and hostname.

Now that we have all of this added in and are preparing to restart our bind DNS server, let's just explore some of the terminology that is used in these two files. Once we have gotten all of our files created, we need to make sure that the configuration files and zones are in good working order before we start the bind service again. You need to add the DNS server in our example We are only going to show you an example of how to do this on a Rocky Linux workstation, but there are similar methods for other Linux distributions, as well as Windows and Mac machines.

Keep in mind that you will want to just add the DNS server in the list, as you will still need Internet access, which will require your currently assigned DNS servers. If your enabled network interface is different, you will need to substitute that interface name. The configuration file that you open will look something like this for a statically assigned IP not DHCP as mentioned above.

In the example below, our machine's IP address is Now you should be able to get to anything in the ourdomain. Steps 1 and 2 can be performed using the DNS serial number calculator provided in the tools section of this website.

Serial numbers wrap around modulo 2 32 equal to To calculate the total distance you should therefore:. It is desirable that the number of steps be minimised in order to avoid unnecessary work.

This can be achieved as follows:. It is usually possible to reach the desired serial number in two steps. For the scenario considered here, those steps would be:. Each time the serial number is changed you must reload the zone into the master nameserver, then wait for it to propagate to all of the slaves.

You can check whether a zone change has propagated to a particular slave by requesting the SOA record for the zone:. The format of the answer is slightly different from the format used in a zone file, but it contains the same information including the serial number in the same order:. If you make a second change to the serial number when one of the slave nameservers has not registered the first one then instead of taking two steps forward the value will appear to have taken one step back.



0コメント

  • 1000 / 1000