Skip to content

cedricdubois/python-dnsdist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

python-dnsdist

Python library to talk to dnsdist

Requirements

  • libnacl is required if you need to talk to a dnsdist instance that is compiled with libsodium support

    pip install libnacl
    

Example

from DNSDist import Console

# Connect to dnsdist on localhost:5199 without a key
console = Console()
print console.execute('showServers()')
from DNSDist import Console

# Connect to dnsdist instance on 10.100.1.2:3200 with supplied key
console = Console(key='tZ+bElqKb+moWK1BAAlSjIjAdVb9zTXT7Ziqj/lw/R8=', host='10.100.1.2', port=3200)
print console.execute('showServers()')
from DNSDist import Console

# Connect to dnsdist instance on 10.100.1.2 and do not use libsodium even if its available
console = Console(host='10.100.1.2', have_sodium=False)
print console.execute('showServers()')

About

Python library to talk to dnsdist

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%