def version():
    cmd = 'dnsmasq -v'
    out = __salt__['cmd.run'](cmd).splitlines()
    comps = out[0].split()
    return comps[2]
Shows installed version of dnsmasq.
dataset/ETHPy150Open saltstack/salt/salt/modules/dnsmasq.py/version