LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2003, 11:14 PM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Rep: Reputation: 32
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
 
Old 12-03-2003, 04:53 PM   #2
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Rep: Reputation: 30
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
 
Old 12-03-2003, 05:29 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error IP address already used by another host lngmn7 Linux - Networking 2 08-29-2005 05:41 AM
host to connect to itself through eth0 ? vlad Programming 1 02-01-2005 02:29 PM
Change Host and Ip address Fedora 3 s1goldman Linux - Newbie 3 01-04-2005 05:24 PM
Should i use the eth0 ip address of my internet ip address when applying iptables ForumKid Linux - Security 2 01-03-2002 09:54 AM
Same host to connect to itself over eth0 ? vlad Linux - Networking 2 12-15-2000 11:34 PM


All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration