Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-20-2003, 12:18 AM   #1
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, 01:54 AM   #2
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:

Last edited by reiss; 11-20-2003 at 01:55 AM.
Old 11-20-2003, 05:11 AM   #3
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, etc.

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


Old 11-20-2003, 05:22 AM   #4
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, 07:25 AM   #5
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.

Old 11-20-2003, 02:38 PM   #6
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, a dynamic dns service for free this morning and registered an account with them. So, here is my setup: - 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 - 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: and

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 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 and 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, 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 02:40 PM.
Old 11-20-2003, 08:48 PM   #7
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

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

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

; IN A



;; ADDITIONAL SECTION: 86400 IN A 86400 IN A 86400 IN A

;; Query time: 141 msec
;; 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.


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

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

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