I have several questions about the internal workings of network-manager, systemd-resolve, and the /etc/resolv.conf and any other files such as nsswitch.conf.
Is there a file or several files, where DNS server information could be entered and have the resolved read it and automatically add it to the /etc/resolv.conf at each boot up instead of deleting my information or only using the DHCP DNS information?
Are there any documents, with deep technical details, about how all of these subsystems work now, The network-manager, resolved, naming services, and DHCP?
Are there any instances where someone has something setup like this and have overcome the problem we are having?
I have an ubuntu 18.04 desktop computer that we are testing to be the new, bigger,better desktop for the company. This desktop has to connect to the internet through AT&T or SPECTRUM or some cable company. Then an openvpn tunnel is going to connect to our openvpn servers. In our current testing, when we do this allowing network-manager to control things our computers do not resolve our company servers through the openvpn tunnel unless a very specific set of circumstances are met. Essentially in the end we have to put the DNS server information into the /etc/resolv.conf file manually.
So I have a theory, but without technical documents that explain how things work, it is just a theory.
The Desktop computer is turned on, it boots and reads DHCP for its network data. This data includes all of the normal pieces of information. The IP address, the DNS, the gateway, etc. The DNS data gets stored in a cache someplace in the OS kernel space. This data is stored away from the normal data that would come from static files. This data is then connected to the system via the internal network of 127.0.0.0/8. The DNS mechanism is handled through a variety of IPC calls in the kernel. This is what allows applications to access DNS data via the API.
Now I have a lot of years of experience, 35, as a UNIX engineer so some or all of this explanation may be wrong. IF there is a document that explains how all of this works with a lot of technical details, then I could probably read that and figure it out myself. Maybe I am just not looking in the correct place for the documents.
It would be great if I could find a way to get this working. So the final outcome needs to be this:
Users login from home across an Internet Modem of some ISP. They then launch openvpn. Once openvpn is launched and connects, work can begin.
Right now this is broken.
If you need more data feel free to ask me. I can give you all kinds of data about the computers configurations, but I can not give you any sensitive company data or references.
Thank you in advance for your assistance.