prep for dns
This commit is contained in:
parent
327b544f41
commit
df3a557043
3 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
"repositories": [],
|
||||
"replace_repositories": "False",
|
||||
"keyrings": [],
|
||||
"packages": "nginx grub-pc linux-image-amd64 docker.io make curl openssl nano isc-dhcp-server",
|
||||
"packages": "nginx grub-pc linux-image-amd64 docker.io make curl openssl nano isc-dhcp-server bind9 bind9utils bind9-doc",
|
||||
"create_ca": "True",
|
||||
"preinstall_scripts": [
|
||||
"configs/scripts/ca.sh"
|
||||
|
|
|
@ -22,9 +22,9 @@ while true; do
|
|||
fi
|
||||
done
|
||||
|
||||
echo -e "\nauto enp0s3\niface enp0s3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0" | tee -a /mnt/etc/network/interfaces
|
||||
echo -e "\nauto enp0s3\niface enp0s3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0\n dns-nameservers 192.168.1.1" | tee -a /mnt/etc/network/interfaces
|
||||
|
||||
cp /mnt/root/dhcpd.conf /mnt/etc/dhcp/
|
||||
sed -i 's/^INTERFACESv4=.*/INTERFACESv4="enp0s3"/' /mnt/etc/default/isc-dhcp-server
|
||||
|
||||
read a
|
||||
chroot /mnt /bin/bash -c "systemctl enable bind9"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"repositories": [],
|
||||
"replace_repositories": "False",
|
||||
"keyrings": [],
|
||||
"packages": "nginx grub-pc linux-image-generic docker.io make curl openssl nano isc-dhcp-server",
|
||||
"packages": "nginx grub-pc linux-image-generic docker.io make curl openssl nano isc-dhcp-server bind9 bind9utils bind9-doc",
|
||||
"create_ca": "True",
|
||||
"preinstall_scripts": [
|
||||
"configs/scripts/ca.sh"
|
||||
|
|
Loading…
Reference in a new issue