Discussion:
[PLUG] Ubuntu 16.04 fails to update DNS IP from DHCP server
Amey Abhyankar
2018-10-30 04:09:26 UTC
Permalink
Hello,

Recently I observed, couple of Ubuntu 16.04 workstations are getting
valid IP address from DHCP server but fails to update DNS IP.
I checked /var/log/kern.log but that isn't showing any interesting
error regarding networking part.

My DHCP server is hosted on Cisco SG300-28 28-Port switch.
Everything seems ok at switch side as other Ubuntu,Macbook & Windows
OS users are not facing this issue in same VLAN/network.

For now as a work around I am modifying /run/resolvconf/resolv.conf
and adding 8.8.8.8 DNS.
But again, if the user reboots respective Ubuntu 16.04 workstation,
that change are overwritten by system.

Anybody knows permanent fix for this issue? Thanks.
I did Google and got plenty of results but none of them are working so
far for me.

Regards,
Amey.
Arun Khan
2018-10-30 06:04:28 UTC
Permalink
Post by Amey Abhyankar
Hello,
Recently I observed, couple of Ubuntu 16.04 workstations are getting
valid IP address from DHCP server but fails to update DNS IP.
I checked /var/log/kern.log but that isn't showing any interesting
error regarding networking part.
What is the content of /etc/resolv.conf (soft link file) after boot?
IIRC package 'resolvconf' is part of the Ubuntu base install.
It's possible to configure resolvconf to write specific DNS servers
[a]. I think there are other methods to tell resolvconf to pick up
DNS servers from the DHCP server via Network Manager settings.

[a] https://unix.stackexchange.com/questions/128220/how-do-i-set-my-dns-when-resolv-conf-is-being-overwritten

-- Arun Khan
Amey Abhyankar
2018-10-30 07:10:03 UTC
Permalink
Post by Arun Khan
Post by Amey Abhyankar
Hello,
Recently I observed, couple of Ubuntu 16.04 workstations are getting
valid IP address from DHCP server but fails to update DNS IP.
I checked /var/log/kern.log but that isn't showing any interesting
error regarding networking part.
What is the content of /etc/resolv.conf (soft link file) after boot?
Will give a check shortly.
In my Ubuntu 16.04 workstation [with no DNS issue], /etc/resolv.conf output =

------------------------------------------------------------------------------------------------------
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
------------------------------------------------------------------------------------------------------

The other Ubuntu 16.04 workstations with DNS problem has = nameserver
127.0.1.1 value in /run/resolvconf/resolv.conf
Post by Arun Khan
IIRC package 'resolvconf' is part of the Ubuntu base install.
It's possible to configure resolvconf to write specific DNS servers
[a]. I think there are other methods to tell resolvconf to pick up
DNS servers from the DHCP server via Network Manager settings.
[a] https://unix.stackexchange.com/questions/128220/how-do-i-set-my-dns-when-resolv-conf-is-being-overwritten
-- Arun Khan
_______________________________________________
plug-mail mailing list
http://list.plug.org.in/listinfo/plug-mail
Loading...