bananapim5 vs dns
Karl Auer
kauer at biplane.com.au
Sun Oct 29 11:18:06 UTC 2023
On Sun, 2023-10-29 at 06:46 -0400, gene heskett wrote:
> I just edited the NetworkManager's version /etc/resolv.conf which did
> have "search coyote,den" and replaced it with "nameserver
> 192.168.xx.1", wrote it and immediately sudo chattr +i
> resolv.conf, and fixed it, I can now browse this ball of rock and
> water.
Normally DHCP supplies the nameserver info. If you are not getting your
IP address from DHCP, then you do have to manually set it up. If you
are running NetworkManager, then configure the DNS server(s) in
NetworkManager. If you have a NetworkManager GUI, you can use that,
otherwise use the CLI (nmcli).
"nmcli connection show --active" will show you your active connections.
If the connection you want to add DNS info to is (say) "MyEth0", you
can get everything NetworkManager has configured for the connection
with "nmcli connection show MyEth0". And you can tell it to use
particular DNS servers with this:
nmcli connection modify MyEth0 +ipv4.dns 192.168.1.1
"man nmcli" for more info.
BUT: If you are expecting this device to get its nameserver info from
DHCP, debug that. Find out why that isn't working.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
GPG fingerprint: 61A0 99A9 8823 3A75 871E 5D90 BADB B237 260C 9C58
Old fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
More information about the ubuntu-users
mailing list