Linux Command Help

Hi All,
I have setup webmin access trying to play around with a few settings and i deleted the host addresses. Please give me commands to add these to the host address. I have attached a screen shot please give me the commands to add these. thanks
Webminscreen.jpg
LVL 2
Clement PAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
KishorDasConnect With a Mentor Commented:
Please go to the networking and section in your webmin and reconfigure the setting there, Otherwise directly at shell prompt you can edit the file /etc/hosts using any of your favorite editor.

Thanks
Kishor Kumar Das
0
 
RoyConnect With a Mentor Commented:
You can go to console and try these:

#hostname

this should give you the host name of the server and you can add it back to the UI of webmin.
0
 
nociSoftware EngineerCommented:
ifconfig -a

gives you the ipaddresses your system uses.
0
 
Clement PAuthor Commented:
After what i did i lost access to webmin.
I expected a more detailed answer as I am new here.
But yes it worked.. thanks..

here is what worked for me
[root@Server Downloads]# hostname localhost.localdomain
[root@Server Downloads]# vim /etc/sysconfig/network
[root@Server Downloads]# vim /etc/hosts

edited hosts as desired and was able to access the Webmin again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.