DNS redirect or append?

Pretty straightforward questions.
Externally, when you enter Domain.com the browser automatially changes the address to WWW.Domain.com.
Internally, the address does not change and users get users get Page Not Found.

We are running Windows 2008 DCs and Windows 7 Pro on the desktops.

How do we get the same behavior internally that we get externally?

Thank you in advance.
StanleyManager Systems and TechnologyAsked:
Who is Participating?
 
Justin YeungConnect With a Mentor Senior Systems EngineerCommented:
first of all, the redirection is not done via DNS, it is under the webserver config.

and then if you can't get to domain.com, or www.domain.com. you page will not be redirected...
0
 
bbaoIT ConsultantCommented:
> when you enter Domain.com the browser automatially changes the address to WWW.Domain.com

the most common way to redirect a URL is to have the following code in the default page for domain.com

<meta http-equiv="refresh" content="0"; URL="http://www.domain.com/newurl.html">

this method needs the internal and external DNS servers having the same "www.domain.com" resolved, though the result might be different, depending on internal and/or external IP for the same site.

FYI - more methods can be seen here.
0
 
Santosh GuptaCommented:
Hi,

1. your website is hosted on in-house ?
2. is your domain and website name is same ?
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
StanleyManager Systems and TechnologyAuthor Commented:
The website is hosted externally.

Domain name and website name are different.

Website: example.com
Domain: exampleinc.com
0
 
Santosh GuptaCommented:
Hi,

explorer the below setting in registry. and make sure that you have below entries.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet
Explorer\Main\UrlTemplate

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\UrlTemplate]
"1"="www.%s.com"
"3"="www.%s.net"
"2"="www.%s.org"
"4"="www.%s.edu"

Open in new window


if not then you can save it as .reg and import it. then try and share the result.
0
 
StanleyManager Systems and TechnologyAuthor Commented:
Erroneous DNS record
This record points to our old hosting service, NetSol.

How and where do i change this. I was told that these records are created by the servers and that it's not a good idea to edit them directly.
0
 
bbaoIT ConsultantCommented:
@Santosh

> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\UrlTemplate

frankly, i don't think this is related to the URL or DNS redirection issue that the author intends to address.

1. the registry items are for URL template, they are only to be used when the URL in address bar is not complete then the given prefixes and postfixes will be tried (guessed).

2. the registry items are for IE only. not for any other third party browsers such as Firefox and Chrome.
0
 
Santosh GuptaCommented:
yes,

see the author comment.

Externally, when you enter Domain.com the browser automatially changes the address to WWW.Domain.com.
0
 
bbaoIT ConsultantCommented:
> This record points to our old hosting service, NetSol.

you may add CName (Alias) for the existing A records. see below a few items of one of my domains. it points www.domain.com to the IP address of domain.com.

A (Host)CName (Alias)
FYI - these are screenshots of GoDaddy's Domain Manager, your hosting service may have different interface, but basically they should provide the same or similar services.

again, this DNS technique does not directly address you issue of URL redirection. just for your information.
0
 
bbaoIT ConsultantCommented:
@Santosh

Externally, when you enter Domain.com the browser automatially changes the address to WWW.Domain.com.

if "domain.com" is accessible by IE, IE won't try "www.domain.com".

those IE's URL templates are only for incomplete (actually inaccessible) URLs, in that case the given prefixes and postfixes will be tried in sequence.
0
 
StanleyManager Systems and TechnologyAuthor Commented:
Just to clarify, the image I posted above was from my DC not my ISP's DNS manager
0
 
bbaoIT ConsultantCommented:
the same thing, if you are managing your DNS record on your own Windows based DNS Server. i don't have my own DNS server, therefore i use the domain registrar's DNS Manager instead of it.
0
 
StanleyManager Systems and TechnologyAuthor Commented:
LAN DNSThe (A) record that points to 206.188.192.95 is the erroneous one pointing to Network Solutions
The WWW. (A) record is pointing to our current hosting service (66.228.32.224).
I want to change the (A) record (206.188.192.95) to match the WWW record (66.228.32.224) so when internal users enter "example.com" in any browser, it resolves to "www.example.com"

I'd really like to know where the erroneous A record (206.188.192.95) is getting that address from so this won't happen again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.