Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cannot Access Externally Hosted Domain from Internal Network

Posted on 2014-02-19
8
Medium Priority
?
1,094 Views
Last Modified: 2014-02-19
Here's my setup:

I have an internal network with the domain corp.domain.com. I have a DNS server with two zones; corp.domain.com and domain.com. The corp.domain.com zone has the A records for all of our servers and workstations. The domain.com zone has the A records for www, mail, and other subdomains. We can access all of our subdomains that exist on local servers via our web browsers with no issues.

The problem is with our website. It is not hosted locally, but through GoDaddy. I have A records under the domain.com zone pointing to the IP address provided by GoDaddy. The A records I have setup are www and *.

The website is a Wordpress site, and the only way I have been able to get it to "somewhat" work is to change the Wordpress Address (URL) and Site Address (URL) to be http://www.domain.com instead of http://domain.com. After making this change, I can enter www.domain.com in my browser and it will take me to my externally hosted site, however entering just domain.com will not.

I performed an nslookup on my DNS server and here's the results:
> nslookup domain.com
Server:  localhost
Address:  ::1

Server:  domain.com.corp.domain.com
Address:  xxx.xxx.xxx.xxx (IP address for external site)

Open in new window

0
Comment
Question by:steven_theck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 59

Accepted Solution

by:
Cliff Galiher earned 2000 total points
ID: 39871451
Create another A record, and leave the host blank. The wildcard * record will NOT include that, so you have to create it explicitly.

Then test with nslookup. And to avoid the nslookup issue you had above, put a trailing period after the domain. So instead of "nslookup domain.com" use "nslookup domain.com." and it won't append the default search domain.
0
 

Author Comment

by:steven_theck
ID: 39871480
@Cliff Galiher Thanks for the quick reply. I forgot to mention it, but I do have a blank A record with the correct IP address for our website.

When I perform an nslookup as you described, here's the results:
> nslookup domain.com.
Server:  localhost
Address:  ::1

Name:  domain.com

Open in new window

0
 
LVL 59

Expert Comment

by:Cliff Galiher
ID: 39871492
Since it isn't returning the external IP, that indicates there is an issue with your DNS setup. I'd recheck the record setup.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:steven_theck
ID: 39871573
I double-checked my DNS records, and I actually didn't have a blank A record for the external site (it was setup as a name server). I added the blank A record and it didn't make a difference.

A bit more information about accessing my website:
The Wordpress site I'm working on is not at the root of my web host. It is in a separate folder (www.domain.com/newsite/). My currently active website is located at the root. If I go to http://domain.com/newsite/, it will redirect me to http://www.domain.com/newsite/ and work just fine (since that is how it is configured in Wordpress. With my current site, I can go to http://www.domain.com and it loads, but it will not load if I go to http://domain.com. The current site is a PHP site, not Wordpress.
0
 
LVL 59

Expert Comment

by:Cliff Galiher
ID: 39871578
Did you verify the new record via nslookup?
0
 

Author Comment

by:steven_theck
ID: 39871681
I did. After adding the record, the address is showing up as it should with nslookup.
0
 
LVL 59

Expert Comment

by:Cliff Galiher
ID: 39871699
Then this is much more likely an issue on the web server. The next thing I'd do is watch the network traffic with something like the developer tools built into new versions of IE or the firebug extension in Firefox. Actually see if the browser is hitting your site and if the redirect is working as expected.
0
 

Author Comment

by:steven_theck
ID: 39871708
Well, it appears to be working now.

I performed an ipconfig /dnsflush and cleared my browser cache, but it still wasn't working. I then pointed the root to the newsite folder within Wordpress to make the new site active, and domain.com still wasn't working. Just to see what happens, I changed the Wordpress Address (URL) and Site Address (URL) from within Wordpress back to domain.com, and it is now working just fine (as domain.com and www.domain.com).

So I assume the issue was not having the blank A record within my DNS, but it just didn't update right away. Thank you for all of your help Cliff!
0

Featured Post

Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question