LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-19-2003, 11:18 PM   #1
SuperNoob
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 5

Rep: Reputation: 0
How to setup self-hosting web server


I have my web server set up locally.
I can type in my ip address and my web server (apache/php/mysql) works great.

I just went and registered a .com domain name.
When it asked for the name server part, I just typed in my current ip address.

I have road runner and I know this will change, but it is not a commercial setup or anything. Just to play around with. My ip will only change if I reset my cable modem, correct? If so, then optimistically I can have the same ip if I don't lose power???

My question is in DNS, which I don't understand all that much. Was I correct to use my ip address or should I have entered something else? I installed slackware -> added apache/mysql/php startup services and didn't really do anything else.

What do I need to do next??
 
Old 11-20-2003, 12:54 AM   #2
reiss
Member
 
Registered: Nov 2003
Location: Sydney
Distribution: Debian
Posts: 30

Rep: Reputation: 15
If you have an IP that changes from time to time have a look at:
http://dyndns.org

Last edited by reiss; 11-20-2003 at 12:55 AM.
 
Old 11-20-2003, 04:11 AM   #3
tusher
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 36

Rep: Reputation: 15
well, i assuming you are trying to point your webserver IP address at the field of DNS, if so...the problem can be solved by using a DNS server! you need to keep your webserver IP address at that dns server. and next you have to place your DNS server IP address to your register control panel, like, ns1.example.com... ns2.example.com etc.

you didn't mention about ur webserver ip address .. is this internal or external ?

thank,

tusher.
 
Old 11-20-2003, 04:22 AM   #4
reiss
Member
 
Registered: Nov 2003
Location: Sydney
Distribution: Debian
Posts: 30

Rep: Reputation: 15
follow the link, dyndns provides a dynamic name server, so basically you go to them and get an account, that assigns your domain name to your current IP address. If that IP changes you either change the IP by hand, or you can install a package that will update their name server automatically whenever your IP changes...
 
Old 11-20-2003, 06:25 AM   #5
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Rep: Reputation: 30
No, I dont believe that the DNS server was the right place to put your IP. I am setting up the same thing myself right now and i must say it is rather confusin. My domain came with 'LInk Forwarding' so I typed in my IP in the link forwarding field and now whenever someone goes to my downmain they are redirected into my server.

-LBB
 
Old 11-20-2003, 01:38 PM   #6
SuperNoob
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
YAAY, I think.

Ok, thanks for the leads. I found dnsexit.com, a dynamic dns service for free this morning and registered an account with them. So, here is my setup:

Dotster.com - Registered my domain name with them because I heard they had really good service and it was like $13.50 to do. (DNS management was $10/yr with them, why not get it free with dnsexit.com)

DNSExit.com - Registered an account with them. I entered in my domain name that I registered with Dotster and added an alias for www They listed two dns servers: dns1.dnsexit.com and dns2.dnsexit.com.

I went back to Dotster and signed in with my account. I found out that my ip address didn't work and the defaults were in there. I changed these to the 2 that dnsexit.com gave me and I think that all I need to do is wait?

I think I was getting confused when looking up google searches. There is LOCAL dns and GLOBAL dns, right? Apparently you can set up a LAN dns and have it resolve addresses that have local IPs. AND then there are the global dns servers. Root (A-M) dns servers - 10 are located in the US. I am trying to sort this out, here is what I have:

Root DNS (A-M servers)
|
.COM DNS Servers (Is this level for the ns1.dyndns.org and dns1.dnsexit.com servers? )
|
??? (OR would they fit in here somehow)
|
Road Runner's DNS (Does this exist?)
|
"My Computer"

So when I type in a domain name and it needs to be resolved, does it just travel up the tree until it finds an entry, then sends it back resolved? If a ip address changes and is entered into the dns1.dnsexit.com, how are the other dns servers updated? Does each DNS servers refresh the data like every hour or day or are the changes sent to the other servers waiting?
Also, what info does the registrar send when a domain is registered? Where does it send it to, the root server?

Last edited by SuperNoob; 11-20-2003 at 01:40 PM.
 
Old 11-20-2003, 07:48 PM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
your site should be accessable by your ip address, if it's not it is going to be either you have a firewall blocking it or your isp is blocking it. If it's blocked then your domainname will not work either.

After that works you can use the domain name. You just need to setup your ip address and use their dns. It takes a while for all of the dns servers to update. If you use one of the other services then you need to follow their instructions.

you can test the dns like this

dig @dnsserver yourdomain

dnsserver will be the name or ip of the dns server you register with.

[david@zeus david]$ dig @ns0.directnic.com dcphillips.net

; <<>> DiG 9.2.1 <<>> @ns0.directnic.com dcphillips.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65225
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;dcphillips.net. IN A

;; ANSWER SECTION:
dcphillips.net. 86400 IN A 68.63.15.139

;; AUTHORITY SECTION:
dcphillips.net. 86400 IN NS ns0.directnic.com.
dcphillips.net. 86400 IN NS ns1.directnic.com.

;; ADDITIONAL SECTION:
ns0.directnic.com. 86400 IN A 204.251.10.100
ns0.directnic.com. 86400 IN A 204.251.10.100
ns1.directnic.com. 86400 IN A 206.251.177.2

;; Query time: 141 msec
;; SERVER: 204.251.10.100#53(ns0.directnic.com)
;; WHEN: Thu Nov 20 19:46:34 2003
;; MSG SIZE rcvd: 145




The dns your using should update in just a few minutes, it will take several hoours before all other dns updates.
 
  


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
setup mailserver/web server/ftp server hariiyer Linux - Networking 1 11-27-2004 01:16 AM
how do i ping my server , what is my server name , web hosting waheedrafiq Linux - Software 7 12-03-2003 11:35 AM
How to setup a Hosting server? coolgy768 Linux - Newbie 2 11-10-2003 12:43 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM
Securing Mail and Web hosting server Tigger Linux - Security 1 05-31-2003 10:27 AM


All times are GMT -5. The time now is 01:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration