| Author |
Message |
Derrick
Guest
|
Posted:
Thu Nov 03, 2005 9:50 pm Post subject:
How to redirect DNS domain to a web server |
|
|
My AD domain called company.com and I have a web server called
www.company.com. So My internet DNS server handle all request for company.com
domain. I have a host record created for www.company.com. My problem is when
people inside my company type in company.com in the URL instead of
www.company.com, they will get what every web site that available on one of
my domain controller. I want to redirect browser request for company.com to
www.company.com, how can I do this? Thanks for your help in advance. |
|
| Back to top |
|
 |
Ace Fekay [MVP]
Guest
|
Posted:
Fri Nov 04, 2005 9:50 am Post subject:
Re: How to redirect DNS domain to a web server |
|
|
In news:7C9747CA-D894-436E-851A-A49EBC977D3F@microsoft.com,
Derrick <Derrick@discussions.microsoft.com> made this post, which I then
commented about below:
| Quote: | My AD domain called company.com and I have a web server called
www.company.com. So My internet DNS server handle all request for
company.com domain. I have a host record created for www.company.com.
My problem is when people inside my company type in company.com in
the URL instead of www.company.com, they will get what every web site
that available on one of my domain controller. I want to redirect
browser request for company.com to www.company.com, how can I do
this? Thanks for your help in advance.
|
Since your AD name is the same as your public name, you won't be able to
change that record in DNS. The record is called the LdapIpAddress record and
is used for some portions of AD functionality.
However, there is a little trick to this to make it work. On EACH of your
domain controllers, install IIS, and in the default website properties,
under the Home folder tab, redirect it to www.company.com.
Otherwise, tell your folks they must use the www in front of it. Another
little trick, as long as the website is truly a .com site (won['t work with
nets, edu's, etc, just com's), type in "company" (without the quotes), and
hit and hold CTRL, then ENTER and let go of both keys, and the browser will
automatically turn it into www.company.com.
--
Ace
This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.
If this post is viewed at a non-Microsoft community website, and you were to
respond to it through that community's website, I may not see your reply
unless that website posts replies back to the original Microsoft forum.
Therefore, please direct all replies ONLY to the Microsoft public newsgroup
this thread originated in so all can benefit or ensure the web community
posts it back to the original forum.
Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Windows Server Directory Services
Microsoft Certified Trainer
Infinite Diversities in Infinite Combinations.
================================= |
|
| Back to top |
|
 |
Spin
Guest
|
Posted:
Sat Nov 05, 2005 5:50 pm Post subject:
Re: How to redirect DNS domain to a web server |
|
|
Ace, where do I look for this "LdapIpAddress record" in the DNS management
console? I have a forward zone which is my AD domain name (not
AD-integrated) called ebiz.local and I do not see LdapIpAddress anywhere.
Since the zone is standar primary I dumped the contents of the zone text
file to below.
;
; Database file ebiz.local.dns for ebiz.local zone.
; Zone version: 18
;
@ IN SOA ebiz-gate.ebiz.local.
hostmaster.ebiz.local. (
18 ; serial number
900 ; refresh
600 ; retry
86400 ; expire
3600 ) ; default TTL
;
; Zone NS records
;
@ NS ebiz-gate.ebiz.local.
;
; Zone records
;
@ 600 A 192.168.1.2
;
; Delegated sub-zone: _mscdcs.ebiz.local.
;
_mscdcs NS ebiz-gate.ebiz.local.
; End delegation
_gc._tcp.default-first-site-name._sites 600 SRV 0 100 3268
ebiz-gate.ebiz.local.
_kerberos._tcp.default-first-site-name._sites 600 SRV 0 100 88
ebiz-gate.ebiz.local.
_ldap._tcp.default-first-site-name._sites 600 SRV 0 100 389
ebiz-gate.ebiz.local.
_gc._tcp 600 SRV 0 100 3268 ebiz-gate.ebiz.local.
_kerberos._tcp 600 SRV 0 100 88 ebiz-gate.ebiz.local.
_kpasswd._tcp 600 SRV 0 100 464 ebiz-gate.ebiz.local.
_ldap._tcp 600 SRV 0 100 389 ebiz-gate.ebiz.local.
_kerberos._udp 600 SRV 0 100 88 ebiz-gate.ebiz.local.
_kpasswd._udp 600 SRV 0 100 464 ebiz-gate.ebiz.local.
domaindnszones 600 A 192.168.1.2
_ldap._tcp.default-first-site-name._sites.domaindnszones 600 SRV 0 100 389
ebiz-gate.ebiz.local.
_ldap._tcp.domaindnszones 600 SRV 0 100 389 ebiz-gate.ebiz.local.
ebiz-gate A 192.168.1.2
forestdnszones 600 A 192.168.1.2
_ldap._tcp.default-first-site-name._sites.forestdnszones 600 SRV 0 100 389
ebiz-gate.ebiz.local.
_ldap._tcp.forestdnszones 600 SRV 0 100 389 ebiz-gate.ebiz.local.
--
Spin
"Ace Fekay [MVP]"
<PleaseSubstituteMyActualFirstName&LastNameHere@hotmail.com> wrote in
message news:eNzIwuP4FHA.1148@tk2msftngp13.phx.gbl...
| Quote: | Since your AD name is the same as your public name, you won't be able to
change that record in DNS. The record is called the LdapIpAddress record
and is used for some portions of AD functionality.
However, there is a little trick to this to make it work. On EACH of your
domain controllers, install IIS, and in the default website properties,
under the Home folder tab, redirect it to www.company.com.
Otherwise, tell your folks they must use the www in front of it. Another
little trick, as long as the website is truly a .com site (won['t work
with nets, edu's, etc, just com's), type in "company" (without the
quotes), and hit and hold CTRL, then ENTER and let go of both keys, and
the browser will automatically turn it into www.company.com. |
|
|
| Back to top |
|
 |
Ace Fekay [MVP]
Guest
|
Posted:
Sat Nov 05, 2005 5:50 pm Post subject:
Re: How to redirect DNS domain to a web server |
|
|
In news:3t3udoFr2ffuU1@individual.net,
Spin <Spin@spin.com> made this post, which I then commented about below:
| Quote: | Ace, where do I look for this "LdapIpAddress record" in the DNS
management console? I have a forward zone which is my AD domain name
(not AD-integrated) called ebiz.local and I do not see LdapIpAddress
anywhere. Since the zone is standar primary I dumped the contents of
the zone text file to below.
|
It's this record:
@ 600 A 192.168.1.2
In the console, it shows up as:
(same as parent) A 192.168.1.2
It doesn't say "LdapIpAddress", but that's what the record is called that
the netlogon service auto registers. Do not mess with it.
Ace |
|
| Back to top |
|
 |
Spin
Guest
|
Posted:
Sat Nov 05, 2005 9:50 pm Post subject:
Re: How to redirect DNS domain to a web server |
|
|
Thank you so much Ace. That is essentially the first line of the file (the
ones above are commented out). Can you tell me what do the "@" and "600"
mean in that line.
--
Spin
"Ace Fekay [MVP]"
<PleaseSubstituteMyActualFirstName&LastNameHere@hotmail.com> wrote in
message news:eJOm7Ej4FHA.3880@TK2MSFTNGP12.phx.gbl...
| Quote: | In news:3t3udoFr2ffuU1@individual.net,
Spin <Spin@spin.com> made this post, which I then commented about below:
Ace, where do I look for this "LdapIpAddress record" in the DNS
management console? I have a forward zone which is my AD domain name
(not AD-integrated) called ebiz.local and I do not see LdapIpAddress
anywhere. Since the zone is standar primary I dumped the contents of
the zone text file to below.
It's this record:
@ 600 A 192.168.1.2
In the console, it shows up as:
(same as parent) A 192.168.1.2
It doesn't say "LdapIpAddress", but that's what the record is called that
the netlogon service auto registers. Do not mess with it.
Ace
|
|
|
| Back to top |
|
 |
Ace Fekay [MVP]
Guest
|
Posted:
Mon Nov 07, 2005 9:51 am Post subject:
Re: How to redirect DNS domain to a web server |
|
|
In news:3t4hj8Fqm073U1@individual.net,
Spin <Spin@spin.com> made this post, which I then commented about below:
| Quote: | Thank you so much Ace. That is essentially the first line of the
file (the ones above are commented out). Can you tell me what do the
"@" and "600" mean in that line.
|
600 is the TTL in seconds, and the "@" means to use the parent's name, and
in this case it's your domain name. So when yuo type in http://domain.com,
it resolves to that address. If there are multiples, such when you have
multple DCs, it will Round Robin between them.
Ace |
|
| Back to top |
|
 |
Spin
Guest
|
Posted:
Tue Nov 08, 2005 1:50 am Post subject:
Re: How to redirect DNS domain to a web server |
|
|
Ace you are the true meaning of your name!
--
Spin
"Ace Fekay [MVP]"
<PleaseSubstituteMyActualFirstName&LastNameHere@hotmail.com> wrote in
message news:u$hs$z14FHA.2616@TK2MSFTNGP12.phx.gbl...
| Quote: | 600 is the TTL in seconds, and the "@" means to use the parent's name, and
in this case it's your domain name. So when yuo type in http://domain.com,
it resolves to that address. If there are multiples, such when you have
multple DCs, it will Round Robin between them.
Ace
|
|
|
| Back to top |
|
 |
|
|
|
|