PDA

View Full Version : Newbie DNS Issues


Broady
27th May 2007, 03:22 AM
Hi all,
I have built a Fedora 6 LAMP Server inside my home network. I have registered a domain name an would like to host that domain name (e.g mydomainname.com) from the Fedora box.

I have a static IP Address which I have configured and setup in my DLink DSL-604T router/modem. My router is currently redirecting port 80 properly to the Linux box.

My issues are when it comes to adding the domain name to the Linux Box. I get a bit confused. I have Webmin installed.
A couple of questions are:
1. What DNS Server do I use for the domain name? From 2 weeks of reading, some state to add my static IP address as the nameserver. Some say to add my ISP nameserver address:i.e:
ns1.myISP.com
ns2.myISP.com
Others say to use any server as your DNS server.
What do I do?

Currently my nameserver are set up as:
nameserver 10.1.1.1
nameserver 4.2.2.1

I get confused about the zones ect. Should I be using Webmin to add the domain name or should I be doing it manually?

At this stage, everything else on the server is running great. I can access my Fedora Core Test Page by typing http://10.1.1.2 inside my network, and from outside my network I can access the same page by typing in my static IP address. It is just getting the domain name to bind to the IP address is really confusing me.

I know I am asking alot, and am very greatful for anyone who could help me or point me in the right direction. I have searched for an online guide however couldn't find one for Bind.

ThankYou
Jason

sameeh
27th May 2007, 05:15 AM
Usually you have two options there:

1. Use the DNS servers that was default when you got the domain name, that will usually be that of the DNS registrar.
Then you just need to create A records to point www.youdomain.com ---> your IP
after a couple of hours...(it will take some time for other DNS servers to add your newly created record to their name cache) your website will be up and running

2. You point the whole domain 'yourdomain.com' to your system. In this case you'll be setting up your own DNS server for your domain in your local system. Which isn't recommended and totally unnecessary since you are only trying to get a LAMP server running.

so go for option 1!

Broady
27th May 2007, 05:32 AM

Hi sameeh,
Thankyou for your reply.

Is that it? Is it really that simple?
Do I just leave the 2 Godaddy DNS Server address' as is. Currently my domain name is parked with Godaddy.

I have been reading all about and trying to learn and understand Bind 9. It was really getting confusing there. At this stage I just want to host one website (http://www.broadyswebdesign.com) on my Linux box.

Are there any other steps I need to do to get the site working?
I have got the site completed. I just need to find out where to upload it to (Which folder, which account)
I have created 2 user accounts on the server.
1. The main one which is the administer
2. A user named Jason.

I appolgise for all the questions. I am really a Linux newbie, however a fast learner.
Thank you

sameeh
27th May 2007, 05:39 AM
yeah just go to the Domain Control Panel and create a record www.broadwayswebdesign.com to you global IP, that means your routers IP.

and about hosting you don't need hosting right, you've got you own webspace and hosting, you LAMP server. Just point the DNS record and everything will work fine

Broady
27th May 2007, 05:51 AM
Hi again sameeh
I logged into the Godaddy control panel for broadyswebdesign.com.
I used their "Total DNS Control" tool and changed the A (host) IPAddress from the one that was already there to my static IP address.
There are heaps of other options here, i.e www, mobilemail, pda, email, imap, mail, pop ect, however these come under the "CNAMES (Aliases) header. I suppose I can figure these out later. At this stage I just want my home page to be displayed when someone enters http://www.broadyswebdesign.com

As per the hosting. I don't need an external host as you stated that I have a LAMP server.
I am just trying to sort out what folder to upload my site to, so that Fedora Core Test Page isn't shown every time you type in the domain name. Also to upload the site do I need to login as the second user (Jason) instead of the main Administrator.

Broady
27th May 2007, 05:54 AM
The domain name must of resolved itself already.
From inside my network I entered http://www.broadyswebdesign.com and ended up at my Router login page.
Is there any way I can access the site internally by adding http://www.broadyswebdesign.com into the address bar instead of http://10.1.1.2

sameeh
29th May 2007, 10:07 AM
it seems like you've got it working :)
all the best...

Zigzagcom
29th May 2007, 11:21 PM
Broady,
add this to your /etc/hosts file (poor mans DNS):
xxx.xxx.xxx.xxx www.broadyswebdesign.com
You have to do this for each machine on your local network, that you use to access in this manner. The xxx.xxx.xxx.xxx is the "internal" IP address of the webserver, most likely something like 192.168.1.xxx. (I see you are using the 10.xxx.xxx.xxx network)
Alternatively, you may have that capability on your router/gateway.

On a windows machine the host file is located at:
C:\WINDOWS\system32\drivers\etc

I would definitely go with having you DNS hosted...the amount of money is usually very reasonable, you get redundancy (hosted DNS servers are often located on several different networks), and you don't have the administrative burden.