MCPcopy Create free account
hub / github.com/saltstack/salt / refresh_dns

Function refresh_dns

salt/utils/network.py:2166–2174  ·  view source on GitHub ↗

issue #21397: force glibc to re-read resolv.conf

()

Source from the content-addressed store, hash-verified

2164
2165
2166def refresh_dns():
2167 """
2168 issue #21397: force glibc to re-read resolv.conf
2169 """
2170 try:
2171 RES_INIT()
2172 except NameError:
2173 # Exception raised loading the library, thus RES_INIT is not defined
2174 pass
2175
2176
2177@jinja_filter("dns_check")

Callers 1

dns_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected