Re: From network-scripts to NetworkManager on a router : questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 2/18/20 9:37 AM, Nicolas Kovacs wrote:
> Le 18/02/2020 à 12:28, Anand Buddhdev a écrit :
>> Neither. The DNS configuration should not normally be bound to a
>> specific interface, so don't configure it with any interface. If you do,
>> and that interface goes down, your DNS config also disappears.
> 
> I would like to do that very much, only NetworkManager makes you jump
> through burning loops to do so.
> 
> With network-scripts, it was just a matter of editing resolv.conf with
> nameserver and search domain directives.
> 
> I can't do that anymore, because /etc/resolv.conf gets squashed by
> NetworkManager. If I don't fill in DNS information for the interfaces,
> then all I get is an empty "#Generated by NetworkManager" line.
> 
> On the other hand, using nmtui, the only place where I can actually fill
> in DNS information is in the interface-specific dialogs.

Or use 'nmcli con mod <interface_name> ipv4.dns "8.8.8.8"'

or edit:

/etc/sysconfig/network-scripts/ifcfg-<interface-name>

> 
> After googling around for this problem, it looks like I'm not the only
> one scratching my head.
> 
> Any suggestions ?
> 
> Niki
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux