The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How ls | wc -l works? krishmaths UNIX for Dummies Questions & Answers 3 04-11-2008 01:16 PM
How does NORET_TYPE works ? amit4g Linux 1 01-28-2008 02:27 AM
Works with FTP but not NFS pbonilla UNIX for Dummies Questions & Answers 1 01-08-2008 01:31 PM
how it works hosts jgutierrez29 UNIX for Dummies Questions & Answers 1 06-08-2005 01:37 PM
how sendmail works alzep UNIX for Dummies Questions & Answers 3 02-18-2004 12:33 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-2007
Registered User
 

Join Date: Sep 2007
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
how domain name reg works

I am trying to run a solaris 10 webserver(apache). I want my website to be "http://www.whatever.com" during my installation process of solaris i named my host for my server "whatever" and named my domain name "whatever.com"

is this right or do i need to make my host name "www" and dmain name "whatever.com"

my setup is my ISP---> cable modem---> router ---> my server(my router and cable modem are different pieces of hardware so i believe they both have their own ips. i have port forwarding setup through a static ip.

if my modem, router, and computer each have their own ip addresses, what information do i need to give when i register my domain name.

im thinking this: "whatever.com" and the ip would be my servers static ip address.
or would it be my gateway's ip address or my modems ip address.

so basically...how does the internet (a dns server) know where to find my server if my router is the one that resolvs my static ip address?

p.s. - i'm using www.no-ip.com as my domain registrar.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-18-2007
Smiling Dragon's Avatar
Disorganised User
 

Join Date: Nov 2007
Location: New Zealand
Posts: 562
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
The server name and server domain is not very important as far as your webserver is concerned. You should however have your hostname set to something like 'myname' and domainname set to something like 'mydomain.com' - ie it forms 'myname.mydomain.com'. Don't include the hostname in the domainname.
I'd advise against calling your entire server 'www'.

The name to respond to (ie www.whatever.com) is set in your apache config file.
If a web request arrives directed to that name, apache will respond. This doesn't have to (and usually shouldn't) match your hostname.

You will need your ISP to assign you a static IP or find a way to dynamically update whatever DNS server you are using to provide lookups for your domain.

The domain entry has a couple of name servers set in it. If you are on dynamic IP, that can't be something within the dynamic range (no-ip and zoneedit can probably help you out with that). People looking for your website will lookup your domain name and get sent to the name server assigned to it. It then hands back the relevant IP address (which will be the IP your ISP has given you).
The web browser then goes to that IP, and asks for a webpage for the name it used (eg www.whatever.com'). Provided your router is redirecting traffic that arrives on port 80 to your server and server is running a webserver, it will respond. If the name used (eg www.whatever.com) matches the config file, the webserver will hand back something useful.
Reply With Quote
  #3 (permalink)  
Old 11-19-2007
Registered User
 

Join Date: Sep 2007
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
another problem

i reconfigured httpd.conf and it was working fine until i added a module to the var/apache folder. it's called "forms-lib.pl" and i need it for one of my perl files which should grab the input of a textbox from one of my html files and put it into the perl file for processing. when i try "Full/Path/Name/apachectl start" it gives me a syntax error at line 213 in my httpd.conf file which is where it reads the first module. if i comment that line out it just goes to the next line where it reads the next module and says syntax error at line 214. i deleted the forms-lib.pl from apache and it still wont start. is there a way i can just start with my original configuration settings for apache. i changed a lot of folders and moved a lot of stuff around. i basically wanted to use var/apache instead of usr/apache as my server folder. i'm not even at the point of registering a domain name yet. i just want to get this working again first.

*sorry if this isnt the right forum to go in
Reply With Quote
  #4 (permalink)  
Old 11-20-2007
Registered User
 

Join Date: Sep 2007
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
nevermind

i got it working now. i changed my ServerName in httpd.conf from my ip address to my domain name and thats why apache wouldnt start. if you havent registered your domain name yet and u still want to test apache u need to put ur ip address not the domain name next to ServerName.
Reply With Quote
  #5 (permalink)  
Old 11-20-2007
Smiling Dragon's Avatar
Disorganised User
 

Join Date: Nov 2007
Location: New Zealand
Posts: 562
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by vutty81 View Post
i got it working now. i changed my ServerName in httpd.conf from my ip address to my domain name and thats why apache wouldnt start. if you havent registered your domain name yet and u still want to test apache u need to put ur ip address not the domain name next to ServerName.
Actually, you don't need to use the IP to test.
You can still have the ServerName set to what you want, just add the same name and the corresponding IP to use to your hosts file. If you are browsing from a unix machine, /etc/hosts, from windows, search for hosts and/or lmhosts (I think) and add it to those.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102