mirror of
https://github.com/rancher/os.git
synced 2025-07-07 11:58:38 +00:00
19 lines
372 B
Diff
19 lines
372 B
Diff
296a297,300
|
|
> conf.update(name)
|
|
> }
|
|
>
|
|
> func (conf *resolverConfig) update(name string) {
|
|
300a305,316
|
|
> }
|
|
>
|
|
> func UpdateDnsConf() {
|
|
> resolvConf.initOnce.Do(resolvConf.init)
|
|
>
|
|
> // Ensure only one update at a time checks resolv.conf.
|
|
> if !resolvConf.tryAcquireSema() {
|
|
> return
|
|
> }
|
|
> defer resolvConf.releaseSema()
|
|
>
|
|
> resolvConf.update("/etc/resolv.conf")
|