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

/etc/resolv.conf doesn't get populated if dns_domain is empty #948

Open
quanah opened this issue Aug 13, 2020 · 0 comments
Open

/etc/resolv.conf doesn't get populated if dns_domain is empty #948

quanah opened this issue Aug 13, 2020 · 0 comments

Comments

@quanah
Copy link

quanah commented Aug 13, 2020

There is no requirement for a dns domain to be populated, however if one is not defined in /usbkey/config, the smartos hypervisor fails to populate /etc/resolv.conf breaking name resolution within the hypervisor. i.e.:

....
dns_resolvers=8.8.8.8
dns_domain=""

results in a broken system. This appears to be due to a bug in /lib/svc/method/net-physical, where it checks for:

if [[ -n ${CONFIG_dns_domain} ]] && [[ -n ${CONFIG_dns_resolvers} ]]; then
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

1 participant