OPNsense Forum

Archive => 15.1 Legacy Series => Topic started by: Pulsar on April 11, 2015, 06:18:04 pm

Title: [Enhancement] DNS servers from the console menu
Post by: Pulsar on April 11, 2015, 06:18:04 pm
Would it be possible to specify the DNS servers from the console menu? At worst we can open a shell and edit /etc/resolv.conf.
Title: Re: [Enhancement] DNS servers from the console menu
Post by: franco on April 12, 2015, 09:18:28 am
I'm curious why you need the DNS servers in the first place. The GUI is reachable via the IP after setup, where the DNS servers can be configured. Are you trying to mimic a unattended installation or a headless deployment?

This is what we would think is part of our API work so that we can have a remote client or command line utility to serve this purpose. Not sure if it's worth writing a local console utility to rewrite DNS servers, but I'm not against merging the code if it's there. :)
Title: Re: [Enhancement] DNS servers from the console menu
Post by: Pulsar on April 13, 2015, 12:43:31 am
Well indeed it was for "I install, I set the DNS then I upgrade" but yes I agree it is a bit unnecessary because I can manually edit /etc/resolv.conf from the shell then run an update after a fresh install. The interest is quite limited in fact...   :o
Title: Re: [Enhancement] DNS servers from the console menu
Post by: franco on April 13, 2015, 07:44:00 am
I am beginning to understand why this is important.... It's a static WAN setup (or no DNS via DHCP) and pkg.opnsense.org needs to be resolved in order to upgrade. We could try to ship with a standard DNS server for such cases, but, OTOH that isn't really good as it would "leak" your queries to the internet by default (most don't care but it makes sense to to assume that's not in the best interest of privacy).

How did you configure the setup? Any particular console menu item? Maybe it's worth asking the user if he wants to enter a DNS server while configuring WAN port?

Thanks for the productive discussion. :)