alfredopalhares / openvpn-update-resolv-conf

Script that updates DNS settings are pushed by the OpenVPN server
462 stars 129 forks source link

Too few Arguments #32

Closed Finkman closed 4 years ago

Finkman commented 4 years ago

Recently installed openresolv at ubuntu16.04 and ran into error:

...
Fri Mar 20 11:58:52 2020 TUN/TAP TX queue length set to 100
Fri Mar 20 11:58:52 2020 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Fri Mar 20 11:58:52 2020 /sbin/ip link set dev tun0 up mtu 1500
Fri Mar 20 11:58:52 2020 /sbin/ip addr add dev tun0 192.168.26.38/24 broadcast 192.168.26.255
Fri Mar 20 11:58:52 2020 /usr/share/openvpn/scripts/update-resolv-conf.sh tun0 1500 1556 192.168.26.38 255.255.255.0 init
dhcp-option DNS 172.18.4.150
dhcp-option DNS 172.18.4.151
dhcp-option DOMAIN xxxxxxxx
Too few arguments.
Too few arguments.
...

any ideas?

gurpal2000 commented 4 years ago

I've seen this. I've resolved (no pun intended) this by not installing openresolv but resolvconf.

apt install resolvconf

With that, I don't see those lines. I was using the script that comes out of the box on Debian.

Finkman commented 4 years ago

Thanks!