LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-02-2003, 05:53 PM   #1
newtolinux83
LQ Newbie
 
Registered: Jun 2003
Location: Edmond, OK
Distribution: Red Hat 9
Posts: 3

Rep: Reputation: 0
Unhappy Shouldn't this be easier? (Web servers)


Hey guys, I'm pretty new to linux and I'm using red hat 9 to set up a single web server. I thought i had it all figured out until i went to set up the dns info. I have a computer on a static ip address that is to be the web server. But apparently i need a domain name server set up also. My question is: what is the best way to do this. Should there be a separate computer for the dns server or can I just use one computer for the dns server and web server. All i want is to make a public web site accessible thru a domain name that I already have. I am hung up because i have an ip address for the web server, but my domain hosting provider has set up two name servers which use another two of my static ip address Should i change the web server to use the name server ip address? I'm probably just repeating my problem and I just need to be straightened up a little. Any help would be great!
 
Old 06-02-2003, 11:10 PM   #2
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Erase all the IP address and put in the IP address for your web server. Then you should be up and running. Usually it takes a day to refresh the server. You may need to find a script to change the the information if your ISP changes their IP address.

A DNS server should be used if you are making an internet, intranet node in your network, or you freak out of editing a few hundred of host files. DNS servers are great if your users have their own web site and they want to give out IP address to other users on the same network.

Putting an DNS server on internet is asking for trouble. You have to have permission to have an DNS server on the internet.

A web server, DNS server, FTP server, mail server, etc are services. You can run multiple services on one machine. Keep an eye on CPU, disk, and bandwidth usage.
 
Old 06-03-2003, 03:52 AM   #3
jdc2048
Member
 
Registered: Jul 2002
Location: Ohio, USA
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
What do you get when you do a "nslookup <yourdomain.com>"?

If you get an address back, then someone already has your DNS taken care of. If you don't get an address back, then either your domain record is not hosted on anyones DNS or your domain is invalid.

You can check your own domain record information by visiting the following link (if it is a .com, .net, or .edu) and searching for it;
http://www.internic.net/whois.html

When you do a "domain" search for your domain, it will tell you the responsible DNS servers for this domain. If those DNS servers are your static IP's then your need to host your own DNS server.

You don't need permission to set up your own DNS server, unless you are part of an organization that regulates your network (corporation, ISP, etc...). There are many considerations to take into effect if you need to put up a DNS server, you may want RTFH (Read The Friendly How-to's) for help on this.
 
Old 06-03-2003, 12:12 PM   #4
newtolinux83
LQ Newbie
 
Registered: Jun 2003
Location: Edmond, OK
Distribution: Red Hat 9
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the help. It appears that my dns servers are my two static ip addresses. I also found out that my one linux box will act as the dns, web, and mail server. This one box will also have the ip addresses of both of the dns servers and my web server. My question now is how do I manage different host names on one computer? my nameservers are ns1.domain.us and ns2.domain.us and I think my webserver will have yet another name such as whatever.domain.us. How will the one computer act as all of those and do I need a separate ethernet card for each ip address? Once again, thanks for the help!!
 
Old 06-03-2003, 05:06 PM   #5
jdc2048
Member
 
Registered: Jul 2002
Location: Ohio, USA
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
No, you can use virtual interfaces to do all three on the same ethernet card.

I will get back to you later with more details, but for now check out the use of the ifconfig command. (i.e. man ifconfig)
 
  


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
V4L web servers jelgavchik Linux - Software 1 04-18-2005 12:34 AM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 10:50 AM
FTP and Web Servers xtremcoder Linux - Networking 2 06-16-2003 09:14 PM
DMZ and web servers SSBN Linux - Networking 1 05-01-2003 02:53 AM
2 web servers hawkes Linux - Networking 3 05-24-2001 11:39 AM


All times are GMT -5. The time now is 07:22 PM.

Main Menu
Advertisement
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