-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Watch resolv.conf for changes #41
Comments
I'd opt for watching, but doing that AFAIK requires access to a syscall (i.e. fanotify/inotify etc.), which requires an extra ext. We could do that optionally, but by default we should just cache it for a (globally) fixed time. |
Right. Additionally we can't do that on Windows. |
On Windows System.IO.FileSystemWatcher is a thing, it just needs to be available in an ext… |
@bwoebi We need to watch the registry, not the file system. |
auto-reload on changes should be a opt-in feature. people are used to re-start applications/shells etc. on such fundamental changes. |
@staabm They're not. |
@kelunik In that case you need RegistryKeyChangeEvent (you can access these WMI events via COM). |
@bwoebi in case it's available. But we can have these watchers as progressive enhancement at any time. |
This can be done manually now, but I guess we should still add it by default. What's a good interval for that? |
Without this feature services in kubernetes can't work with inside local network by dns.
Sad but true. UPD: Hm. Config reload does not help me. This error needs a new issue. |
I think we should watch
/etc/resolv.conf
for changes or alternatively cache the config only for a certain amount of time.The text was updated successfully, but these errors were encountered: