Expand DNS documentation for IPv6 and reverse DNS

Aperta
#3,467 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
documentation

Direzione di ricerca

Find the existing private DNS guide and follow its Rocky Linux release conventions for BIND configuration and zone files. Add IPv4 and IPv6 forward records, IPv6 reverse DNS, listener and firewall guidance, testing commands, and troubleshooting. Check examples against the documented paths and commands; done means readers can configure and test forward and reverse DNS for IPv4, IPv6, and dual-stack setups.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

The Rocky Linux documentation already includes a guide for setting up a private DNS server using BIND. However, the documentation could be improved by providing clearer, comprehensive examples for IPv6 DNS records and reverse DNS configuration.

The existing guide introduces DNS concepts and BIND configuration, but a dedicated section covering IPv6 forward and reverse lookups would help users deploy DNS in IPv4, IPv6, and dual-stack environments.

This proposal aims to extend the existing documentation rather than duplicate the BIND installation guide.

Problems to address

  1. Document IPv4 and IPv6 forward DNS records

Explain how to configure forward DNS records for hosts with IPv4 addresses, IPv6 addresses, or both.

Include examples of:

A records for IPv4 addresses.

AAAA records for IPv6 addresses.

CNAME records where aliases are required.

Forward zones containing both IPv4 and IPv6 records for the same host.

For example:

server1.example.test. IN A 192.0.2.10
server1.example.test. IN AAAA 2001:db8:1::10

The documentation should explain that publishing an AAAA record does not itself enable IPv6 connectivity. The address must be configured and reachable, and the relevant network routing and firewall rules must also be in place.

  1. Add an IPv6 reverse DNS guide

The existing private DNS guide would benefit from a dedicated section explaining reverse DNS for IPv6.

IPv4 reverse DNS uses the in-addr.arpa namespace, whereas IPv6 reverse DNS uses ip6.arpa. IPv6 reverse names are constructed by expanding the address to its full 32 hexadecimal digits, reversing the individual hexadecimal digits (nibbles), and separating them with dots.

For example, the address:

2001:db8:1:2::10

Expands to:

2001:0db8:0001:0002:0000:0000:0000:0010

Its reverse DNS name is:

0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.0.1.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.

A reverse zone for the example /64 prefix could be declared as:

zone "2.0.0.0.1.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa" IN {
type master;
file "db.2001-db8-1-2";
};

The corresponding zone file could contain:

$TTL 86400
@ IN SOA ns1.example.test. hostmaster.example.test. (
2026102501 ; Serial
3600 ; Refresh
1800 ; Retry
604800 ; Expire
86400 ) ; Negative Cache TTL

    IN NS   ns1.example.test.

0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR server1.example.test.

The example uses the documentation-only prefix 2001:db8::/32 and is intended for illustrative purposes, not public deployment. The guide should explain that public reverse DNS requires appropriate delegation of the reverse zone.

  1. Explain BIND's IPv6 listener configuration

Add an example showing how to configure BIND to listen for DNS queries over IPv4 and IPv6.

For example, in /etc/named.conf:

options {
listen-on port 53 { 127.0.0.1; 192.0.2.53; };
listen-on-v6 port 53 { ::1; 2001:db8:1::53; };

allow-query {
    localhost;
    192.0.2.0/24;
    2001:db8:1::/64;
};

};

The documentation should explain that these addresses and network ranges are examples and must be replaced with the addresses and trusted client networks used in the actual deployment.

It should also explain the distinction between listening on IPv6 addresses and publishing IPv6 DNS records. A DNS server can answer queries for AAAA records without necessarily accepting client queries over IPv6, and a server listening over IPv6 does not automatically make its zones IPv6-ready.

The guide should cover firewall access for DNS over both UDP and TCP on port 53, while warning against exposing unrestricted recursive resolution to untrusted networks.

  1. Include IPv6 DNS testing and troubleshooting

Provide examples for validating configuration and testing both forward and reverse resolution.

For example:

sudo named-checkconf
sudo named-checkzone example.test /var/named/example.test
sudo systemctl reload named

Test forward lookups:

dig @2001:db8:1::53 server1.example.test AAAA
dig @2001:db8:1::53 server1.example.test A

Test reverse lookups:

dig @2001:db8:1::53 -x 2001:db8:1:2::10

The documentation should explain how to interpret common DNS response codes and troubleshoot issues such as:

Missing or incorrectly formatted AAAA records.

Incorrect IPv6 reverse-zone names.

Missing or incorrect PTR records.

BIND listening only on IPv4.

Firewall rules blocking DNS traffic over IPv6.

Incorrect zone file permissions or SELinux contexts.

Zone serial numbers not being incremented after changes.

Missing or incorrect reverse-zone delegation.

The examples should use the actual zone-file paths and configuration conventions documented for the relevant Rocky Linux release.

  1. Clarify forward DNS, reverse DNS, and DNS delegation

Add a short explanation of the relationship between forward and reverse DNS.

Forward DNS resolves a hostname to an address, using records such as A and AAAA. Reverse DNS maps an address to a hostname through a PTR record.

The documentation should emphasize that creating a forward record does not automatically create the corresponding reverse record. Both must be configured where reverse resolution is required.

For public DNS deployments, explain that the authoritative DNS provider or network operator must delegate the appropriate reverse zone. For IPv6 networks, the delegation may cover a prefix boundary that does not align with a /64, so users should follow the delegation supplied by their provider.

Expected outcome

Users should be able to configure and test DNS on Rocky Linux for IPv4, IPv6, and dual-stack environments, including forward and reverse lookups.

The improvements would make the existing BIND guide more complete, reduce common IPv6 reverse DNS configuration errors, and help users understand the distinction between DNS records, DNS server listeners, and network connectivity.

Lingua principale
Shell
Stelle
483
Fork
391
Merge medio
16h 9m
PR unite (30g)
66

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rocky-linux/documentation

Tutte le issue di rocky-linux/documentation

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.