Score:0

How I can update DNS in /etc/resolve.conf from /etc/resolvconf/resolv.conf.d/tail without rebooting system

cn flag
N S

How I can update DNS in /etc/resolve.conf from /etc/resolvconf/resolv.conf.d/tail without rebooting system

I made below entries in file root@server1:/etc/resolvconf/resolv.conf.d

# cat tail
nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 4.4.4.4

after this I restarted resolveconf.service and systemd-resolved.service but still it did not update /etc/resolv.conf . But if i reboot system /etc/resolv.conf will be updated with /etc/resolvconf/resolv.conf.d/tail contents.
How I can make /etc/resolv.conf update without rebooting system ?

Score:0
cn flag
N S

Just and update to everyone finally I found service name to update /etc/resolv.conf file .

this service restart update DNS entry in my file .

systemctl restart named-resolvconf.service

And it works :)

Score:0
it flag

You could investigate other .service files to see which one sets up /etc/resolv.conf, or just restart all of networking: service networking restart (or service network restart, I'm not at my 'puter now). If you're accessing remotely, this will disconnect you, and you'll have to reconnect under the new rules, so be sure the changes are correct.

N S avatar
cn flag
N S
done root@server1:/etc/systemd/system/multi-user.target.wants# systemctl restart systemd-networkd.service but still file is not updating . How to check which .service manage /etc/resolve.conf as per symbolic link it shows this file is linked with resolvconf service, but restartin that also didn't work. i have restarted named.service also lrwxrwxrwx 1 root root 29 Feb 26 18:07 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
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.