PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > DNS problems ?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

DNS problems ?

Réponse
 
LinkBack Outils de la discussion
Vieux 06/02/2007, 00h36   #1
Stephane M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut DNS problems ?

Hi,

I think that I am close to the solution, but would beed some

To sum up : Iam using Apache 2.0.... on CentOS v 4.4

I am using an Name based Virtual host

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.aa.tld
ServerAlias aa.tld *.aa.tld localhost
DocumentRoot /www/aa
</VirtualHost>

<VirtualHost *:80>
ServerName www.bb.tld
ServerAlias 192.172.x.y
DocumentRoot /www/b
</VirtualHost>


Now, I have edit my Network card
-----------------
DNS : localhost.localdomain
Primary DNS <Modem/Router IP address>
....
DNS search path : localdomain

--------------------
And into Host

<Server IP address> (Name server :www.aa.tld ) (Alias : aa.tld)
<Server IP address (Name server :www.bb.tld ) (Alias : bb.tld)



So now, on my WebServer machine
www.aa.tld and www.bb.tld work fine !!!!

BUT, if I am on another machine, this is the mess
- www.aa.tld -> seems to be OK
- www.bb.tld -> go and display www.aa.tld (so seems to be lost )

I suppose, that I have a DNS problem ?

- Do you think, that what I've done is correct ?

Thanks for your

Stephane
  Réponse avec citation
Vieux 06/02/2007, 02h16   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DNS problems ?

On 6 Feb, 00:36, Stephane M <Steph...@M.com> wrote:
> Hi,
>
> I think that I am close to the solution, but would beed some
>
> To sum up : Iam using Apache 2.0.... on CentOS v 4.4
>
> I am using an Name based Virtual host
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
> ServerNamewww.aa.tld
> ServerAlias aa.tld *.aa.tld localhost
> DocumentRoot /www/aa
> </VirtualHost>
>
> <VirtualHost *:80>
> ServerNamewww.bb.tld
> ServerAlias 192.172.x.y
> DocumentRoot /www/b
> </VirtualHost>
>
> Now, I have edit my Network card
> -----------------
> DNS : localhost.localdomain
> Primary DNS <Modem/Router IP address>
> ...
> DNS search path : localdomain
>
> --------------------
> And into Host
>
> <Server IP address> (Name server :www.aa.tld) (Alias : aa.tld)
> <Server IP address (Name server :www.bb.tld) (Alias : bb.tld)
>
> So now, on my WebServer machinewww.aa.tld andwww.bb.tld work fine !!!!
>
> BUT, if I am on another machine, this is the mess
> -www.aa.tld-> seems to be OK
> -www.bb.tld-> go and displaywww.aa.tld(so seems to be lost )
>
> I suppose, that I have a DNS problem ?
>
> - Do you think, that what I've done is correct ?
>
> Thanks for your
>
> Stephane


by "on other machine" you mean another machine on the LAN,
again you must adjust this machines hosts file to point to the IP
address of the cent OS machine on the LAN running apache.

The basic theory is that

on LAN all requests for the domains must point to the server LAN IP
when out in the real world away from your LAN, the public DNS records
will point to you external router, which then forwards the ports onto
the LAN IP.

So you must either
*configure each internal machine's hosts file to map the domains to
the internal IP of your server,
or
*configure each machine to get its DNS from a LAN DNS server which has
its A record for that domain pointed at the internal LAN server.

If you can set up a LAN DNS server this method is easier as it
requires no manual modification for each LAN workstation hosts file.


  Réponse avec citation
Vieux 06/02/2007, 07h30   #3
Stephane M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DNS problems ?

shimmyshack a écrit :
> On 6 Feb, 00:36, Stephane M <Steph...@M.com> wrote:
>> Hi,
>>
>> I think that I am close to the solution, but would beed some
>>
>> To sum up : Iam using Apache 2.0.... on CentOS v 4.4
>>
>> I am using an Name based Virtual host
>>
>> NameVirtualHost *:80
>>
>> <VirtualHost *:80>
>> ServerNamewww.aa.tld
>> ServerAlias aa.tld *.aa.tld localhost
>> DocumentRoot /www/aa
>> </VirtualHost>
>>
>> <VirtualHost *:80>
>> ServerNamewww.bb.tld
>> ServerAlias 192.172.x.y
>> DocumentRoot /www/b
>> </VirtualHost>
>>
>> Now, I have edit my Network card
>> -----------------
>> DNS : localhost.localdomain
>> Primary DNS <Modem/Router IP address>
>> ...
>> DNS search path : localdomain
>>
>> --------------------
>> And into Host
>>
>> <Server IP address> (Name server :www.aa.tld) (Alias : aa.tld)
>> <Server IP address (Name server :www.bb.tld) (Alias : bb.tld)
>>
>> So now, on my WebServer machinewww.aa.tld andwww.bb.tld work fine !!!!
>>
>> BUT, if I am on another machine, this is the mess
>> -www.aa.tld-> seems to be OK
>> -www.bb.tld-> go and displaywww.aa.tld(so seems to be lost )
>>
>> I suppose, that I have a DNS problem ?
>>
>> - Do you think, that what I've done is correct ?
>>
>> Thanks for your
>>
>> Stephane

>
> by "on other machine" you mean another machine on the LAN,
> again you must adjust this machines hosts file to point to the IP
> address of the cent OS machine on the LAN running apache.
>
> The basic theory is that
>
> on LAN all requests for the domains must point to the server LAN IP
> when out in the real world away from your LAN, the public DNS records
> will point to you external router, which then forwards the ports onto
> the LAN IP.
>
> So you must either
> *configure each internal machine's hosts file to map the domains to
> the internal IP of your server,
> or
> *configure each machine to get its DNS from a LAN DNS server which has
> its A record for that domain pointed at the internal LAN server.
>
> If you can set up a LAN DNS server this method is easier as it
> requires no manual modification for each LAN workstation hosts file.
>
>



Hi,

Thanks for that,

But how can setup correctly the DNS for machines from outside my LAN ?
I just re-direct the IP address from my Domain name provider.. is that
enough ?

Do I need to change it's DNS ??

That's I don't know

Thanks for your

Stephane
  Réponse avec citation
Vieux 06/02/2007, 07h59   #4
wiggledbits
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DNS problems ?

OK just to make sure I have this correct...
I have in my httpd.conf file
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
..
..
..
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
Options Includes

in an .htacess file in the root of the site I have
AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

Although if I change the date format in the shtml file it doesn't change in
the output the rest appears to test ok.
I think I have it all now. Any corrections needed?

"shimmyshack" <matt.farey@gmail.com> wrote in message
news:1170728183.450442.195950@v45g2000cwv.googlegr oups.com...
> On 6 Feb, 00:36, Stephane M <Steph...@M.com> wrote:
>> Hi,
>>
>> I think that I am close to the solution, but would beed some
>>
>> To sum up : Iam using Apache 2.0.... on CentOS v 4.4
>>
>> I am using an Name based Virtual host
>>
>> NameVirtualHost *:80
>>
>> <VirtualHost *:80>
>> ServerNamewww.aa.tld
>> ServerAlias aa.tld *.aa.tld localhost
>> DocumentRoot /www/aa
>> </VirtualHost>
>>
>> <VirtualHost *:80>
>> ServerNamewww.bb.tld
>> ServerAlias 192.172.x.y
>> DocumentRoot /www/b
>> </VirtualHost>
>>
>> Now, I have edit my Network card
>> -----------------
>> DNS : localhost.localdomain
>> Primary DNS <Modem/Router IP address>
>> ...
>> DNS search path : localdomain
>>
>> --------------------
>> And into Host
>>
>> <Server IP address> (Name server :www.aa.tld) (Alias : aa.tld)
>> <Server IP address (Name server :www.bb.tld) (Alias : bb.tld)
>>
>> So now, on my WebServer machinewww.aa.tld andwww.bb.tld work fine !!!!
>>
>> BUT, if I am on another machine, this is the mess
>> -www.aa.tld-> seems to be OK
>> -www.bb.tld-> go and displaywww.aa.tld(so seems to be lost )
>>
>> I suppose, that I have a DNS problem ?
>>
>> - Do you think, that what I've done is correct ?
>>
>> Thanks for your
>>
>> Stephane

>
> by "on other machine" you mean another machine on the LAN,
> again you must adjust this machines hosts file to point to the IP
> address of the cent OS machine on the LAN running apache.
>
> The basic theory is that
>
> on LAN all requests for the domains must point to the server LAN IP
> when out in the real world away from your LAN, the public DNS records
> will point to you external router, which then forwards the ports onto
> the LAN IP.
>
> So you must either
> *configure each internal machine's hosts file to map the domains to
> the internal IP of your server,
> or
> *configure each machine to get its DNS from a LAN DNS server which has
> its A record for that domain pointed at the internal LAN server.
>
> If you can set up a LAN DNS server this method is easier as it
> requires no manual modification for each LAN workstation hosts file.
>
>



  Réponse avec citation
Vieux 06/02/2007, 08h31   #5
wiggledbits
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DNS problems ?

Disregard... Sorry. I must get my newsgroups in something other than
Express!
"wiggledbits" <abigdipstick@gmail.com> wrote in message
news:12sgdb2k759lk30@corp.supernews.com...
> OK just to make sure I have this correct...
> I have in my httpd.conf file
> # To parse .shtml files for server-side includes (SSI):
> # (You will also need to add "Includes" to the "Options" directive.)
> #
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
> .
> .
> .
> # The Options directive is both complicated and important. Please see
> # http://httpd.apache.org/docs-2.0/mod/core.html#options
> # for more information.
> #
> Options Indexes FollowSymLinks
> Options Includes
>
> in an .htacess file in the root of the site I have
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> Options Indexes FollowSymLinks Includes
>
> Although if I change the date format in the shtml file it doesn't change
> in the output the rest appears to test ok.
> I think I have it all now. Any corrections needed?
>
> "shimmyshack" <matt.farey@gmail.com> wrote in message
> news:1170728183.450442.195950@v45g2000cwv.googlegr oups.com...
>> On 6 Feb, 00:36, Stephane M <Steph...@M.com> wrote:
>>> Hi,
>>>
>>> I think that I am close to the solution, but would beed some
>>>
>>> To sum up : Iam using Apache 2.0.... on CentOS v 4.4
>>>
>>> I am using an Name based Virtual host
>>>
>>> NameVirtualHost *:80
>>>
>>> <VirtualHost *:80>
>>> ServerNamewww.aa.tld
>>> ServerAlias aa.tld *.aa.tld localhost
>>> DocumentRoot /www/aa
>>> </VirtualHost>
>>>
>>> <VirtualHost *:80>
>>> ServerNamewww.bb.tld
>>> ServerAlias 192.172.x.y
>>> DocumentRoot /www/b
>>> </VirtualHost>
>>>
>>> Now, I have edit my Network card
>>> -----------------
>>> DNS : localhost.localdomain
>>> Primary DNS <Modem/Router IP address>
>>> ...
>>> DNS search path : localdomain
>>>
>>> --------------------
>>> And into Host
>>>
>>> <Server IP address> (Name server :www.aa.tld) (Alias : aa.tld)
>>> <Server IP address (Name server :www.bb.tld) (Alias : bb.tld)
>>>
>>> So now, on my WebServer machinewww.aa.tld andwww.bb.tld work fine !!!!
>>>
>>> BUT, if I am on another machine, this is the mess
>>> -www.aa.tld-> seems to be OK
>>> -www.bb.tld-> go and displaywww.aa.tld(so seems to be lost )
>>>
>>> I suppose, that I have a DNS problem ?
>>>
>>> - Do you think, that what I've done is correct ?
>>>
>>> Thanks for your
>>>
>>> Stephane

>>
>> by "on other machine" you mean another machine on the LAN,
>> again you must adjust this machines hosts file to point to the IP
>> address of the cent OS machine on the LAN running apache.
>>
>> The basic theory is that
>>
>> on LAN all requests for the domains must point to the server LAN IP
>> when out in the real world away from your LAN, the public DNS records
>> will point to you external router, which then forwards the ports onto
>> the LAN IP.
>>
>> So you must either
>> *configure each internal machine's hosts file to map the domains to
>> the internal IP of your server,
>> or
>> *configure each machine to get its DNS from a LAN DNS server which has
>> its A record for that domain pointed at the internal LAN server.
>>
>> If you can set up a LAN DNS server this method is easier as it
>> requires no manual modification for each LAN workstation hosts file.
>>
>>

>
>



  Réponse avec citation
Vieux 06/02/2007, 08h51   #6
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DNS problems ?

On 6 Feb, 07:30, Stephane M <Steph...@M.com> wrote:
> shimmyshack a écrit :
>
>
>
> > On 6 Feb, 00:36, Stephane M <Steph...@M.com> wrote:
> >> Hi,

>
> >> I think that I am close to the solution, but would beed some

>
> >> To sum up : Iam using Apache 2.0.... on CentOS v 4.4

>
> >> I am using an Name based Virtual host

>
> >> NameVirtualHost *:80

>
> >> <VirtualHost *:80>
> >> ServerNamewww.aa.tld
> >> ServerAlias aa.tld *.aa.tld localhost
> >> DocumentRoot /www/aa
> >> </VirtualHost>

>
> >> <VirtualHost *:80>
> >> ServerNamewww.bb.tld
> >> ServerAlias 192.172.x.y
> >> DocumentRoot /www/b
> >> </VirtualHost>

>
> >> Now, I have edit my Network card
> >> -----------------
> >> DNS : localhost.localdomain
> >> Primary DNS <Modem/Router IP address>
> >> ...
> >> DNS search path : localdomain

>
> >> --------------------
> >> And into Host

>
> >> <Server IP address> (Name server :www.aa.tld) (Alias : aa.tld)
> >> <Server IP address (Name server :www.bb.tld) (Alias : bb.tld)

>
> >> So now, on my WebServer machinewww.aa.tldandwww.bb.tldwork fine !!!!

>
> >> BUT, if I am on another machine, this is the mess
> >> -www.aa.tld-> seems to be OK
> >> -www.bb.tld-> go and displaywww.aa.tld(soseems to be lost )

>
> >> I suppose, that I have a DNS problem ?

>
> >> - Do you think, that what I've done is correct ?

>
> >> Thanks for your

>
> >> Stephane

>
> > by "on other machine" you mean another machine on the LAN,
> > again you must adjust this machines hosts file to point to the IP
> > address of the cent OS machine on the LAN running apache.

>
> > The basic theory is that

>
> > on LAN all requests for the domains must point to the server LAN IP
> > when out in the real world away from your LAN, the public DNS records
> > will point to you external router, which then forwards the ports onto
> > the LAN IP.

>
> > So you must either
> > *configure each internal machine's hosts file to map the domains to
> > the internal IP of your server,
> > or
> > *configure each machine to get its DNS from a LAN DNS server which has
> > its A record for that domain pointed at the internal LAN server.

>
> > If you can set up a LAN DNS server this method is easier as it
> > requires no manual modification for each LAN workstation hosts file.

>
> Hi,
>
> Thanks for that,
>
> But how can setup correctly the DNS for machines from outside my LAN ?
> I just re-direct the IP address from my Domain name provider.. is that
> enough ?
>
> Do I need to change it's DNS ??
>
> That's I don't know
>
> Thanks for your
>
> Stephane


OK, just change the A record to your public IP of the router that
protects your LAN from the internet.
Yes using the control that your hosting company, or domain name
registration company provide.


That will be enough unless you have not got a static IP from your ISP
for the public router.
If you have a dynamic IP address, then the DNS will have to keep on
changing, but obviously this isnt possible so instead use a company
like dyndns.com set up an account there, and then tell your router
what your dyndns.com details are.

Then whenever someone requests your domain name at dyndns they will
tell them what your IP is, (and your router keeps track of your
changin IP and lets dyndns know every 10mins or so)

The best thing is of course to have a static public IP address and
simply change the A record for your FQDN

One more thing you can do if you are going to start sending emails
from your server, change the rDNS (if your ISP allows this) to the
FQDN that you are going to send the emails from, (the same as the one
people will be suing to see your website)

  Réponse avec citation
Vieux 06/02/2007, 21h03   #7
Stephane M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: DNS problems ?

shimmyshack a écrit :
> On 6 Feb, 07:30, Stephane M <Steph...@M.com> wrote:
>> shimmyshack a écrit :
>>
>>
>>
>>> On 6 Feb, 00:36, Stephane M <Steph...@M.com> wrote:
>>>> Hi,
>>>> I think that I am close to the solution, but would beed some
>>>> To sum up : Iam using Apache 2.0.... on CentOS v 4.4
>>>> I am using an Name based Virtual host
>>>> NameVirtualHost *:80
>>>> <VirtualHost *:80>
>>>> ServerNamewww.aa.tld
>>>> ServerAlias aa.tld *.aa.tld localhost
>>>> DocumentRoot /www/aa
>>>> </VirtualHost>
>>>> <VirtualHost *:80>
>>>> ServerNamewww.bb.tld
>>>> ServerAlias 192.172.x.y
>>>> DocumentRoot /www/b
>>>> </VirtualHost>
>>>> Now, I have edit my Network card
>>>> -----------------
>>>> DNS : localhost.localdomain
>>>> Primary DNS <Modem/Router IP address>
>>>> ...
>>>> DNS search path : localdomain
>>>> --------------------
>>>> And into Host
>>>> <Server IP address> (Name server :www.aa.tld) (Alias : aa.tld)
>>>> <Server IP address (Name server :www.bb.tld) (Alias : bb.tld)
>>>> So now, on my WebServer machinewww.aa.tldandwww.bb.tldwork fine !!!!
>>>> BUT, if I am on another machine, this is the mess
>>>> -www.aa.tld-> seems to be OK
>>>> -www.bb.tld-> go and displaywww.aa.tld(soseems to be lost )
>>>> I suppose, that I have a DNS problem ?
>>>> - Do you think, that what I've done is correct ?
>>>> Thanks for your
>>>> Stephane
>>> by "on other machine" you mean another machine on the LAN,
>>> again you must adjust this machines hosts file to point to the IP
>>> address of the cent OS machine on the LAN running apache.
>>> The basic theory is that
>>> on LAN all requests for the domains must point to the server LAN IP
>>> when out in the real world away from your LAN, the public DNS records
>>> will point to you external router, which then forwards the ports onto
>>> the LAN IP.
>>> So you must either
>>> *configure each internal machine's hosts file to map the domains to
>>> the internal IP of your server,
>>> or
>>> *configure each machine to get its DNS from a LAN DNS server which has
>>> its A record for that domain pointed at the internal LAN server.
>>> If you can set up a LAN DNS server this method is easier as it
>>> requires no manual modification for each LAN workstation hosts file.

>> Hi,
>>
>> Thanks for that,
>>
>> But how can setup correctly the DNS for machines from outside my LAN ?
>> I just re-direct the IP address from my Domain name provider.. is that
>> enough ?
>>
>> Do I need to change it's DNS ??
>>
>> That's I don't know
>>
>> Thanks for your
>>
>> Stephane

>
> OK, just change the A record to your public IP of the router that
> protects your LAN from the internet.
> Yes using the control that your hosting company, or domain name
> registration company provide.
>
>
> That will be enough unless you have not got a static IP from your ISP
> for the public router.
> If you have a dynamic IP address, then the DNS will have to keep on
> changing, but obviously this isnt possible so instead use a company
> like dyndns.com set up an account there, and then tell your router
> what your dyndns.com details are.
>
> Then whenever someone requests your domain name at dyndns they will
> tell them what your IP is, (and your router keeps track of your
> changin IP and lets dyndns know every 10mins or so)
>
> The best thing is of course to have a static public IP address and
> simply change the A record for your FQDN
>
> One more thing you can do if you are going to start sending emails
> from your server, change the rDNS (if your ISP allows this) to the
> FQDN that you are going to send the emails from, (the same as the one
> people will be suing to see your website)
>


Thank you very much
That was the part missing :-) I have fix IP address..
It seems to work properly now..

Thanks again

Stephane

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h53.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,23591 seconds with 15 queries