Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: DnsRule #230

Open
leon3s opened this issue Apr 22, 2023 · 1 comment
Open

RFC: DnsRule #230

leon3s opened this issue Apr 22, 2023 · 1 comment
Labels
enhancement New feature or request ncdns Include change in `bin/ncdns` ndns Include change in `bin/ndns` question Further information is requested RFC Request for comment

Comments

@leon3s
Copy link
Member

leon3s commented Apr 22, 2023

Is your feature request related to a problem? Please describe.
To fully unlock the control of the network, we need to think about a spec for the dns controller.
By default we use DNSMASQ

First the data type :

Type: Resource
ApiVersion: v0.5

Resources:
- Name: resource-example
  Kind: DnsRule
  Version: v0.1
  Config:
    Network: "Public" | "Private" | "Nsp.{namespace_name}" # To bind to specific namespace ip address
    Entries:
    - Name: test.com
      IpAddress: "127.0.0.1" | "Nsp.{namespace_name}" # To redirect to specific namespace ip address

We should handle two methods:

  • PUT /rules to create new / update a DnsRule
  • DELETE /rules/{Name} to delete the DnsRule

Creating a rule mean creating a file in this case, nothing have to be stored in database.
That mean we have to create specific dnsmasq config for given resource.

The service should generate an openapi spec aswell.

Feel free to share any though about the config spec for the DnsRule

@leon3s leon3s added enhancement New feature or request question Further information is requested RFC Request for comment labels Apr 22, 2023
@leon3s leon3s changed the title Spec: Controller DNS (ncddns) RFC: Controller DNS (ncddns) Apr 22, 2023
@leon3s leon3s self-assigned this Apr 23, 2023
@leon3s
Copy link
Member Author

leon3s commented Apr 23, 2023

I'll start something on #235

@leon3s leon3s added ncdns Include change in `bin/ncdns` ndns Include change in `bin/ndns` labels May 29, 2023
@leon3s leon3s changed the title RFC: Controller DNS (ncddns) RFC: DnsRule May 29, 2023
@leon3s leon3s pinned this issue May 29, 2023
@leon3s leon3s removed their assignment May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ncdns Include change in `bin/ncdns` ndns Include change in `bin/ndns` question Further information is requested RFC Request for comment
Projects
None yet
Development

No branches or pull requests

1 participant