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

DNS Settings #351

Open
lyca-knight opened this issue Mar 19, 2024 · 2 comments
Open

DNS Settings #351

lyca-knight opened this issue Mar 19, 2024 · 2 comments

Comments

@lyca-knight
Copy link

Hello,
i use the Version 9.6.37 on Debian without calamares (only cli).
The DNS Settings are not correctly applied.
It defaults to 127.0.0.53.
I tried this workaround:
sudo rm /etc/resolv.conf
sudo ln -s usr/lib/systemd/resolv.conf /etc/resolv.conf
Any other workaround or solution? Or am I making a mistake here?

Thanks :)

@pieroproietti
Copy link
Owner

Hi @lyca-knight

perhaps I can include your workaround on krill, just for distros using systemd

This is the code, seem I used your workaround before to know it, but was not sure to apply it.

@pieroproietti pieroproietti mentioned this issue Mar 19, 2024
@lyca-knight
Copy link
Author

lyca-knight commented Mar 21, 2024

Hey :)
thank you.
I have been very busy these days and have only now had time to test the changes
should it not be the following?
if (this.network.addressType !== 'dhcp')
At least that works for me

This is the code from version 9.6.9:

if (this.network.addressType !== 'dhcp') { const file = this.installTarget + '/etc/resolv.conf' let content = '# created by eggs\n\n' content += 'domain ' + this.network.domain + '\n' for (const element of this.network.dns) { content += 'nameserver ' + element + '\n' } Utils.write(file, content) }

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

No branches or pull requests

2 participants