Skip to content

Instantly share code, notes, and snippets.

@pcn
Created April 13, 2017 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcn/01662767119f195d65aa2026ae23bbd5 to your computer and use it in GitHub Desktop.
Save pcn/01662767119f195d65aa2026ae23bbd5 to your computer and use it in GitHub Desktop.
A quick salt runner using dns
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