?
Solved

Help with DNS and local network routing to public address properly

Posted on 2012-03-29
4
Medium Priority
?
478 Views
Last Modified: 2012-04-02
I have a new client with a specific set up needed and I am having a hard time working out exactly how to make it work.  Direction would be appreciated, I know it is a bit convoluted but I will do my best to explain.  Hopefully the diagram will help.  DomainConfigIssue.pdf.
The company's local network domain has been configured using their public domain name.  abc.com.  They have a web server that was running two different sites.  abc.com and myinfo.abc.com.  

The main public site, abc.com, has an option for their clients to log in and access their account information at myinfo.abc.com and that site works with a special application controlled by their software vendor.

They decided to have a web design company do their public site and host it on their servers.  Outside their office everything works fine because public DNS recs for abc.com is set to point to the new hosting company IP addresses and the subdomain myinfo still points to the office public IP.

The problem happens when they try to access any sites on the local domain.  Since the local domain is abc.com and they have configuration pointing to services and other servers using xxx.abc.com there is a lot of traffic flowing on the private network using the public domain name that never needs to leave the private network.  The only traffic that does need to leave is what is directed to the www public site.

When they were testing the new site I took the IIS config of abc.com on the local network web server and redirected it to the-hosting-IP-address/~abc.om and it worked perfectly.  Now, they went live and the hosting company changed the domain to mask so you don't see the IP address any longer, which they should.  However, that makes it unable to find the site from the local network now because abc.com redirects to the IP address which displays a 404 page because it isn't there any longer.

Without doing a lot of configuration changes on the network how can I get it to route just the www.abc.com to the public DNS but only www and no other names in that domain?  It is a fairly new client and we don't have everything sorted yet so we were hoping to not make too many changes to an environment we don't have fully evaluated.
0
Comment
Question by:dcgrindle
[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 Comments
 
LVL 40

Accepted Solution

by:
footech earned 2000 total points
ID: 37785584
You should be able to find the IP of the web site at any time by running an nslookup query.  For example, nslookup www.abc.com 8.8.8.8
This will run the query against Google's public DNS (8.8.8.8), but you could run it against any DNS server's IP that you want.  Then just create a record for "www" in your forward lookup zone for your domain name on your internal DNS servers that points to the public IP for your website.  The IP shouldn't change so you shouldn't have to worry about that.

If you really need it to query the public DNS, a conditional forwarder configured for "www.abc.com" and pointing to the public nameservers *might* work, but I'm not certain.
0
 
LVL 5

Expert Comment

by:cdfs
ID: 37785850
In your internal DNS either configure an A-record pointing to the new IP or if this is not possible by any means (DNS-loadbalancing e.x.), configure a CNAME-record, pointing to the new subdomain. This way your internal clients will querry your internal DNS and get either the correct new IP or if configured with CNAME get the proper subdomain, resolving it properly to the new IP-adress(es).
0
 
LVL 5

Expert Comment

by:abhishek1986
ID: 37786519
Your server must have a internal IP Address as well as a global one?
For internal users, they need not go via the internet. They should be able to access the page locally, via the Local Network. All you need to do is to define a host name and a IP Address corresponding to it. Publish the link to the users and you are good to go.
0
 
LVL 2

Author Closing Comment

by:dcgrindle
ID: 37797360
We were able to do it in a Forward lookup A record for www - the internal users must enter www and not use a naked domain but it works fine as long as they enter www.
0

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

771 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