Before you build a DNS server, introduce the terminology in several DNS
1, forward lookup zone: mapping for Computer name to IP address. When a DNS client initiates a request to a DNS server to resolve the IP address of a computer name, the DNS server looks in the forward lookup zone and returns to the corresponding IP address of the DNS client
2. Reverse Lookup zone: A mapping for IP addresses to computer names. When a DNS client initiates a request to a DNS server to resolve the computer name of an IP address, the DNS server looks in the reverse zone and returns the corresponding computer name to the DNS client
3. Main zone: Contains all the resource records for the corresponding DNS namespace and is the authoritative DNS server for all DNS domains contained in the zone. A DNS server can modify data in this zone by having permission to read and write to all resources in the domain
4. Stub zone: This zone contains records for identifying authoritative DNS servers for the primary zone, with three
①soa record: Also called the Zone start Authorization record, which identifies the primary source DNS server and other zone properties for the zone
②ns record: Also called name server, contains a list of authoritative DNS servers for this zone
③a record: Also called adhesion A records, contains the IP address of authoritative DNS server for this zone
Let's look at a trial: Create a forward lookup zone
The test environment is as follows