Systemd-resolved not getting nameservers from DHCP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
I'm running a few ubuntu 18.04 servers in a Windows AD environment. The servers have no problem getting IPs via DHCP, but the DNS settings specified in option-6 are not written to any files.
Originally, I just updated /etc/resolv.conf, but this config wouldn't hold after a reboot. The standard 18.04 image uses NetPlan so we aren't concerned here about NetworkManager. After tracing it back to systemd-resolved and having to hardset the nameservers in the /etc/systemd/resolved.conf things seem to be working.
My question is simply how does one rectify dhcpcd option-6 with systemd-resolved? I don't want to have to hardset these variable on the creation of each server.
Also, dnsmasq doesn't seem to be an issue here, it's caching just fine as /etc/resolv.conf still points to 127.0.0.1 as long as /etc/systemd/resolved.conf has the DNS settings.
dns dhcp systemd-resolved
add a comment |Â
up vote
0
down vote
favorite
I'm running a few ubuntu 18.04 servers in a Windows AD environment. The servers have no problem getting IPs via DHCP, but the DNS settings specified in option-6 are not written to any files.
Originally, I just updated /etc/resolv.conf, but this config wouldn't hold after a reboot. The standard 18.04 image uses NetPlan so we aren't concerned here about NetworkManager. After tracing it back to systemd-resolved and having to hardset the nameservers in the /etc/systemd/resolved.conf things seem to be working.
My question is simply how does one rectify dhcpcd option-6 with systemd-resolved? I don't want to have to hardset these variable on the creation of each server.
Also, dnsmasq doesn't seem to be an issue here, it's caching just fine as /etc/resolv.conf still points to 127.0.0.1 as long as /etc/systemd/resolved.conf has the DNS settings.
dns dhcp systemd-resolved
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm running a few ubuntu 18.04 servers in a Windows AD environment. The servers have no problem getting IPs via DHCP, but the DNS settings specified in option-6 are not written to any files.
Originally, I just updated /etc/resolv.conf, but this config wouldn't hold after a reboot. The standard 18.04 image uses NetPlan so we aren't concerned here about NetworkManager. After tracing it back to systemd-resolved and having to hardset the nameservers in the /etc/systemd/resolved.conf things seem to be working.
My question is simply how does one rectify dhcpcd option-6 with systemd-resolved? I don't want to have to hardset these variable on the creation of each server.
Also, dnsmasq doesn't seem to be an issue here, it's caching just fine as /etc/resolv.conf still points to 127.0.0.1 as long as /etc/systemd/resolved.conf has the DNS settings.
dns dhcp systemd-resolved
I'm running a few ubuntu 18.04 servers in a Windows AD environment. The servers have no problem getting IPs via DHCP, but the DNS settings specified in option-6 are not written to any files.
Originally, I just updated /etc/resolv.conf, but this config wouldn't hold after a reboot. The standard 18.04 image uses NetPlan so we aren't concerned here about NetworkManager. After tracing it back to systemd-resolved and having to hardset the nameservers in the /etc/systemd/resolved.conf things seem to be working.
My question is simply how does one rectify dhcpcd option-6 with systemd-resolved? I don't want to have to hardset these variable on the creation of each server.
Also, dnsmasq doesn't seem to be an issue here, it's caching just fine as /etc/resolv.conf still points to 127.0.0.1 as long as /etc/systemd/resolved.conf has the DNS settings.
dns dhcp systemd-resolved
asked 2 days ago
ShOC_lost
1
1
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f1062143%2fsystemd-resolved-not-getting-nameservers-from-dhcp%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