File tree Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,17 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
48
48
apt-get update -y
49
49
apt-get install -y git vim curl build-essential openssh-server
50
50
apt-get install -y jq open-iscsi nfs-common
51
-
51
+
52
52
echo "export CRI_CONFIG_FILE=/var/lib/rancher/rke2/agent/etc/crictl.yaml" >> /root/.bashrc
53
53
echo "export PATH=$PATH:/var/lib/rancher/rke2/bin" >> /root/.bashrc
54
54
SHELL
55
55
56
+ config . vm . provision "net" ,
57
+ type : "shell" ,
58
+ path : "scripts/fix.generic-ubuntu-dns.sh" ,
59
+ privileged : true ,
60
+ run : "always"
61
+
56
62
# Server node
57
63
config . vm . define "#{ server_hostname } " do |node |
58
64
node . vm . hostname = "#{ server_hostname } "
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # see:
3
+ # https://github.com/lavabit/robox/issues/11
4
+ # https://github.com/lavabit/robox/issues/54
5
+
6
+ # exit if we are not on modern ubuntu version
7
+ test -d /etc/netplan || exit 0
8
+
9
+ # Reset netplan config, not really needed; just to clearly indicate no fixed dns is used
10
+ tee << EOF > /etc/netplan/01-netcfg.yaml
11
+ network:
12
+ version: 2
13
+ renderer: networkd
14
+ ethernets:
15
+ eth0:
16
+ dhcp4: true
17
+ dhcp6: false
18
+ optional: true
19
+ nameservers:
20
+ addresses: []
21
+ EOF
22
+ netplan generate
23
+ systemctl restart systemd-networkd.service
24
+ systemctl restart ifplugd.service
25
+
26
+ # Remove fixed DNS entries and disable DNSSEC, disable flaky caching, or emdns
27
+ tee << EOF > /etc/systemd/resolved.conf
28
+ [Resolve]
29
+ DNS=
30
+ FallbackDNS=
31
+ Domains=
32
+ #LLMNR=no
33
+ #MulticastDNS=no
34
+ DNSSEC=no
35
+ Cache=no
36
+ DNSStubListener=yes
37
+ EOF
38
+
39
+ systemctl daemon-reload
40
+ systemctl restart systemd-resolved
41
+
42
+ echo " Fixed networking."
43
+
44
+ # verify with: systemd-resolve --status
You can’t perform that action at this time.
0 commit comments