Register Ubuntu Hostname with DNS Server – How to Guide

16.04dhcpdnshostnamelubuntu

I'm in an Active Directory domain.

I have a windows computer (not joined to the domain). When I connect it to the network, I can ping it by hostname from any other computer on the network.

How can I replicate this behavior on Lubuntu 16.04?

I've tried samba/winbind. I got somewhere with avahi, but that doesn't appear to work across different subnets.

If my unjoined windows computer can do it so effortlessly, then there HAS to be a way with Ubuntu. Please help.

Best Answer

Thank you to @Vidarlo.

I went back to my dhclient.conf file (/etc/dhcp/dhclient.conf), where I had tried submitting the fqdn already, but I admittedly cut and pasted code I saw from other discussion forums. I had the following,

send fqdn.fqdn "myhost.my.corp.domain";
send fqdn.encoded on;
send fqdn.server-update off;

but the send fqdn.server-update should have been set to on.

Then, to release your lease with the DHCP server and get a new lease run the following commands:

sudo dhclient -r
sudo dhclient

And now it works!

Related Question