GithubHelp home page GithubHelp logo

isabella232 / dnsmasq-4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from poseidon/dnsmasq

0.0 0.0 0.0 31 KB

Network infrastructure for small networks

Shell 33.52% Makefile 44.88% Dockerfile 21.60%

dnsmasq-4's Introduction

dnsmasq Quay

dnsmasq provides a container image for running DHCP, proxy DHCP, DNS, and/or TFTP with dnsmasq. Use it to test different network setups with clusters of network bootable machines.

The image bundles undionly.kpxe, ipxe.efi, and grub.efi (experimental) for chainloading BIOS and UEFI clients to iPXE.

Usage

Run the container image as a DHCP, DNS, and TFTP service.

sudo docker run --rm --cap-add=NET_ADMIN --net=host quay.io/poseidon/dnsmasq \
  -d -q \
  --dhcp-range=192.168.1.3,192.168.1.254 \
  --enable-tftp --tftp-root=/var/lib/tftpboot \
  --dhcp-match=set:bios,option:client-arch,0 \
  --dhcp-boot=tag:bios,undionly.kpxe \
  --dhcp-match=set:efi32,option:client-arch,6 \
  --dhcp-boot=tag:efi32,ipxe.efi \
  --dhcp-match=set:efibc,option:client-arch,7 \
  --dhcp-boot=tag:efibc,ipxe.efi \
  --dhcp-match=set:efi64,option:client-arch,9 \
  --dhcp-boot=tag:efi64,ipxe.efi \
  --dhcp-userclass=set:ipxe,iPXE \
  --dhcp-boot=tag:ipxe,http://matchbox.example.com:8080/boot.ipxe \
  --address=/matchbox.example.com/192.168.1.2 \
  --log-queries \
  --log-dhcp

Press ctrl-C to stop the Docker container.

Configuration Flags

Configuration arguments can be provided as flags. Check the dnsmasq man pages for a complete list.

flag description example
--dhcp-range Enable DHCP, lease given range 172.18.0.50,172.18.0.99, 192.168.1.1,proxy,255.255.255.0
--dhcp-boot DHCP next server option http://matchbox.foo:8080/boot.ipxe
--enable-tftp Enable serving from tftp-root over TFTP NA
--address IP address for a domain name /matchbox.foo/172.18.0.2

Development

Build a container image locally.

make image

Run the image with Docker on the docker0 bridge (default).

sudo docker run --rm --cap-add=NET_ADMIN poseidon/dnsmasq -d -q

dnsmasq-4's People

Contributors

artem-sidorenko avatar dependabot[bot] avatar dghubble avatar ebraminio avatar pequalsmp avatar rkoster avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.