https://github.com/saltstack-formulas/resolver-formula
https://github.com/saltstack-formulas/resolver-formula
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/saltstack-formulas/resolver-formula
- Owner: saltstack-formulas
- License: other
- Created: 2013-06-15T05:18:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T23:10:28.000Z (about 1 year ago)
- Last Synced: 2025-03-31T06:03:28.829Z (11 months ago)
- Language: SaltStack
- Homepage: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
- Size: 60.5 KB
- Stars: 11
- Watchers: 33
- Forks: 66
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
========
resolver
========
SaltStack formula to manage ``/etc/resolv.conf`` with or without ``resolvconf`` package.
.. Note::
See the full `Salt Formulas installation and usage instructions
`_.
Available states
================
.. contents::
:local:
``resolver``
------------
Manage system nameserver information in ``/etc/resolv.conf``.
``resolver.ng``
---------------
A new formula to manage system nameserver information in ``/etc/resolv.conf``.
Configuration
=============
The ``resolvconf`` package is enabled by default for Debian based distributions
and you can manage ``/etc/resolv.conf`` directly without remove ``resolvconf`` package.
NetworkManager, if enabled, will have it's ``DNS (resolv.conf) processing mode`` disabled.
.. code:: yaml
resolver:
ng:
resolvconf:
enabled: False
nameservers:
- 8.8.8.8
- 8.8.4.4
searchpaths:
- internal
options:
- rotate
- timeout:1
- attempts:5
.. vim: fenc=utf-8 spell spl=en cc=100 tw=99 fo=want sts=4 sw=4 et