All Projects → Oefenweb → ansible-dnsmasq

Oefenweb / ansible-dnsmasq

Licence: MIT License
Ansible role to set up Dnsmasq in Debian-like systems

Programming Languages

Dockerfile
14818 projects
Jinja
831 projects

Projects that are alternatives of or similar to ansible-dnsmasq

dist-detect
Try to determine what Linux/Unix distribution is running on a remote host and get a hint if security updates are applied.
Stars: ✭ 14 (-22.22%)
Mutual labels:  dns, debian, ubuntu
Piadvanced
This started as a custom install for my pihole!
Stars: ✭ 144 (+700%)
Mutual labels:  debian, ubuntu, dnsmasq
Rpi Pxe Server
setup a Raspberry Pi as an PXE-Server
Stars: ✭ 197 (+994.44%)
Mutual labels:  debian, ubuntu, dnsmasq
Iptables Boilerplate
rock solid default firewall-rules for webhosts
Stars: ✭ 249 (+1283.33%)
Mutual labels:  debian, ubuntu
I3 Gaps Deb
Tool to create and install Debian (or Ubuntu) packages of i3-gaps.
Stars: ✭ 236 (+1211.11%)
Mutual labels:  debian, ubuntu
Kvm Install Vm
Bash script to build local virtual machines using KVM/libvirt and cloud-init.
Stars: ✭ 248 (+1277.78%)
Mutual labels:  debian, ubuntu
Mtprotoproxyinstaller
One-click script to install MTProto Proxy server on CentOS, Ubuntu and Debian
Stars: ✭ 216 (+1100%)
Mutual labels:  debian, ubuntu
Devdns
Automagic Docker DNS for local development
Stars: ✭ 99 (+450%)
Mutual labels:  dns, dnsmasq
Roguesploit
Powerfull Wi-Fi trap!
Stars: ✭ 262 (+1355.56%)
Mutual labels:  dns, dnsmasq
Glider
glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
Stars: ✭ 1,710 (+9400%)
Mutual labels:  dns, dnsmasq
Sysuv6 Dns
May be the best DNS in SYSU.
Stars: ✭ 142 (+688.89%)
Mutual labels:  dns, dnsmasq
Termite Style
Simple script to change color-schemes and fonts for Termite.
Stars: ✭ 224 (+1144.44%)
Mutual labels:  debian, ubuntu
Deb Simple
A lightweight, bare-bones apt repository server
Stars: ✭ 222 (+1133.33%)
Mutual labels:  debian, ubuntu
Mindforger Repository
MindForger documentation repository.
Stars: ✭ 221 (+1127.78%)
Mutual labels:  debian, ubuntu
Elk Hole
elasticsearch, logstash and kibana configuration for pi-hole visualiziation
Stars: ✭ 136 (+655.56%)
Mutual labels:  dns, dnsmasq
Dns Proxy
Simple DNS Proxy written in Node.JS. Override hosts, domains, or tlds. Redirect certain domains to different nameservers.
Stars: ✭ 165 (+816.67%)
Mutual labels:  dns, dnsmasq
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: ✭ 724 (+3922.22%)
Mutual labels:  dns, dnsmasq
udm-host-records
Scripts to list, add, update, and remove host records in the Ubiquiti UniFI Dream Machine DNS forwarder.
Stars: ✭ 109 (+505.56%)
Mutual labels:  dns, dnsmasq
Lamp
Install LAMP(Linux + Apache + MySQL/MariaDB + PHP ) for CentOS/Debian/Ubuntu
Stars: ✭ 2,456 (+13544.44%)
Mutual labels:  debian, ubuntu
Howdy
🛡️ Windows Hello™ style facial authentication for Linux
Stars: ✭ 3,237 (+17883.33%)
Mutual labels:  debian, ubuntu

dnsmasq

CI Ansible Galaxy

Set up Dnsmasq in Debian-like systems.

Requirements

None

Variables

  • dnsmasq_service_state: [default: started]: The state of th service (e.g. stopped)

  • dnsmasq_service_enabled: [default: true]: Whether the service should start on boot

  • dnsmasq_service_resolved_disabled: [default: false]: Whether the service systemd-resolved should be disabled

  • dnsmasq_etc_default_domain_suffix: [optional]: Specifies the domain which hosts read from the DHCP leases file must have to be legal (e.g. dnsdomainname)

  • dnsmasq_etc_default_dnsmasq_opts: [optional]: Options to pass to the dnsmasq daemon (e.g. --conf-file=/etc/dnsmasq.alt)

  • dnsmasq_etc_default_config_dir: [default: /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new]: Searches this drop directory for configuration options (leave empty to comment out)

  • dnsmasq_etc_default_ignore_resolvconf: [optional]: If the resolvconf package is installed, dnsmasq will use its output rather than the contents of /etc/resolv.conf to find upstream nameservers (e.g. true)

  • dnsmasq_etc_default: [see: defaults/main.yml]: List of lines to be added to /etc/default/dnsmasq

  • dnsmasq_dnsmasq_conf: [default: []]: List of lines to be added to /etc/dnsmasq.conf

  • dnsmasq_dnsmasq_d_files_present: [default: {}]: Declaration of specific configuration files (to add)

  • dnsmasq_dnsmasq_d_files_present.key: [required]: The name of the configuration file (e.g. hosts)

  • dnsmasq_dnsmasq_d_files_present.key.{n}: [default: []]: List of lines of the configuration file

  • dnsmasq_dnsmasq_d_files_absent: [default: {}]: Specific configuration files to remove

  • dnsmasq_dnsmasq_d_files_absent.key: [required]: The name of the configuration file (e.g. hosts)

Dependencies

None

Example

---
- hosts: all
  roles:
    - dnsmasq

Example with configuration (force domain to an IP address)

---
- hosts: all
  roles:
    - dnsmasq
  vars:
    dnsmasq_dnsmasq_d_files_present:
      example-com:
        - address=/mail.example.com/192.168.0.8
        - address=/www.example.com/192.168.0.9

Example with configuration (caching)

---
- hosts: all
  pre_tasks:
    - name: create resolv-file for dnsmasq
      copy:
        content: |
          nameserver 8.8.8.8
          nameserver 8.8.4.4
        dest: /etc/resolv.dnsmasq
  roles:
    - ../../
  vars:
    dnsmasq_dnsmasq_conf:
      - |
        port=53
        listen-address={{ ansible_lo['ipv4']['address'] }}
        bind-interfaces
    dnsmasq_dnsmasq_d_files_present:
      cache:
        - |
          domain-needed
          bogus-priv
          no-hosts
          dns-forward-max=150
          cache-size=1000
          neg-ttl=3600
          resolv-file=/etc/resolv.dnsmasq
          no-poll

License

MIT

Author Information

  • Mark van Driel
  • Mischa ter Smitten

Feedback, bug-reports, requests, ...

Are welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].