[rhn-users] Hostname change not getting reflected on redhat network profile for system

Raj nwiraj at yahoo.com
Fri Mar 31 19:25:22 UTC 2006


Yep, that is where it was getting the hostname from.
  Added a temporary entry to /etc/hosts and up2date registered it with proper hostname.
  However I will need the dns entry(which is also the old hostname) since it used by applications to connect to the box.
   
  Only issue i see is when i update the hardware profile and if someone removes the /etc/hosts entry, the RHN system profile will get updated with the dns entry again.
   
  Thanks

James Puellmann <lists.james at gmail.com> wrote:
    The only place the old host name is on the dns server.
Bingo. The client updates the "Hostname:" part of it's System Details page with the results of a reverse lookup. If DNS returns a bogus name, the bogus name will get stored in the profile. I believe you could force it to show the hostname you want by adding the info to your /etc/hosts, but your best bet is probably just to change the DNS info.

Note the difference between the "profile name" and the "hostname" The profile name is arbitrary and can be reset manually. The "Hostname:" value in the System Details RHN web page is always going to show the results of a query on the system's IP address ("unknown" if the query fails). Also, you don't need to re-register your system just to change the info on the System Details page. The "up2date --hardware" command will update this information for you.



Raj wrote:     Registered a linux box with redhat network using the command "up2date --register" and following the prompts.
The hostname was changed after the registeration (made this change using hostname command and also /etc/sysconfig/network file).
To reflect this change, tried to delete the system-profile on red-hat network and delete the file /etc/sysconfig/rhn/systemid and re-register on red-hat network, it stills shows up with old hostname.
The only place the old host name is on the dns server.
Any hints?
 
TIA,
Raj
  
  
---------------------------------
  How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. 
  
---------------------------------
  _______________________________________________  rhn-users mailing list  rhn-users at redhat.com  https://www.redhat.com/mailman/listinfo/rhn-users
_______________________________________________
rhn-users mailing list
rhn-users at redhat.com
https://www.redhat.com/mailman/listinfo/rhn-users

		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20060331/b38fa5a4/attachment.htm>


More information about the rhn-users mailing list