issue #21397: force glibc to re-read resolv.conf
()
| 2164 | |
| 2165 | |
| 2166 | def 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") |