Created
April 13, 2017 18:45
-
-
Save pcn/01662767119f195d65aa2026ae23bbd5 to your computer and use it in GitHub Desktop.
A quick salt runner using dns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import salt.client | |
def geta(target='saltmaster', name=None): | |
lcl = salt.client.get_local_client(__opts__['conf_file']) | |
return lcl.cmd(target, 'dnsutil.A', [name]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment