How to configure 17.10 desktop's systemd-resolve dns via terminal?
up vote
2
down vote
favorite
I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?
systemd-resolved
add a comment |Â
up vote
2
down vote
favorite
I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?
systemd-resolved
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?
systemd-resolved
I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?
systemd-resolved
systemd-resolved
asked Apr 13 at 16:10
Aero Windwalker
4691514
4691514
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
Open the file /etc/systemd/resolved.conf
in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved
to activate the changes.
Common options to change in that file are in the [Resolve]
section, for example:
DNS=192.168.1.1
Domains=mynet
Will set your dns server and search domain.
The resolved.conf manual page is a good source for information on how to edit the configuration file.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Open the file /etc/systemd/resolved.conf
in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved
to activate the changes.
Common options to change in that file are in the [Resolve]
section, for example:
DNS=192.168.1.1
Domains=mynet
Will set your dns server and search domain.
The resolved.conf manual page is a good source for information on how to edit the configuration file.
add a comment |Â
up vote
2
down vote
Open the file /etc/systemd/resolved.conf
in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved
to activate the changes.
Common options to change in that file are in the [Resolve]
section, for example:
DNS=192.168.1.1
Domains=mynet
Will set your dns server and search domain.
The resolved.conf manual page is a good source for information on how to edit the configuration file.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Open the file /etc/systemd/resolved.conf
in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved
to activate the changes.
Common options to change in that file are in the [Resolve]
section, for example:
DNS=192.168.1.1
Domains=mynet
Will set your dns server and search domain.
The resolved.conf manual page is a good source for information on how to edit the configuration file.
Open the file /etc/systemd/resolved.conf
in a text editor and make the desired changes. Afterwards run sudo systemctl restart systemd-resolved
to activate the changes.
Common options to change in that file are in the [Resolve]
section, for example:
DNS=192.168.1.1
Domains=mynet
Will set your dns server and search domain.
The resolved.conf manual page is a good source for information on how to edit the configuration file.
answered Apr 13 at 16:32
Sebastian Stark
4,708938
4,708938
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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%2f1024712%2fhow-to-configure-17-10-desktops-systemd-resolve-dns-via-terminal%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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