LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 08-04-2005, 03:57 AM   #1
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Rep: Reputation: 15
Can anyone please help me out on building a DNS and web Server on my machine FC2


Right now I have registered a Domain at domainatcost.ca. and in order to fix my dynamic ip address, i have also registered at dyndns.org. I am trying to build a DNS server on my Fedora core 2 in order to make a connection between domainatcost.ca and dyndns.org.

I don't even know why I am building the DNS server because a friend told me to do so? However, right now he is not around me anymore.

What do I need to do? I know that my description of my problem is not clear. However, if anyone has any experience on this type of problem, he might know what I am asking exactly.
Basically, I am not quite sure how to write my /etc/named.conf file and zone file. I already read up a lot from the Fedora Core 2 bible, LDTP, and faq. However, I am still not heading to anywhere. Please, can anyone use very simple language to help me walk through this? Thank you any one can help me.
 
Old 08-04-2005, 06:04 AM   #2
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
u can get enough help here provided ur problem is lined properly.. so explain your problem correctly.. and what webserver (most probably apache) you want to set up..

most of the distribuions already have apache with them and all you need to do is start the server.. particular configurations depend on particular needs..

as fedora is an off-shoot of red hat linux.. i am assuming that it has apache and you can check if /etc/httpd exists.. then something can start...

and be clear about ur problem

regards

xing
 
Old 08-04-2005, 06:21 AM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
There are many howto's about setting up the dns server.

FC2 uses the Bind (Berkley Internet Name Domain) server.
The server answers host-name queries by returning the correct IP.

What isn't clear is how you expect this to connect the domainatacost and dyndns - what do you mean by this?

Do you want your own name server?

It sounds like you want a caching name server.
You already have the config file if you installed the DNS nameserver during inatallation.

Starting the server:
Code:
 # service named start
you can use chkconfig to make sure this starts at each reboot.

log messages are in /var/log/messages

Select as primary:
edit /etc/resolve.conf so the first line reads:
Code:
nameserver 127.0.0.1
Test the server:
Code:
 $ host www.gao.gov localhost
If successful you should get:
Code:
Using domain server:
Name: Localhost
Address:127.0.0.1#53
Aliases:
www.gao.gov. has address 161.203.16.2
I found "Fedora Linux 2 for Dummies" more useful initially than the Fedora Bible.

You can also try
www.mjmwired.net (the FC1,2,3,4 configuration is solid)
www.fedoraforum.org
www.fedorafaq.org (there is a FC2 faq)


Last edited by Simon Bridge; 08-04-2005 at 06:35 AM.
 
Old 08-04-2005, 03:08 PM   #4
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
Allow me to clarify much more better

I have:
1. A dynamic IP address
2. a dynamic dns account at dyndns.org, ( for the sake of simiplicity of the following explanation, allow me to use bbb.dyndns.info to be the address i register at dyndns.org. The reason that I registered this because it helps me to resolve dynamic ip address problem.)
3. a domain at domainatcost.ca (for the sake of simplicity for the following explanation, allow me to use aaaaa.ca to be the domain i register at domainatcost.ca
4. My own http webserver that has Fedora Core 2 on it (having not much problem on setting up this webserver)

Please take a look of the following which I think how it should work:
When a client input aaaaa.ca to the address bar on his/her browser, his request will somehow be directed to bbb.dyndns.info because from there, the client is able to obtain the updated ip information of my web server. And from there, the client's request will reach my own http webserver, and my http webserver will respond to the client's request.

I do not really know if a DNS server is necessary. If it is, I have to setup on my webserver because none of the account from either domainatcost.ca or dyndns.org provides a DNS for me.
 
Old 08-05-2005, 06:26 AM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
Loosly speaking: When someone types aaaaa.ca into their browser address bar, this is sent to the DNS name server that their ISP uses. This talks to other name servers - particularily the nearest root name server. This gets passed around until a server which knows your domain name and your IP addr is found. Then the IP is sent back to the ISP of the user who originally made the request. A request is then sent to your http server - and it sends the web page requested.

You have a domain name and an IP address registered. Presumably the nameservers already know about you?

So - is the trouble that you "own" an IP addr and you "own" a domain name - but they are not listed in any public name server?
 
Old 08-05-2005, 03:40 PM   #6
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
WOW yeah~~~~ I am heading to somewhere right now.
I kind of get what is going on now. I am using redirecting method.
Saying that I mean, when a client input my domain name aaaaa.ca to their address bar, my domain name will direct the client's request to bbb.dyndns.info and bbb.dyndns.info will direct the client's request to my webserver. (I am doing this because I have a dynamic ip address on my webserver, and dyndns.org's dynamic DNS service can automatically update my webserver's new ip address regularly) By that, when a client put aaaaa.ca to their addreess bar, the address bar will change to bbb.dyndns.info.

Right now, I set another task for myself, I would like to find out how to let a client goes to my webserver directly from aaaaa.ca without going to bbb.dyndns.info and at the same time my dynamic ip address won't be a trouble.

Please any help will be appreciated. Thank you for anyone helps me out. I really appreciate.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building web server server filsed Linux - Software 1 07-15-2005 01:56 AM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
Will this machine do for a web server? TheSwine Linux - General 6 01-05-2004 07:14 PM
Guide to building a web server suderfield Linux - General 1 09-11-2003 02:19 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM


All times are GMT -5. The time now is 01:13 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
Open Source Consulting | Domain Registration