Jump to content

have dhclient send $HOSTNAME


ab1jx

Recommended Posts

Minor tweak.  I don't have gethostname() (Actually I think that's a C function, not an executable.)  Anyway my Rock64 didn't show up my wifi network by name.

 

In /etc/dhcp/dhclient.conf I changed:

#send host-name = gethostname();
send host-name = $HOSTNAME;

 

Now it works.  And $HOSTNAME is just whatever's in /etc/hostname so you may need to change it if you've got 2 or more machines of the same kind.  I mostly lug around a cell phone and I can ftp or ssh to rock64 from anywhere in the house.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines