Updating bind serial numbers automatically redhat
BIND can be configured as master or slave to serve the DNS request for each zone.When the BIND is configured as a slave, it obtains the copy of zone data from the master server by using the zone transfer method.In the previous article in this two-part series, Introduction to the DNS (Domain Name System), I described how the DNS database is structured and how to configure name services on a client.I also listed and described some of the more common DNS records you are likely to encounter when building a name server or just trying to interpret the results of a dig command.Semicolons are used to delineate the end of an entry and the end of a stanza as well as the end of a line.Be sure to add them in correctly as shown in the samples.The primary has already been configured as a master for itzgeek.local domain. 604800 IN A 192.168.1.20 ;; Query time: 0 msec ;; SERVER: 192.168.1.20#53(192.168.1.20) ;; WHEN: Wed Jul 17 IST 2019 ;; MSG SIZE rcvd: 140 Whenever you change a DNS record at the master server, do not forget to change the serial number in the zone file and run the following command on the master server to reload the zone.Now we will configure secondary as a slave DNS server for itzgeek.local. ( 1002 ; Serial 3H ; Refresh 15M ; Retry 1W ; Expire 1D ; Minimum TTL ) ; Name Server Information @ IN NS primary.itzgeek.local. Change itzgeek.local & 1.168.192.with your zone names.
To show that almost any host can perform well as a name server, I have tested this project on an old ASUS Eee PC 900 netbook.
In this article, I show you how to build your own name server using BIND (Berkeley Internet Name Domain).
It is not as difficult as you might think, especially because you can do it in two stages.
Configure BIND on the master server to allow zone transfer to a secondary server, edit the /etc/file in primary.itzgeek.local. ; Secondary Name server @ IN NS secondary.itzgeek.local.
; IP address of Primary Name Server primary IN A 192.168.1.10 ; IP address of Secondary Name Server secondary IN A 192.168.1.20 ; Mail exchanger itzgeek.local. ; A - Record Host Name To IP Address www IN A 192.168.1.100 mail IN A 192.168.1.150 ; CNAME record ftp IN CNAME