How can I refresh resolv.conf after changing the resolv options in the interfaces file?
up vote
0
down vote
favorite
After bringing up a dhcp controlled instance in AWS I have made changes to the /etc/network/interfaces file for custom nameserver and DNS search strings:
auto lo
auto eth0
iface lo inet loopback
dns-nameservers 1.1.1.1 9.9.9.9
dns-search flapjacks.io flapjacks.net
iface eth0 inet dhcp
I was hoping to be able to restart a service to get resolv.conf to reflect these changes, but I do not know the service to restart... the changes do show up after reboot however. Does anyone know what service should update this?
networking server dns resolv.conf
add a comment |
up vote
0
down vote
favorite
After bringing up a dhcp controlled instance in AWS I have made changes to the /etc/network/interfaces file for custom nameserver and DNS search strings:
auto lo
auto eth0
iface lo inet loopback
dns-nameservers 1.1.1.1 9.9.9.9
dns-search flapjacks.io flapjacks.net
iface eth0 inet dhcp
I was hoping to be able to restart a service to get resolv.conf to reflect these changes, but I do not know the service to restart... the changes do show up after reboot however. Does anyone know what service should update this?
networking server dns resolv.conf
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
After bringing up a dhcp controlled instance in AWS I have made changes to the /etc/network/interfaces file for custom nameserver and DNS search strings:
auto lo
auto eth0
iface lo inet loopback
dns-nameservers 1.1.1.1 9.9.9.9
dns-search flapjacks.io flapjacks.net
iface eth0 inet dhcp
I was hoping to be able to restart a service to get resolv.conf to reflect these changes, but I do not know the service to restart... the changes do show up after reboot however. Does anyone know what service should update this?
networking server dns resolv.conf
After bringing up a dhcp controlled instance in AWS I have made changes to the /etc/network/interfaces file for custom nameserver and DNS search strings:
auto lo
auto eth0
iface lo inet loopback
dns-nameservers 1.1.1.1 9.9.9.9
dns-search flapjacks.io flapjacks.net
iface eth0 inet dhcp
I was hoping to be able to restart a service to get resolv.conf to reflect these changes, but I do not know the service to restart... the changes do show up after reboot however. Does anyone know what service should update this?
networking server dns resolv.conf
networking server dns resolv.conf
asked yesterday
Thaidog
83
83
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I suggest that you try:
sudo ifdown eth0 && sudo ifup -v eth0
The -v
for verbose should produce sufficient outptut to see that the process completed successfully.
Didn't work. Looks to have restarted DHCP + ifup and ifdown but the resolv.conf has not been updated.
– Thaidog
yesterday
Does resolv.conf contain 127.0.0.xx suggesting that dnsmasq is running? What does this report?sudo systemd-resolve --status
It should show the DNS naeservers to be used in absence of a cached lookup previously supplied by dnsmasq. I doubt that you really want to bypass or disable dnsmasq.
– chili555
yesterday
dnsmasq is not installed / running - and your command does not appear valid: "systemd-resolve: unrecognized option '--status'"
– Thaidog
yesterday
I'm not sure what all you did to remove dnsmasq. Is systed running?ps aux | grep systemd
Which version are you running?lsb-release -d
and also:uname -r
– chili555
yesterday
This is 16.04 LTS server - 4.4.0-131-generic - why would i need dnsmasq?
– Thaidog
14 hours ago
|
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I suggest that you try:
sudo ifdown eth0 && sudo ifup -v eth0
The -v
for verbose should produce sufficient outptut to see that the process completed successfully.
Didn't work. Looks to have restarted DHCP + ifup and ifdown but the resolv.conf has not been updated.
– Thaidog
yesterday
Does resolv.conf contain 127.0.0.xx suggesting that dnsmasq is running? What does this report?sudo systemd-resolve --status
It should show the DNS naeservers to be used in absence of a cached lookup previously supplied by dnsmasq. I doubt that you really want to bypass or disable dnsmasq.
– chili555
yesterday
dnsmasq is not installed / running - and your command does not appear valid: "systemd-resolve: unrecognized option '--status'"
– Thaidog
yesterday
I'm not sure what all you did to remove dnsmasq. Is systed running?ps aux | grep systemd
Which version are you running?lsb-release -d
and also:uname -r
– chili555
yesterday
This is 16.04 LTS server - 4.4.0-131-generic - why would i need dnsmasq?
– Thaidog
14 hours ago
|
show 1 more comment
up vote
0
down vote
I suggest that you try:
sudo ifdown eth0 && sudo ifup -v eth0
The -v
for verbose should produce sufficient outptut to see that the process completed successfully.
Didn't work. Looks to have restarted DHCP + ifup and ifdown but the resolv.conf has not been updated.
– Thaidog
yesterday
Does resolv.conf contain 127.0.0.xx suggesting that dnsmasq is running? What does this report?sudo systemd-resolve --status
It should show the DNS naeservers to be used in absence of a cached lookup previously supplied by dnsmasq. I doubt that you really want to bypass or disable dnsmasq.
– chili555
yesterday
dnsmasq is not installed / running - and your command does not appear valid: "systemd-resolve: unrecognized option '--status'"
– Thaidog
yesterday
I'm not sure what all you did to remove dnsmasq. Is systed running?ps aux | grep systemd
Which version are you running?lsb-release -d
and also:uname -r
– chili555
yesterday
This is 16.04 LTS server - 4.4.0-131-generic - why would i need dnsmasq?
– Thaidog
14 hours ago
|
show 1 more comment
up vote
0
down vote
up vote
0
down vote
I suggest that you try:
sudo ifdown eth0 && sudo ifup -v eth0
The -v
for verbose should produce sufficient outptut to see that the process completed successfully.
I suggest that you try:
sudo ifdown eth0 && sudo ifup -v eth0
The -v
for verbose should produce sufficient outptut to see that the process completed successfully.
answered yesterday
chili555
37.5k54976
37.5k54976
Didn't work. Looks to have restarted DHCP + ifup and ifdown but the resolv.conf has not been updated.
– Thaidog
yesterday
Does resolv.conf contain 127.0.0.xx suggesting that dnsmasq is running? What does this report?sudo systemd-resolve --status
It should show the DNS naeservers to be used in absence of a cached lookup previously supplied by dnsmasq. I doubt that you really want to bypass or disable dnsmasq.
– chili555
yesterday
dnsmasq is not installed / running - and your command does not appear valid: "systemd-resolve: unrecognized option '--status'"
– Thaidog
yesterday
I'm not sure what all you did to remove dnsmasq. Is systed running?ps aux | grep systemd
Which version are you running?lsb-release -d
and also:uname -r
– chili555
yesterday
This is 16.04 LTS server - 4.4.0-131-generic - why would i need dnsmasq?
– Thaidog
14 hours ago
|
show 1 more comment
Didn't work. Looks to have restarted DHCP + ifup and ifdown but the resolv.conf has not been updated.
– Thaidog
yesterday
Does resolv.conf contain 127.0.0.xx suggesting that dnsmasq is running? What does this report?sudo systemd-resolve --status
It should show the DNS naeservers to be used in absence of a cached lookup previously supplied by dnsmasq. I doubt that you really want to bypass or disable dnsmasq.
– chili555
yesterday
dnsmasq is not installed / running - and your command does not appear valid: "systemd-resolve: unrecognized option '--status'"
– Thaidog
yesterday
I'm not sure what all you did to remove dnsmasq. Is systed running?ps aux | grep systemd
Which version are you running?lsb-release -d
and also:uname -r
– chili555
yesterday
This is 16.04 LTS server - 4.4.0-131-generic - why would i need dnsmasq?
– Thaidog
14 hours ago
Didn't work. Looks to have restarted DHCP + ifup and ifdown but the resolv.conf has not been updated.
– Thaidog
yesterday
Didn't work. Looks to have restarted DHCP + ifup and ifdown but the resolv.conf has not been updated.
– Thaidog
yesterday
Does resolv.conf contain 127.0.0.xx suggesting that dnsmasq is running? What does this report?
sudo systemd-resolve --status
It should show the DNS naeservers to be used in absence of a cached lookup previously supplied by dnsmasq. I doubt that you really want to bypass or disable dnsmasq.– chili555
yesterday
Does resolv.conf contain 127.0.0.xx suggesting that dnsmasq is running? What does this report?
sudo systemd-resolve --status
It should show the DNS naeservers to be used in absence of a cached lookup previously supplied by dnsmasq. I doubt that you really want to bypass or disable dnsmasq.– chili555
yesterday
dnsmasq is not installed / running - and your command does not appear valid: "systemd-resolve: unrecognized option '--status'"
– Thaidog
yesterday
dnsmasq is not installed / running - and your command does not appear valid: "systemd-resolve: unrecognized option '--status'"
– Thaidog
yesterday
I'm not sure what all you did to remove dnsmasq. Is systed running?
ps aux | grep systemd
Which version are you running? lsb-release -d
and also: uname -r
– chili555
yesterday
I'm not sure what all you did to remove dnsmasq. Is systed running?
ps aux | grep systemd
Which version are you running? lsb-release -d
and also: uname -r
– chili555
yesterday
This is 16.04 LTS server - 4.4.0-131-generic - why would i need dnsmasq?
– Thaidog
14 hours ago
This is 16.04 LTS server - 4.4.0-131-generic - why would i need dnsmasq?
– Thaidog
14 hours ago
|
show 1 more comment
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
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092223%2fhow-can-i-refresh-resolv-conf-after-changing-the-resolv-options-in-the-interface%23new-answer', 'question_page');
}
);
Post as a guest
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
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
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