objective differences between running `NetworkManager` and changing `resolv.conf`
up vote
0
down vote
favorite
Are there any objective differences between running NetworkManager and changing resolve.conf in the following manners? See method #1 and method #2 below. They appear to produce identical results in Ubuntu 18.04.
Method #1: resolv.conf
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo gedit /etc/systemd/resolved.conf
# then added the google nameservers to my file, adding this line.
nameserver 8.8.8.8
Method 2: NetworkManager
![]()
networking 18.04 network-manager dns
add a comment |
up vote
0
down vote
favorite
Are there any objective differences between running NetworkManager and changing resolve.conf in the following manners? See method #1 and method #2 below. They appear to produce identical results in Ubuntu 18.04.
Method #1: resolv.conf
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo gedit /etc/systemd/resolved.conf
# then added the google nameservers to my file, adding this line.
nameserver 8.8.8.8
Method 2: NetworkManager
![]()
networking 18.04 network-manager dns
1
#1 changes the symlink for /etc/resolv.conf (to try and cure DNS resolution issues in 18.xx) and adds a nameserver (should use the DNS=) to systemd-resolve. #2 uses NetworkManager via a GUI to change the DNS servers. (Note: you really should settle down a bit and consolidate all of your various network questions, down to one question, accompanied by a little research first).
– heynnema
Dec 4 at 0:30
1
Also, when starting graphic applications from the terminal command line, usesudo -Hinstead of justsudo, or you may create a login loop for your username.
– heynnema
Dec 4 at 14:41
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Are there any objective differences between running NetworkManager and changing resolve.conf in the following manners? See method #1 and method #2 below. They appear to produce identical results in Ubuntu 18.04.
Method #1: resolv.conf
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo gedit /etc/systemd/resolved.conf
# then added the google nameservers to my file, adding this line.
nameserver 8.8.8.8
Method 2: NetworkManager
![]()
networking 18.04 network-manager dns
Are there any objective differences between running NetworkManager and changing resolve.conf in the following manners? See method #1 and method #2 below. They appear to produce identical results in Ubuntu 18.04.
Method #1: resolv.conf
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo gedit /etc/systemd/resolved.conf
# then added the google nameservers to my file, adding this line.
nameserver 8.8.8.8
Method 2: NetworkManager
![]()
networking 18.04 network-manager dns
networking 18.04 network-manager dns
asked Dec 3 at 22:08
stackinator
467114
467114
1
#1 changes the symlink for /etc/resolv.conf (to try and cure DNS resolution issues in 18.xx) and adds a nameserver (should use the DNS=) to systemd-resolve. #2 uses NetworkManager via a GUI to change the DNS servers. (Note: you really should settle down a bit and consolidate all of your various network questions, down to one question, accompanied by a little research first).
– heynnema
Dec 4 at 0:30
1
Also, when starting graphic applications from the terminal command line, usesudo -Hinstead of justsudo, or you may create a login loop for your username.
– heynnema
Dec 4 at 14:41
add a comment |
1
#1 changes the symlink for /etc/resolv.conf (to try and cure DNS resolution issues in 18.xx) and adds a nameserver (should use the DNS=) to systemd-resolve. #2 uses NetworkManager via a GUI to change the DNS servers. (Note: you really should settle down a bit and consolidate all of your various network questions, down to one question, accompanied by a little research first).
– heynnema
Dec 4 at 0:30
1
Also, when starting graphic applications from the terminal command line, usesudo -Hinstead of justsudo, or you may create a login loop for your username.
– heynnema
Dec 4 at 14:41
1
1
#1 changes the symlink for /etc/resolv.conf (to try and cure DNS resolution issues in 18.xx) and adds a nameserver (should use the DNS=) to systemd-resolve. #2 uses NetworkManager via a GUI to change the DNS servers. (Note: you really should settle down a bit and consolidate all of your various network questions, down to one question, accompanied by a little research first).
– heynnema
Dec 4 at 0:30
#1 changes the symlink for /etc/resolv.conf (to try and cure DNS resolution issues in 18.xx) and adds a nameserver (should use the DNS=) to systemd-resolve. #2 uses NetworkManager via a GUI to change the DNS servers. (Note: you really should settle down a bit and consolidate all of your various network questions, down to one question, accompanied by a little research first).
– heynnema
Dec 4 at 0:30
1
1
Also, when starting graphic applications from the terminal command line, use
sudo -H instead of just sudo, or you may create a login loop for your username.– heynnema
Dec 4 at 14:41
Also, when starting graphic applications from the terminal command line, use
sudo -H instead of just sudo, or you may create a login loop for your username.– heynnema
Dec 4 at 14:41
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1098245%2fobjective-differences-between-running-networkmanager-and-changing-resolv-conf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
#1 changes the symlink for /etc/resolv.conf (to try and cure DNS resolution issues in 18.xx) and adds a nameserver (should use the DNS=) to systemd-resolve. #2 uses NetworkManager via a GUI to change the DNS servers. (Note: you really should settle down a bit and consolidate all of your various network questions, down to one question, accompanied by a little research first).
– heynnema
Dec 4 at 0:30
1
Also, when starting graphic applications from the terminal command line, use
sudo -Hinstead of justsudo, or you may create a login loop for your username.– heynnema
Dec 4 at 14:41