DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 19th, 2012, 10:15 AM
UID UID is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 4 UID User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 50 m 25 sec
Reputation Power: 0
DNS Zone config

Hi All,

I've been searching for an answer for a few days with no success. My end goal is to have an URL redirect to an internal IP address instead of it going out to the public DNS and back in to our webserver. The idea in my head is basically a host file entry on the dns.

192.168.1.39 webserver.info
192.168.1.40 abc.webserver.info

So, what i tried to do was create a primary zone called info
Using that i could successfully redirect the internal traffic where i wanted it but it blocked all other .info pages.

If i create the zone as webserver.info then the host would show up as webserver.webserver.info


Is there a way to forward the info sites past my DNS Zone? If its not here, look over there kinda thing..

Or... some other way?


Help on this is greatly appreciated!

UID

Reply With Quote
  #2  
Old March 19th, 2012, 11:09 AM
requinix's Avatar
requinix requinix is offline
Still alive
Click here for more information.
 
Join Date: Mar 2007
Location: Washington, USA
Posts: 12,717 requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)  Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 1 Week 4 Days 7 h 21 m 39 sec
Reputation Power: 8969
Send a message via AIM to requinix Send a message via MSN to requinix Send a message via Yahoo to requinix Send a message via Google Talk to requinix
I assume you're talking about people outside the LAN accessing something inside?

DNS has to resolve to something people can get to. People cannot get to LAN addresses. You need a proxy of some sorts: either port forwarding (like on a router) or an actual proxy on some machine.

Reply With Quote
  #3  
Old March 19th, 2012, 11:15 AM
UID UID is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 4 UID User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 50 m 25 sec
Reputation Power: 0
No, this would be for internal users only.

The users outside our LAN reach the webserver through the public IP. The users inside are currently also using that same link. So the web traffic is going out to our ISP DNS and then back into our network.

We want to set up this zone so the traffic doesn't reach the WAN

*edit/added*

So basically, sitting in my office now. If i want to go to our webpage i go to webserver.info which gets resolved by our ISP to 184.x.x.x (public). So if i follow my traffic, it goes to our gateway -> to the ISP -> to our gateway -> to our webserver. (only reason this is an issue at all is because our internet connection is not as fast as it should be for our current number of employees and this is taking up much needed bandwidth on the WAN)

What i want it to do is resolve to 192.168.1.39. The internal address. Since it would be on our internal DNS, only people inside our network would get the internal IP address. If i went home and tried, it would still show up through the public IP.

Reply With Quote
  #4  
Old March 19th, 2012, 12:10 PM
CaptPikel CaptPikel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2010
Location: Florida
Posts: 248 CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level)CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level)CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 15 h 26 m 11 sec
Reputation Power: 3
Look in to the Views Clause. It's known by many names (views, split, alternate, etc). It allows you to manipulate zones and the files that zone uses to answer queries. You can have an internal and external set of answers for the same zone based off of the querying IP address.

http://www.zytrax.com/books/dns/ch7/view.html

Reply With Quote
  #5  
Old March 19th, 2012, 12:23 PM
UID UID is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 4 UID User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 50 m 25 sec
Reputation Power: 0
I probably should have specified that I'm using Server 2003 built-in DNS.

Reply With Quote
  #6  
Old March 19th, 2012, 03:37 PM
UID UID is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 4 UID User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 50 m 25 sec
Reputation Power: 0
Ok. So it never occurred to me that i can leave the Name part blank of a Host(A).. even though it says leave blank if its the parent...

So i left it blank and thats it...


the zone is webserver.info
with the entries
www Host(A) 192.168.1.16
(same as parent folder) Host(A) 192.168.1.16
app Host(A) 192.168.1.17

and it covers everything without blocking any random .info site...


Interestingly i also found a possible solution in setting a conditional Forwarders. set .info to ISP dns and it should just pass on any query that there is no info for on my DNS.



Thanks to those who replied

UID

Reply With Quote
  #7  
Old March 19th, 2012, 03:57 PM
CaptPikel CaptPikel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2010
Location: Florida
Posts: 248 CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level)CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level)CaptPikel User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 15 h 26 m 11 sec
Reputation Power: 3
Glad you got it and posted the solution.

Reply With Quote
  #8  
Old March 19th, 2012, 06:35 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 20 m 7 sec
Reputation Power: 4445
You probably shouldn't use .info as a private top level domain. .info is an existing tld on the Internet.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > DNS Zone config

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap