Link to home
Start Free TrialLog in
Avatar of Stanley
StanleyFlag for United States of America

asked on

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.
Avatar of bbao
bbao
Flag of Australia image

> 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.
ASKER CERTIFIED SOLUTION
Avatar of Justin Yeung
Justin Yeung
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Santosh Gupta
Santosh Gupta

Hi,

1. your website is hosted on in-house ?
2. is your domain and website name is same ?
Avatar of Stanley

ASKER

The website is hosted externally.

Domain name and website name are different.

Website: example.com
Domain: exampleinc.com
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.
Avatar of Stanley

ASKER

User generated image
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.
@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.
yes,

see the author comment.

Externally, when you enter Domain.com the browser automatially changes the address to WWW.Domain.com.
> 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.

User generated imageUser generated image
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.
@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.
Avatar of Stanley

ASKER

Just to clarify, the image I posted above was from my DC not my ISP's DNS manager
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.
Avatar of Stanley

ASKER

User generated imageThe (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.