ubuntu:bind:configure_bind9:primary_nameserver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:bind:configure_bind9:primary_nameserver [2020/12/09 14:37] – [Reverse Zone File] peter | ubuntu:bind:configure_bind9:primary_nameserver [2020/12/09 17:59] (current) – [Forward Zone File] peter | ||
---|---|---|---|
Line 24: | Line 24: | ||
</ | </ | ||
- | Edit the new zone file **/ | + | Edit the new zone file **/ |
- | + | ||
- | Change 127.0.0.1 to the nameserver’s IP Address and root.localhost to a valid email address, but with a . instead of the usual @ symbol, again leaving the . at the end. Change the comment to indicate the domain that this file is for. | + | |
- | + | ||
- | Create an A record for the base domain, example.com. Also, create an A record for ns.example.com, | + | |
<file bash / | <file bash / | ||
Line 48: | Line 44: | ||
</ | </ | ||
- | < | + | < |
- | **IMPORTANT: | + | **NOTE:** |
+ | |||
+ | * **Comment: | ||
+ | * **Serial Number:** <WRAP important> | ||
+ | **must** be incremented every time changes are made to a zone file. | ||
This Serial number can simply be any number, such as 1 or 2 or 3 etc. | This Serial number can simply be any number, such as 1 or 2 or 3 etc. | ||
The approach taken here is to use the last date this zone file was edited, in the format yyyymmddss (where ss is the change number for that day; 01 for 1st change, 02 for 2nd change, etc). | The approach taken here is to use the last date this zone file was edited, in the format yyyymmddss (where ss is the change number for that day; 01 for 1st change, 02 for 2nd change, etc). | ||
- | |||
</ | </ | ||
+ | * **FQDNs:** <WRAP important> | ||
+ | Leave the additional **.** at the end of the FQDNs (example.com. and root.example.com.). | ||
+ | * **root.example.com.** actually refers to an email address of root@example.com. | ||
+ | </ | ||
+ | * Create an **A** record for the base domain, example.com. | ||
+ | * Create an **A** record for the nameserver; in this example **ns.example.com**. | ||
+ | </ | ||
+ | |||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
- | See Common Record Types for details. | + | See [[[[Networking: |
</ | </ | ||
Line 74: | Line 80: | ||
===== Reverse Zone File ===== | ===== Reverse Zone File ===== | ||
- | A Reverse Zone needs to be added to allows | + | A Reverse Zone needs to be added to allow DNS to resolve an address to a name. |
Edit **/ | Edit **/ | ||
Line 88: | Line 94: | ||
**NOTE: | **NOTE: | ||
- | Also, name the zone file / | + | Also, name the zone file **/ |
</ | </ |
ubuntu/bind/configure_bind9/primary_nameserver.1607524631.txt.gz · Last modified: 2020/12/09 14:37 by peter