mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #42235 from astronouth7303/patch-1-2016.3
Abolish references to `dig` in examples.
This commit is contained in:
commit
781fe13be7
1 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Compendium of generic DNS utilities
|
||||
Compendium of generic DNS utilities.
|
||||
|
||||
.. note:
|
||||
Some functions in the `dnsutil` execution module depend on `dig`.
|
||||
'''
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
@ -232,7 +235,7 @@ def check_ip(ip_addr):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt ns1 dig.check_ip 127.0.0.1
|
||||
salt ns1 dnsutil.check_ip 127.0.0.1
|
||||
'''
|
||||
if _has_dig():
|
||||
return __salt__['dig.check_ip'](ip_addr)
|
||||
|
@ -302,7 +305,7 @@ def NS(domain, resolve=True, nameserver=None):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt ns1 dig.NS google.com
|
||||
salt ns1 dnsutil.NS google.com
|
||||
|
||||
'''
|
||||
if _has_dig():
|
||||
|
@ -323,7 +326,7 @@ def SPF(domain, record='SPF', nameserver=None):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt ns1 dig.SPF google.com
|
||||
salt ns1 dnsutil.SPF google.com
|
||||
'''
|
||||
if _has_dig():
|
||||
return __salt__['dig.SPF'](domain, record, nameserver)
|
||||
|
@ -346,7 +349,7 @@ def MX(domain, resolve=False, nameserver=None):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt ns1 dig.MX google.com
|
||||
salt ns1 dnsutil.MX google.com
|
||||
'''
|
||||
if _has_dig():
|
||||
return __salt__['dig.MX'](domain, resolve, nameserver)
|
||||
|
|
Loading…
Add table
Reference in a new issue