<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 19, 2021 at 8:56 AM Tom H <<a href="mailto:tomh0665@gmail.com">tomh0665@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Feb 19, 2021 at 1:51 PM Jerry Geis <<a href="mailto:jerry.geis@gmail.com" target="_blank">jerry.geis@gmail.com</a>><br>
wrote:<br>
> On Fri, Feb 19, 2021 at 6:47 AM Tom H <<a href="mailto:tomh0665@gmail.com" target="_blank">tomh0665@gmail.com</a>> wrote:<br>
>> On Thu, Feb 18, 2021 at 9:38 PM Jerry Geis <<a href="mailto:jerry.geis@gmail.com" target="_blank">jerry.geis@gmail.com</a>><br>
>> wrote:<br>
>>> On Thu, Feb 18, 2021 at 3:30 PM Tom H <<a href="mailto:tomh0665@gmail.com" target="_blank">tomh0665@gmail.com</a>> wrote:<br>
>>>> On Thu, Feb 18, 2021 at 5:32 PM Jerry Geis <<a href="mailto:jerry.geis@gmail.com" target="_blank">jerry.geis@gmail.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> When I do nmcli everything works except updating the<br>
>>>>> /etc/resolv.conf<br>
>>>>><br>
>>>>> nmcli connection modify "Wired Connection 1" ipv4.method manual<br>
>>>>> ipv6.method ignore autoconnect yes ipv4.addr <a href="http://192.168.1.2/23" rel="noreferrer" target="_blank">192.168.1.2/23</a> gw4<br>
>>>>> 192.168.1.1 ipv4.dns 8.8.8.8<br>
>>>>><br>
>>>>> How do I update /etc/resolv.conf ?<br>
>>>><br>
>>>> ls -l /etc/resolv.conf ?<br>
>>>> cat /etc/resolv.conf ?<br>
>>><br>
>>> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by<br>
>>> resolvconf(8)<br>
>>> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE<br>
>>> OVERWRITTEN<br>
>>> # 127.0.0.53 is the systemd-resolved stub resolver.<br>
>>> # run "systemd-resolve --status" to see details about the actual<br>
>>> nameservers.<br>
>>> nameserver 127.0.0.53<br>
>>><br>
>>> I have tried to install resolvconf, I put "nameserver 8.8.8.8" ><br>
>>> /etc/resolvconf/resolv.conf.d/head  but I cannot get it to reload.<br>
>>><br>
>>> I tried systemctl restart resolvconf - but not updating<br>
>><br>
>> Please bottom-post.<br>
>><br>
>> So "/etc/resolv.conf" is provided by resolved and is a symlink to<br>
>> "/run/systemd/resolve/stub-resolv.conf".<br>
>><br>
>> If you really want to use "resolvconf", you have to change<br>
>> "/etc/resolv.conf" to be a symlink to "/run/resolvconf/resolv.conf".<br>
>><br>
>> But I wouldn't use "resolvconf" if I were you. Ubuntu already has<br>
>> a more multi-layered network setup than other dostros, and adding<br>
>> "resolvconf" to the mix can only be a source of head-scratching.<br>
>> I've tested using "resolvconf" in the past and I've found that<br>
>> the integration with resolved isn't full. "resolvectl" lists the<br>
>> resolvconf nameserver for "global" and MetworkManager/networkd<br>
>> nameserver for "link", and, it's the "global" value that's queried<br>
>> when you run "dig".<br>
>><br>
>> It looks to me that you're using "netplan" and that you should<br>
>> edit "/etc/netplan/<yaml>" to change NIC's setup. The "nmcli"<br>
>> command that you ran wrote the config to<br>
> "/etc/NetworkManager/system-connections/<conn>" and, apart from the<br>
>> fact that the dns settings are listed in "nmcli c sh id <conn>",<br>
>> they aren't taken into account; and they're ignored after a reboot.<br>
><br>
> You right: netplan says use NetworkManager<br>
> /etc/netplan/00-installer-config.yaml<br>
> # This is the network config written by 'subiquity'<br>
> network:<br>
>   version: 2<br>
>   renderer: NetworkManager<br>
><br>
> I removed resolvconf - but now I'm back to /etc/resolv.conf not<br>
> getting updated.<br>
<br>
:(<br>
<br>
What's "etc/resolv.conf" symlinked to?<br>
<br>
Does one of "/run/NetworkManager/resolv.conf" or<br>
"/run/systemd/resolve/resolv.conf" have a nameserver that you want to<br>
use?<br>
<br>
<br>
> Your correct that the dns settings were saved to the<br>
> /etc/NetworkManager path file - but how do I get that to be part<br>
> of /etc/resolv.conf ?<br>
<br>
Two ways.<br>
<br>
1) Change "/etc/netplan/00-installer-config.yaml" to<br>
<br>
network:<br>
    ethernets:<br>
        <your_nic>:<br>
            addresses:<br>
                - <a href="http://192.168.1.2/23" rel="noreferrer" target="_blank">192.168.1.2/23</a> ## is "23" a typo?<br>
            dhcp4: false<br>
            gateway4: 192.168.1.1<br>
            nameservers:<br>
                addresses:<br>
                    - 8.8.8.8<br>
    renderer: NetworkManager<br>
    version: 2<br>
<br>
2) Delete "/etc/netplan/00-installer-config.yaml" and let your config<br>
under "/etc/NetworkManager/system-connections" set up NM. (I'm<br>
assuming that NM's enabled systemd-wise, which it should be by<br>
default.]<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a></blockquote><div><br></div><div><br></div><div><br></div><div>I tried removing /etc/netplan/00-installer-config.yaml - and rebooting and everythign was messed up then.</div><div>Not DHCP address no X no nothing.</div><div>So I put the file back - and rebooted - back to normal.   </div><div>Not the behaviour I expected.</div><div><br></div><div>Jerry </div></div></div>