LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   eth0 and host address (https://www.linuxquestions.org/questions/linux-newbie-8/eth0-and-host-address-122145/)

tommytomato 12-02-2003 10:14 PM

eth0 and host address
 
Hi

i'm trying to add my eth0 IP address and host name.

I was using webmin at one stage to add it in, under the part in webmin
were it shows you localhost, local.domain etc at 127.0.0.0. and i was adding a new one in 10.x.x.x www.mysite.com or mysite.com

last time i looked it had localhost, local.domain, mysite
and my shell command looks like this
[root@www root]#
so that seems to be ok.
I cant view my URL from linux box using the URL address, but i can view it using IP address. when i did edit that page i was able to view my URL from linux ok


I am now using a linux shell, and i cant seem to remember what it was called so i can look it up.

my httpd is running ok, and i wish to add in a subdomain called

www.forums.mysite.com some time later, thats why i wish to know how to add it via the command...


any one get what i mean...


tommytomato
:study: :newbie:

LinuxBlackBox 12-03-2003 03:53 PM

lol, no, I'm afraid I dont really understand. But the best way to chaNge the domain is in /etc/hosts, so check there to make sure it is set to your domain name

Mara 12-03-2003 04:29 PM

tommytomato, if you'd like to have your hostname visible to the world, you need to setup bind or any other DNS server (and buy the domain, but it looks you've already done it). When it comes to local settings (on the one machine), edit /etc/hosts and you can redirect everything everywhere.
I don't understand your problem exactly. Could you explain?


All times are GMT -5. The time now is 05:04 PM.