0

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.

  • Typically the DHCP server will register the FQDN in DNS for the host. The client has to send the host name option in the DHCP request ttho. – vidarlo Dec 29 '17 at 13:10
  • OK, so then I need to tinker around with /etc/dhcp/dhclient.conf, then, @vidarlo? – SW_user2953243 Dec 29 '17 at 13:32
  • I would guess so, but I'd not be surprised if ad does it some totally different way... – vidarlo Dec 29 '17 at 13:42
  • Check out my answer below @Vidarlo – SW_user2953243 Dec 29 '17 at 13:56
1

Thank you to @Vidarlo.

I went back to my dhclient.conf file, 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.

And now it works!

  • Will this work with home routers? They have built in DHCP and tell clients that the router is the dns server? But are they real DNS servers or just DNS repeaters? – RoboJ1M Sep 19 '18 at 20:39
  • For completeness to help other people trying to solve this problem, it would be helpful to note the location of the dhclient.conf file: /etc/dhcp/dhclient.conf on 16.04 – reads0520 Jan 10 at 18:43
  • The path that I mentioned in my comment on the question? – SW_user2953243 Jan 11 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.