My first post!
Writing a business app for our company. C# - MONO - Raspberry Pi 3B/ 3B+ - Raspbian Stretch - so far so good...with one exception.
The concept is we will send an end user a Raspberry Pi and they will connect the pi to their network and it will get assigned an address via DHCP.
Then the app will retrieve the DNS Suffix and "phone home" to securely download the apps config for that customers network. That way i can send a raspberry pi without having to pre-configure it.
On a regular Debian Stretch Distro (non PI) the resolv.conf is auto created and looks something like this:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
However on the Pi(raspbian) the autocreated resolv.conf looks like this:
# Generated by resolvconf
Without the search line in the resolv.conf the Dns Suffix returns a null string.
if i manually add the search line my app works and all is well (until the next reboot of course).
i need resolvconf to automatically populate the search line for the MONO (C#.NET) Network class to pick up the DNS Suffix.
all the answers I've found deal with solving connectivity issues or how you can manually add to the resolv.conf file so it doesn't get overwritten.
my issue is, i need it to be dynamic...it seems to correctly find and populate the "domain" i just need it to populate the "search" as well.
anyone have any insight?