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

Configure DNS servers in machine allocation optionally #570

Closed
wants to merge 2 commits into from

Conversation

simcod
Copy link

@simcod simcod commented Sep 11, 2024

No description provided.

@@ -1237,6 +1239,7 @@ func allocateMachine(ctx context.Context, logger *slog.Logger, ds *datastore.Ret
VPN: allocationSpec.VPN,
FirewallRules: firewallRules,
UUID: uuid.New().String(),
DNSServers: allocationSpec.DNSServers,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some sort of validation is required like:
walk through all elements
if the element is a ip, validate with netip.ParseAddr()
else it must be a rfc conformant hostname

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ensures a breaking OS installation

@majst01
Copy link
Contributor

majst01 commented Sep 11, 2024

I would also add NTPServers in this PR as well

@simcod
Copy link
Author

simcod commented Sep 12, 2024

Will be handled in a PR with dns and ntp combined.

@simcod simcod closed this Sep 12, 2024
@simcod simcod deleted the dns-servers-in-machine-allocation branch September 12, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants