Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-02-2003, 11:14 PM   #1
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Rep: Reputation: 32
eth0 and host address


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 and i was adding a new one in 10.x.x.x or

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 some time later, thats why i wish to know how to add it via the command...

any one get what i mean...

Old 12-03-2003, 04:53 PM   #2
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
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,681

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 AM.

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