← ../

bind zone file

Here is an example of an authoritative dns forward lookup zone file in bind

$ORIGIN example.com.
$TTL 86400

@ IN SOA ns1.example.com. admin.example.com. (
                        2022052501 ; serial
                        1d ; refresh (1 day)
                        2h ; retry (2 hours)
                        4w ; expire (4 weeks)
                        1h ; negative caching
                        )
             IN NS ns1.example.com.
             IN NS ns2.example.com.
             IN MX 10 mailserver.example.com.
ns1            IN A 198.51.100.1
ns2            IN A 198.51.100.2
server1       60 IN A 198.51.100.3
server2.example.com. IN A 198.51.100.4
mailserver       IN A 198.51.100.5

breakdown of the file :

sources:

Zone files directives

SOA records