alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
pkgs.minidhcp: RIP
author
lassulus
date
2 years ago
(Mar 17, 2024, 6:24 AM CET)
commit
0fff179b
0fff179b3a4d48553320453759a730950a1e9f90
parent
009605d1
009605d121f247bdbb18d79ecd3cfe97ff7b758b
-20
1 changed file
Expand all
Collapse all
Unified
Split
5pkgs
minidhcp
minidhcp
-20
5pkgs/minidhcp/minidhcp
Reviewed
···
1
1
-
#!/usr/bin/env nix-shell
2
2
-
#!nix-shell -i bash -p dnsmasq
3
3
-
4
4
-
set -efux
5
5
-
6
6
-
tmpdir=$(mktemp -d)
7
7
-
trap 'rm -rf "$tmpdir"' EXIT
8
8
-
9
9
-
cat > "$tmpdir"/dnsmasq.conf <<EOF
10
10
-
interface=vm0
11
11
-
dhcp-leasefile=$tmpdir/dnsmasq.leases
12
12
-
port=0
13
13
-
14
14
-
dhcp-range=10.102.0.100,10.102.0.150,24h
15
15
-
16
16
-
# DNS
17
17
-
dhcp-option=option:dns-server,10.102.0.1
18
18
-
EOF
19
19
-
20
20
-
sudo dnsmasq -k -C "$tmpdir"/dnsmasq.conf