Omit DNS from generated device configurations

I need to disable DNS from generating client configuration but when I set default['firezone']['wireguard']['dns'] = nil, I get below error.

{“init terminating in do_boot”,{#{‘exception’=>true,‘struct’=>‘Elixir.ArgumentError’,message=><<“could not fetch environment variable “WIREGUARD_DNS” because it is not set”>>},[{‘Elixir.System’,‘fetch_env!’,1,[{file,“lib/system.ex”},{line,698}]},{erl_eval,do_apply,6,[{file,“erl_eval.erl”},{line,685}]},{erl_eval,expr,5,[{file,“erl_eval.erl”},{line,446}]},{erl_eval,exprs,5,[{file,“erl_eval.erl”},{line,123}]},{elixir,recur_eval,3,[{file,“src/elixir.erl”},{line,296}]},{elixir,eval_forms,3,[{file,“src/elixir.erl”},{line,274}]},{‘Elixir.Code’,validated_eval_string,3,[{file,“lib/code.ex”},{line,404}]},{‘Elixir.Config’,‘eval!’,3,[{file,“lib/config.ex”},{line,260}]}]}}
2022-06-01_11:05:52.61120 init terminating in do_boot ({,[{Elixir.System,fetch_env!,1,[{},{}]},{erl_eval,do_apply,6,[{},{}]},{erl_eval,expr,5,[{},{}]},{erl_eval,exprs,5,[{},{}]},{elixir,recur_eval,3,[{},{}]},{elixir,eval_forms,3,[{},{}]},{Elixir.Code,validated_eval_string,3,[{},{}]},{Elixir.Config,eval!,3,[{},{}]}]})

I have submitted an issue for you: Allow nil DNS server list · Issue #670 · firezone/firezone · GitHub

1 Like

@remy Thanks for the feedback and @gbe0 thanks for creating the issue! I’ll make sure this gets fixed by making that config var optional. In the meantime, you may have luck editing the dns field to be a blank string in the one site record in the sites table.

1 Like