Skip to main content

Install All dnsmasq

Project description

pyArchOps/dnsmasq

https://badge.fury.io/py/pyarchops-dnsmasq.svg https://img.shields.io/gitlab/pipeline/pyarchops/dnsmasq/next-release.svg Documentation Status https://pyup.io/repos/github/pyarchops/dnsmasq/shield.svg

dnsmasq

Features

  • dnsmasq

Instalation

$ pip install pyarchops-dnsmasq

Usage

impor os
import textwrap
from suitable import Api
from pyarchops import helpers
from pyarchops_dnsmasq import dnsmasq

api = Api(
    '127.0.0.1:22',
    connection='smart',
    remote_user='root',
    private_key_file=os.getenv('HOME') + '/.ssh/id_rsa',
    become=True,
    become_user='root',
    sudo=True,
    ssh_extra_args='-o StrictHostKeyChecking=no'
)

dnsmasq_conf = textwrap.dedent('''
    no-poll
    no-resolv
    cache-size=1500
    no-negcache
    server=/core-vpn/10.16.254.1
    server=/core-vpn/10.16.254.2
    server=/core-vpn/10.16.254.3
    server=8.8.4.4
    server=8.8.8.8
''')

resolve_conf = 'nameserver 127.0.0.1'

config = {
    'dnmasq_conf': dnsmasq_conf,
    'resolv_conf': resolve_conf
}

result = dnsmasq.apply(api, config=config)
print(result)

Development

Install requirements:

$ sudo pacman -S tmux python-virtualenv python-pip libjpeg-turbo gcc make vim git tk tcl

Git clone this repository

$ git clone https://github.com/pyarchops/dnsmasq.git pyarchops.dnsmasq
$ cd pyarchops.dnsmasq
  1. See the Makefile, to get started simply execute:
$ make up

Credits

  • TODO

History

0.0.1 (2018-12-11)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyarchops-dnsmasq, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyarchops_dnsmasq-0.0.2-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyarchops_dnsmasq-0.0.2.tar.gz (10.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page