Blame
Date:
Sat Aug 13 04:00:24 2022
UTC
Message:
Daily backup
11
2021-12-24
text=(:title NSD Zone Files:)%0a%0a!! Adding records to zone files%0a%0aSuppose you want to create an entry for @@subdomain.example.com@@.%0a%0aFirst, open up the file @@/var/nsd/zones/master/example.com@@ and add these two lines:%0a%0a[@%0asubdomain 3600 IN A 38.87.162.8 %0a 3600 IN AAAA 2602:fccf:1:1008::%0a@]%0a%0aThen, you will want to update the serial number in the Start of Authority record:%0a%0a[@%0a$ORIGIN example.com.%0aexample.com. 3600 SOA ns1.example.com. admin.example.com. (%0a 2021072701 ; serial YYYYMMDDnn%0a 1800 ; refresh%0a 3600 ; retry%0a 86400 ; expire%0a 3600 ) ; minimum TTL%0a@]%0a%0aThe serial number in a zone file is written in this form: @@YYYYMMDDnn@@.%0a@@YYYY@@ is the year, @@MM@@ is the month, @@DD@@ is the day, and @@nn@@ are two digits.%0aHere, @@2021072701@@ tells us that this zone was written on July 27th, 2021.%0aIt was the 1st edit of that day.%0a%0aAfter you add records, make sure to increase the serial number to the correct%0aday. If multiple edits are made on the same day, increase the two-digit number by%0aone.%0a%0aThen, run @@doas nsd-control reload@@ to reload the zone files.%0a%0a!! Test the Results%0a%0aAfter you update the zone file, make sure to test that the record has been updated:%0a%0a[@%0a$ host subdomain.example.com%0aexample.com has address 192.168.0.1%0aexample.com has IPv6 address 2001:db8::%0a@]%0a%0a!! $ORIGIN%0a%0aSee the [[dns/FQDN|FQDN]] section.%0a%0a!! Start of Authority%0a%0aThe start of authority record:%0a%0a[@%0aexample.com. 3600 SOA ns1.example.com. admin.example.com. (%0a@]%0a%0a@@ns1.example.com.@@ needs to be replaced by the nameserver responsible for this zone. @@admin.example.com.@@ means that the email for the sysadmin responsible for this zone is @@admin@example.com@@. Note that the @ ("at") symbol is replaced with a period.%0a
15
2021-12-24
diff:1640255593:1640255197:=14,15c14,15%0a%3c Then, you will want to update the serial number in the Start of Authority record:%0a%3c %0a---%0a> Then, you will want to update the serial number in the '''Start of Authority''' record:%0a> %0a46,59d45%0a%3c %0a%3c !! $ORIGIN%0a%3c %0a%3c See the [[dns/FQDN|FQDN]] section.%0a%3c %0a%3c !! Start of Authority%0a%3c %0a%3c The start of authority record:%0a%3c %0a%3c [@%0a%3c example.com. 3600 SOA ns1.example.com. admin.example.com. (%0a%3c @]%0a%3c %0a%3c @@ns1.example.com.@@ needs to be replaced by the nameserver responsible for this zone. @@admin.example.com.@@ means that the email for the sysadmin responsible for this zone is @@admin@example.com@@. Note that the @ ("at") symbol is replaced with a period.%0a
18
2021-12-24
diff:1640255197:1640254633:=14,15c14,15%0a%3c Then, you will want to update the serial number in the '''Start of Authority''' record:%0a%3c %0a---%0a> Then, you will want to update the serial number in the "Start of Authority" record:%0a> %0a26,30c26,31%0a%3c The serial number in a zone file is written in this form: @@YYYYMMDDnn@@.%0a%3c @@YYYY@@ is the year, @@MM@@ is the month, @@DD@@ is the day, and @@nn@@ are two digits.%0a%3c Here, @@2021072701@@ tells us that this zone was written on July 27th, 2021.%0a%3c It was the 1st edit of that day.%0a%3c %0a---%0a> And to reload the zone files run: [[doas nsd-control reload]]%0a> %0a> '''Where''':\\%0a> The serial number in a zone file is written in this form: @@YYYYMMDDnn@@, where @@YYYY@@ is the year, @@MM@@ is the month, @@DD@@ is the day and @@nn@@ are two digits.\\%0a> Here, 2021072701 tells us that this zone was written on July 27th, 2021. It was the 1st edit of that day.%0a> %0a35c36,41%0a%3c Then, run @@doas nsd-control reload@@ to reload the zone files.%0a---%0a> See the [[dns/FQDN|FQDN]] section for $ORIGIN.%0a> %0a> @@ns1.example.com.@@ needs to be replaced by the nameserver responsible for this zone.\\%0a> @@admin.example.com.@@ means that the email for the sysadmin responsible for this zone is @@admin@example.com@@.\\%0a> Note that the @ ("at") symbol is replaced with a period.%0a> %0a
22
2021-12-24
diff:1640254633:1640253730:minor=14,15c14,15%0a%3c Then, you will want to update the serial number in the "Start of Authority" record:%0a%3c %0a---%0a> Then, you will want to update the serial number in the '''Start of Authority''' record:%0a> %0a28,29c28,29%0a%3c '''Where''':\\%0a%3c The serial number in a zone file is written in this form: @@YYYYMMDDnn@@, where @@YYYY@@ is the year, @@MM@@ is the month, @@DD@@ is the day and @@nn@@ are two digits.\\%0a---%0a> '''Where:'''\\%0a> The serial number in a zone file is written in this form: '''YYYYMMDDnn''', where '''YYYY''' is the year, '''MM''' is the month, '''DD''' is the day and '''nn''' are two digits.\\%0a
30
2021-12-24
diff:1640252333:1640244710:minor=14,15c14,15%0a%3c Then, you will want to update the serial number in the '''Start of Authority''' record:%0a%3c %0a---%0a> Then, you will want to update the serial number in the Start of Authority record:%0a> %0a26,31c26,30%0a%3c And to reload the zone files run: [[doas nsd-control reload]]%0a%3c %0a%3c !! Where:%0a%3c The serial number in a zone file is written in this form: '''YYYYMMDDnn''', where '''YYYY''' is the year, '''MM''' is the month, '''DD''' is the day and '''nn''' are two digits.\\%0a%3c Here, 2021072701 tells us that this zone was written on July 27th, 2021. It was the 1st edit of that day.%0a%3c %0a---%0a> The serial number in a zone file is written in this form: YYYYMMDDnn.%0a> YYYY is the year, MM is the month, DD is the day, and nn are two digits.%0a> Here, 2021072701 tells us that this zone was written on July 27th, 2021.%0a> It was the 1st edit of that day.%0a> %0a36,42c35,36%0a%3c See the [[dns/FQDN|FQDN]] section for $ORIGIN.%0a%3c %0a%3c @@ns1.example.com.@@ needs to be replaced by the nameserver responsible for this zone.\\%0a%3c @@admin.example.com.@@ means that the email for the sysadmin responsible for this zone is @@admin@example.com@@.\\%0a%3c Note that the @ ("at") symbol is replaced with a period.%0a%3c %0a%3c %0a---%0a> Then, run @@doas nsd-control reload@@ to reload the zone files.%0a> %0a51a46,59%0a> %0a> !! $ORIGIN%0a> %0a> See the [[dns/FQDN|FQDN]] section.%0a> %0a> !! Start of Authority%0a> %0a> The start of authority record:%0a> %0a> [@%0a> example.com. 3600 SOA ns1.example.com. admin.example.com. (%0a> @]%0a> %0a> @@ns1.example.com.@@ needs to be replaced by the nameserver responsible for this zone. @@admin.example.com.@@ means that the email for the sysadmin responsible for this zone is @@admin@example.com@@. Note that the @ ("at") symbol is replaced with a period.%0a
33
2021-12-24
diff:1640244710:1627384900:=46,59d45%0a%3c %0a%3c !! $ORIGIN%0a%3c %0a%3c See the [[dns/FQDN|FQDN]] section.%0a%3c %0a%3c !! Start of Authority%0a%3c %0a%3c The start of authority record:%0a%3c %0a%3c [@%0a%3c example.com. 3600 SOA ns1.example.com. admin.example.com. (%0a%3c @]%0a%3c %0a%3c @@ns1.example.com.@@ needs to be replaced by the nameserver responsible for this zone. @@admin.example.com.@@ means that the email for the sysadmin responsible for this zone is @@admin@example.com@@. Note that the @ ("at") symbol is replaced with a period.%0a
36
2021-12-17
diff:1627384900:1627384838:=44c44%0a%3c example.com has IPv6 address 2001:db8::%0a---%0a> example.com has IPv6 address 2001:bd8::%0a
39
2021-12-17
diff:1627384838:1627384091:=5,8c5,8%0a%3c Suppose you want to create an entry for @@subdomain.example.com@@.%0a%3c %0a%3c First, open up the file @@/var/nsd/zones/master/example.com@@ and add these two lines:%0a%3c %0a---%0a> Suppose you want to create an entry for subdomain.example.com.%0a> %0a> First, open up the file /var/nsd/zones/master/example.com and add these two lines:%0a> %0a10,11c10,11%0a%3c subdomain 3600 IN A 38.87.162.8 %0a%3c 3600 IN AAAA 2602:fccf:1:1008::%0a---%0a> wiki 3600 IN A 38.87.162.8 %0a> 3600 IN AAAA 2602:fccf:1:1008::%0a37,45c37%0a%3c !! Test the Results%0a%3c %0a%3c After you update the zone file, make sure to test that the record has been updated:%0a%3c %0a%3c [@%0a%3c $ host subdomain.example.com%0a%3c example.com has address 192.168.0.1%0a%3c example.com has IPv6 address 2001:bd8::%0a%3c @]%0a---%0a> %0a
42
2021-12-17
diff:1627384091:1627383211:=5,9c5,6%0a%3c Suppose you want to create an entry for subdomain.example.com.%0a%3c %0a%3c First, open up the file /var/nsd/zones/master/example.com and add these two lines:%0a%3c %0a%3c [@%0a---%0a> If you have a subdomain%0a> %0a12,36d8%0a%3c @]%0a%3c %0a%3c Then, you will want to update the serial number in the Start of Authority record:%0a%3c %0a%3c [@%0a%3c $ORIGIN example.com.%0a%3c example.com. 3600 SOA ns1.example.com. admin.example.com. (%0a%3c 2021072701 ; serial YYYYMMDDnn%0a%3c 1800 ; refresh%0a%3c 3600 ; retry%0a%3c 86400 ; expire%0a%3c 3600 ) ; minimum TTL%0a%3c @]%0a%3c %0a%3c The serial number in a zone file is written in this form: YYYYMMDDnn.%0a%3c YYYY is the year, MM is the month, DD is the day, and nn are two digits.%0a%3c Here, 2021072701 tells us that this zone was written on July 27th, 2021.%0a%3c It was the 1st edit of that day.%0a%3c %0a%3c After you add records, make sure to increase the serial number to the correct%0a%3c day. If multiple edits are made on the same day, increase the two-digit number by%0a%3c one.%0a%3c %0a%3c Then, run @@doas nsd-control reload@@ to reload the zone files.%0a%3c %0a
45
2021-12-17
diff:1627383211:1627383211:=1,9d0%0a%3c (:title NSD Zone Files:)%0a%3c %0a%3c !! Adding records to zone files%0a%3c %0a%3c If you have a subdomain%0a%3c %0a%3c wiki 3600 IN A 38.87.162.8 %0a%3c 3600 IN AAAA 2602:fccf:1:1008::%0a%3c %0a