What I really want is a static hostname so that I'll be able to ssh into that computer and use it for some server stuff regardless of the (dynamic) ip address.
Michael Brailsford wrote:
Did you post twice on purpose? If so, please don't it clutters things up and it reflects poorly to post the same thing twice in so short a time.
I live in Wymount and I'm running Redhat 8.0 on a couple computers. I'd like each to be able to request a hostname like devin1.rn.byu.edu from the DHCP or DNS server for my computer. How do I do that?
Assuming that you are using dhcpcd as your dhcp client then you want to specify the "-H" option. That will tell the dhcp client to set your hostname to whatever the dhcp server says. I do not think that there is a way to tell the dhcp server what hostname you want, so with the -H option, you will get different hostnames each time you lose your dhcp lease.
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
