NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
62 stars 20 forks source link

Dnsmasq DHCP and DNS module #6877

Closed DavidePrincipi closed 6 months ago

DavidePrincipi commented 7 months ago

What we need:

Implementation proposal:

Module implementation: https://github.com/NethServer/ns8-dnsmasq

See also

Tbaile commented 6 months ago

Best QA scenario MAY have the following prerequisites:

Further details are given at footnotes.

QA:

  1. Basic
    1. Install Module add-module ghcr.io/nethserver/dnsmasq:latest
    2. Settings page shows interface missing
    3. Interfaces available in the dropdown are only the one configured[^1]
    4. Select interface[^2] and save
    5. UI shows DHCP and DNS sections
    6. DHCP
      1. Turn on DHCP toggle
      2. Ensure start/end are already populated with values from selected interface
      3. Save
      4. Ensure that client receives an IP inside the range
      5. DNS
      6. Turn on DNS toggle
      7. Save
      8. dig a host from the client, expect none back
      9. Set a DNS server
      10. Save
      11. dig another DNS, expect response
    7. Automatic CNAMEs
      1. DNS MUST be turned on
      2. Install an application that requires an FQDN (I.E. mattermost)
      3. dig the configured FQDN, expect a CNAME record with the FQDN of the node
    8. DNS records
      1. Access the "DNS Records" page
      2. Ensure that you can add/remove A records
      3. dig from the client to verify that DNS Record is saved successfully
  2. Backup/Restore/Move
    1. All functionalities are to be expected working, ensure that NO services are running when restoring/move, this is made by design, since the interface is most likely to have been moved and or renamed in the process.

[^1]: Additional network interfaces needed [^2]: Prefer using a network manually configured, so that DHCP and DNS are working properly

nrauso commented 6 months ago

tested all cases: VERIFIED note: have to install the latest NS8 core

DavidePrincipi commented 6 months ago

Do we have the admin's manual page?

DavidePrincipi commented 6 months ago

Released dependency in testing core 2.6.0-dev.1 (fix for clone-module) Blocked by https://github.com/NethServer/ns8-core/pull/615

DavidePrincipi commented 6 months ago

Released

Added to Software Center: https://github.com/NethServer/ns8-repomd/commit/2e79a321ccc8b7e353343b04ef2d2ea45e65366d