LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-30-2005, 08:41 PM   #1
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
Is DNS configured in Apache, "named", or both?


Hello,

I've been reading up on this "named" daemon that has to do with DNS issues. I also read up on Apache, which also talks about the same thing through its virtual hosts feature.

This is confusing to me, as it seems like this "named" thing is trying to do the same thing that Apache is. Do both need to be configured, does only one of the two, or do the two do completely different things?

I really don't know anything about DNS, so I really don't know what Apache and "named" are really doing.

Any help would be really appreciated. Thanks!
 
Old 03-30-2005, 09:15 PM   #2
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
What is it you're trying to accomplish?

One uses named to configure dns (i.e. reolving names to ip addresses)

the virtual hosts section of the apache config uses the name that was used to resolve the current host as a way to select from a number of virtual servers running on the local machine.

THe one allows you to connect (bind) by name.

The second one uses the name you connected with to choose content?

does that make sense?
 
Old 03-30-2005, 10:17 PM   #3
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
I think I'm sort of understanding what you mean...

What, then, would happen if you didn't configure "named" but did configure Apache? Wouldn't it still serve up the correct webpages when somebody enters yourdomain.com into their browser?

Thanks.
 
Old 03-30-2005, 11:19 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

if u do not want to use named then u need to do all the service with IP addresss and they will work in apache

regards
 
Old 03-31-2005, 12:51 AM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
What, then, would happen if you didn't configure "named" but did configure Apache?
Well, all of the web site visitors would have to have an entry in their host table in order to find the web server. That doesn't sound very convenient. Set up the DNS service on a box on your network so your users don't have to be mucking around with their host tables. (That'll just cause problems, you know. )

I don't recall if you mentioned what distribution you're using but there's a good chance that there's a decent tool that lets you configure the DNS files with a minimum of fuss. If you're not the network administrator who tends to the DNS, you'll have to work with whoever that is so that the hostnames for your virtual hosts will resolve to your web server's IP address.

Good luck...
 
Old 03-31-2005, 12:16 PM   #6
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
Quote:
What, then, would happen if you didn't configure "named" but did configure Apache?
In short, the answer to the question is no.

DNS Allows users to find the machine by name. If this is occuring over the internet, you'll need someone else ( a servie provider / DNS registrar ) to list you domain so that users can find it. If you're doing this on an intranet you can point your hosts to your server for DNS, and that will allow then to connect to your webserver by name.

DNS is really the important part, if you're only going to set one up. It's what allows users / hosts to connect.

All Apache is doing is differentiating content based on the name used to access the machine, ince you can actually use dns to point multiple names to one address.
 
  


Reply



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
Undefined Screen " XFree86" reference by serverLayout "XFree86 Configured" comox *BSD 7 01-17-2005 05:47 PM
cdrecord error "medium not present" on LG IDE drive configured as SCSI. ColinLadyka Linux - Hardware 3 01-14-2005 01:37 PM
dns named.conf: "view" unknown option rioguia Linux - Networking 16 11-02-2004 11:04 AM
apache "allow from" dns problem? RHELL Linux - Software 2 07-23-2004 03:49 PM
"ifnet structure (regarding configured interfaces)header file in linux9?" deepender Programming 0 12-07-2003 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 AM.

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
Open Source Consulting | Domain Registration