From 594d4019d9eecfd22e4bb72dd4c93b5999deb595 Mon Sep 17 00:00:00 2001 From: nicholasmanios Date: Wed, 18 Mar 2020 18:39:28 -0400 Subject: [PATCH] Added dhcpd.conf --- aries/dhcpd/dhcpd.conf | 89 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 aries/dhcpd/dhcpd.conf diff --git a/aries/dhcpd/dhcpd.conf b/aries/dhcpd/dhcpd.conf new file mode 100644 index 0000000..161def1 --- /dev/null +++ b/aries/dhcpd/dhcpd.conf @@ -0,0 +1,89 @@ +include "/usr/local/etc/namedb/rndc.key"; + +log-facility local7; + +#ddns-updates on; +#ddns-update-style interim; + +use-host-decl-names on; +allow unknown-clients; + +authoritative; + +zone secmayl.com. { +# primary 192.168.0.1; + primary 127.0.0.1; +# key rndc-key; +} + +zone 168.192.in-addr.arpa. { +# primary 192.168.0.1; + primary 127.0.0.1; +# key rndc-key; +} + +# subnet for wired devices +subnet 192.168.0.0 netmask 255.255.255.0 { + range 192.168.0.100 192.168.0.254; + + option subnet-mask 255.255.255.0; + option broadcast-address 192.168.0.255; + option routers 192.168.0.1; + option domain-name-servers 192.168.0.1; + option domain-name "secmayl.com"; + +# ddns-domainname "secmayl.com."; +# ddns-rev-domainname "168.192.in-addr-arpa."; + + one-lease-per-client on; + + default-lease-time 604800; + max-lease-time 604800; +} + +# subnet for wireless devices +#subnet 192.168.1.0 netmask 255.255.255.0 { +# range 192.168.1.100 192.168.1.254; + +# option subnet-mask 255.255.255.0; +# option broadcast-address 192.168.1.255; +# option routers 192.168.1.1; +# option domain-name-servers 192.168.1.1; +# option domain-name "secmayl.com"; + +## ddns-domainname "secmayl.com."; +## ddns-rev-domainname "168.192.in-addr-arpa."; + +# one-lease-per-client on; + +# default-lease-time 604800; +# max-lease-time 604800; +#} + +# static hosts + +host viziocastdisplay { + # result from initial DHCP communication: + #starts 2 2018/07/10 00:16:45; + #ends 2 2018/07/17 00:16:45; + #cltt 2 2018/07/10 01:13:19; + #binding state active; + #next binding state free; + #rewind binding state free; + #hardware ethernet c4:1c:ff:f9:33:9c; + #set vendor-class-identifier = "dhcpcd-5.2.10:Linux-3.10.0:armv7l:Sigma TRIX-SX7 board"; + #client-hostname "viziocastdisplay"; + + hardware ethernet c4:1c:ff:f9:33:9c; + fixed-address 192.168.0.240; +} + +################################################## +# Events + +#on commit { +# set clientName = pick-first-value(option fqdn.hostname, option host-name); +# set clientIp = binary-to-ascii(10, 8, ".", loaded-address); +# set clientMac = binary-to-ascii(16, 8, ":", sunstring(hardware, 1, 6)); +# execute("shell.sh", "commit", clientName, clientIp, clientMac); +#} \ No newline at end of file