Score:0

Adding DNS server address permanently

pf flag

Ubuntu 18.04

I have a laptop that I'm attempting to configure the DNS nameservers, which was configured by someone who is no longer working for my company. For some reason, the laptop IO doesn't work, keyboard, mouse, or USB ports. I'm accessing the system via ssh.

It has a static IP address assigned, but I can't find where it was done. The place I normally configure is within the /etc/network/interfaces.d/**** directory. But there is nothing there. I checked the interfaces file, and it looks like it's configured as DHCP, but it's not. So I checked netplan, there is only one configuration file and it's showing zero configuration for a static IP.

I can confirm that it is configured as static and not DHCP, as my company has a different range for DHCP addresses, and this is out of that range.

So I did some digging to see what network manager is running.

sudo service systemd-networkd status
sudo service network-manager status
sudo service systemd-resolvd status

both network-manager and systemd-resolvd were running. systemd-networkd was loaded but not running.

so my first question is

  • Should both systemd-resolvd and network-manager both be running?

After that, I started looking at nmcli and resolvd. nmcli seemed like it would be mroe straight forward. So I first looked at the information related to nmcli and how to use it. I was able to pull up at the adapter information. I was able to use nmcli to add the dns addresses to the nmcli ipv4.dns information. However, when I restart the network-manager it does not update the resolvd.config file.

I'm assuming it's the fact that I have both systemd-resolvd and network-manager running at the same time.

What steps should I take to resolve my issue, and allow me to edit the dns nameservers without losing access to the laptop. Because the laptop IO doesn't work, keyboard/mouse, if I shutdown the network adapter, I might not get it back up.

What recommendations do you have? What other steps should I take? What other information do you need????

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.