After Changing DNS IP at GoDaddy.com for website, inner office users cannot access external website with same domain name.

We had a website in a development mode and were able to access it from the office using the IP address and www.domain.com.

I have in the local DNS an A record for www pointing to the site IP which allowed access during development.    

After making the site live, removing a forwarder at GoDaddy.com and changing the A (Host) record (@) to the site IP we are not able to access the site from the office.

The site is still accessible from external networks using the www.domain.com and the IP address.

I can ping both the IP & the www.domain.com from the office.
Using tracert for the IP gets out for 16 hops.
Using tracert for the www.domain.com only returns 1 entry which is our DNS server.

Thanks,
Phy2015Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DrDave242Senior Support EngineerCommented:
When you access the site from an external network, does the URL in the browser bar change from www.domain.com to domain.com? If so, there's a redirect on the site that's doing this, and it will interfere with access from inside your office until it is removed. Removing that redirect from the site is the only fix unless you want to change your internal domain name to something that doesn't match your external domain name.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Phy2015Author Commented:
DrDave,
Thanks for the response.
Are you saying that this forwarder is set in the site itself, in PrestaShop on the hosting server?   There is no forwarder at GoDaddy where the domain name is registered and the A records set.
Phy2015Author Commented:
DrDave,
Sorry, to answer your question externally www.domain.com is converting to domain.com?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Jan SpringerCommented:
Are you using this doman name internally within your network?  What error do you receive when you query the site?  Can you post the domain name?
Phy2015Author Commented:
The local domain is the same name as the web site domain.
DrDave242Senior Support EngineerCommented:
Are you saying that this forwarder is set in the site itself, in PrestaShop on the hosting server?
Yep, if the URL is changing, the redirect is on the site itself. Whoever manages the site will be the one that needs to remove the redirect.
Jan SpringerCommented:
Do you have an internal DNS server?  Can you add the www A record pointing to the external IP?
Michael MachieIT SupervisorCommented:
On your DNS server you will need a couple entries.

In Forward Lookup Zones
- You will most likely have a Zone for your internal domain. in this zone create a Host(A) record that has the server name pointing to the internal IP address of your web server.
Name: webservername | Type: Host(A) | IP: xxx.xxx.xxx.xxx  [Internal IP of server].

- You will also most likely have another zone for your 'domain.com' web servers. You will need to create a Host (A)  record for the internal server name that points to your internal IP address.
Name: webserver internal name [webserver1.domain.com/local] | IP: [internal IP address]

As an example:
My lab domain is 'internal_domain.local', so I have a Forward Lookup Zone called 'internal_domain.local' .Within this zone I have a HOST(A) record that states:
'webserver1' [internal server name] pointing to IP address: xxx.xxx.xxx.xxx [Internal IP].

I also have another Forward Lookup Zone called 'public_web_domain.net' [use your own Public Domain name here]. Inside this zone I have another HOST(A) record stating the INTERNAL server name (not public DNS name), that points to my INTERNAL IP of the Server.

With this setup you will be able to use the Public DNS name [webserver1.domain.com] in your intranet machines to connect to your web server internally, using the public DNS name.    

I hope this is clear. If not please ask questions.
DrDave242Senior Support EngineerCommented:
Do you have an internal DNS server?  Can you add the www A record pointing to the external IP?
It appears that he's already done this:

I have in the local DNS an A record for www pointing to the site IP which allowed access during development.
The problem seems to be that the site is redirecting www.domain.com to domain.com. Queries for that name from inside his office will resolve to the IP of a domain controller, as they're supposed to.
Phy2015Author Commented:
Machienet,

In your example are you assuming that the web site id hosted locally?  The site is hosted externally.
Michael MachieIT SupervisorCommented:
@Phy2015:
My apologies, I must have missed that.

So, log into your ISP's control panel for your account and add another record that points to the same IP, but make it for domain.com . This way you will have two records, each one pointing to each of the variations.
Someone types in www.domain.com and it will resolve.
Someone types in domain.com and it will still resolve.

I needed to do that for one of my externally hosted web servers in the past for the same issue.
DrDave242Senior Support EngineerCommented:
Machienet: I'm pretty sure that's already been done too:

After making the site live, removing a forwarder at GoDaddy.com and changing the A (Host) record (@) to the site IP we are not able to access the site from the office.
The @ record is the domain.com record. The site wouldn't be accessible externally without that record.
Phy2015Author Commented:
By modifying the store URL in PredtaShop from domain.com to www.domain.com corrected the issue.

However DrDave & Machienet suggestions/solutions let us to discovering this fix.

Thanks for your help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DNS

From novice to tech pro — start learning today.