-
Notifications
You must be signed in to change notification settings - Fork 74
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 not written when primary-address-type=IPv6 #641
Comments
Hi! I think it's due to the Thanks. |
Hi @benjamreis
My router does advertise a DNS server, both via SLAAC and via stateless DHCPv6, but that DNS server doesn't seem to ever be added to /etc/resolv.conf. But you're right that if I configure the IPv6 address statically, /etc/resolv.conf does get written correctly. So the problem may be related to autoconf, but autoconf isn't writing any nameservers even if the network advertises them. |
Thx for the report! I'll look into it! |
Hi @mas90, I have a potential fix, would you be interested in testing it?
This will add one of my test repo to your yum config (disabled by default of course) If you're okay doing it, please report here the result! |
Hi @benjamreis, thanks for this! After installing your fix then changing IPv6-configuration-mode back to Autoconf (I had temporarily set it to static as a workaround), for some reason my existing IPv6 DNS server was lost from the configuration but my IPv4 DNS server was successfully added to resolv.conf. After I put my IPv6 DNS server back (xe pif-reconfigure-ipv6 ... DNS=...), both IPv6 and IPv4 DNS servers are in resolv.conf. So it looks like you successfully fixed the problem, as far as I am concerned :) Except perhaps for the DNS setting being lost initially after update. |
Hmm it looks I fix part of it but if you're router advertise DNS with SLAAC it should have been configured without manually specifying it via cli right? |
If the intent was to support DNS autoconfiguration via SLAAC, then indeed that seems still not to be working. Static DNS is working after your fix. It would be good to have autoconfiguration working, but at least I can now have working DNS somehow :-) |
I tested this fix on two systems, and just discovered that after leaving both of them running for a week or so (with IPv6-configuration-mode=Autoconf, but a static IPv6 DNS server) the IPv6 DNS server has vanished from /etc/resolv.conf leaving only the IPv4 one... |
I believe I’m hitting the same (or a similar?) problem with slightly different settings on 8.3 beta 2 and the CI packages:
After boot, for a short time the (If this is a different issue, I can open a new issue.) |
Issue persists with 8.3 RC1 (after |
If I set primary-address-type=IPv6 on my management PIF (with both IPv6 (autoconf) and IPv4 (static) addresses configured, and with both IPv6 and IPv4 DNS servers configured on the PIF), /etc/resolv.conf doesn't contain any nameservers.
This happens both on XCP-ng 8.3 beta 2 and on the latest 8.3 CI packages (i.e. after "yum --enablerepo=xcp-ng-candidates,xcp-ng-testing,xcp-ng-ci update").
The text was updated successfully, but these errors were encountered: