Windows Thread, DNS Forwarding in Technical; We have a Moodle server here, and at the minute when a user goes to moodle.domain.com it go out on ...
-
9th March 2009, 04:24 PM #1 DNS Forwarding
We have a Moodle server here, and at the minute when a user goes to moodle.domain.com it go out on the internet to retrieve it.
I have set up DNS so that moodle.domain.com goes to the internal IP of xxx.xxx.xxx.xxx which works a treat, but if I try to go to www.domain.com it throws a "cannot find server".
How do I open up (using internal DNS) moodle.domain.com to go to our internal IP but all other *.domain.com resolves using external DNS.
-
-
IDG Tech News
-
9th March 2009, 04:31 PM #2 What DNS server - windows, bind, other?
-
-
9th March 2009, 04:42 PM #3 
Originally Posted by
powdarrmonkey
What DNS server - windows, bind, other?
It's a Windows Server 2003 box
-
-
9th March 2009, 04:52 PM #4 Get the properties of the DNS server in the DNS MMC, and on the Forwarders tab pick 'All other DNS domains' and add your upstreams into the bottom section. Remember to hit Add to actually put them into the list.
-
-
9th March 2009, 05:19 PM #5 
Originally Posted by
powdarrmonkey
Get the properties of the DNS server in the DNS MMC, and on the Forwarders tab pick 'All other DNS domains' and add your upstreams into the bottom section. Remember to hit Add to actually put them into the list.
I right-clicked on the new zone I added, went to properties and then forwarders. Clicked all other DNS domains and it already has 2 IP's in there.
-
-
9th March 2009, 07:50 PM #6 What I did was manually added the static public ips for to the domain names manually into dns as there’s not that many on most domains. E.g. www.domainname .co.uk (public ip) mail.domainname.co.uk(public ip) imail.domainname.co.uk(public ip) and moodle.domainname.co.uk (with internal ip) folders.domainname.co.uk (with internal ip) intranet.domainname.co.uk (with internal ip) I think I had to put in another one for ISP mail server but you get the idea.
I got the public static ip’s by using Convert Host Name to IP Address or Find IP address of a host - e.g. find IP address of host name of to convert them.
Hope that helps
-
-
10th March 2009, 10:21 AM #7 
Originally Posted by
MicrodigitUK
What I did was manually added the static public ips for to the domain names manually into dns as there’s not that many on most domains. E.g.
www.domainname .co.uk (public ip) mail.domainname.co.uk(public ip) imail.domainname.co.uk(public ip) and moodle.domainname.co.uk (with internal ip) folders.domainname.co.uk (with internal ip) intranet.domainname.co.uk (with internal ip) I think I had to put in another one for ISP mail server but you get the idea.
I got the public static ip’s by using
Convert Host Name to IP Address or Find IP address of a host - e.g. find IP address of host name of to convert them.
Hope that helps
But we have forwarders like
Code:
add1.domain.com which directs to 123.123.123.123/add1
and
add2.domain.com which directs to 123.123.123.123/add2
So we can't do it the way you suggest.
Any other thoughts?
-
-
10th March 2009, 11:15 AM #8 From my understanding once you add a domain as a zone on your dns servers it becomes authoritative thusly you cannot pick and chose which subdomains you want it to answer for. You need to do as microdigit suggests and add all sub domains as exist on your public dns server.
The fact that you have multiple sub domains that may or may not point to different servers should not matter. So long as the subdomain and ip are the same between both dns servers it is the web server that resolves what content should be returned.
Matt
-
-
11th March 2009, 01:25 PM #9 Do you not just add the "moodle." into the forward lookup zone?
-
-
11th March 2009, 01:28 PM #10 
Originally Posted by
SpuffMonkey
Do you not just add the "moodle." into the forward lookup zone?
If you have a zone for the .domain then yep.
-
-
11th March 2009, 01:34 PM #11 
Originally Posted by
kmount
If you have a zone for the .domain then yep.
Which I have - that was the easy part.
The thing is, now I have that domain set up as a zone, I want to be able to say (excuse my pseudo code haha) "if the prefix (www. or ww2. etc) doesn't exist in this zone, find it on the internet."
-
-
11th March 2009, 01:54 PM #12 
Originally Posted by
Hightower
Which I have - that was the easy part.
The thing is, now I have that domain set up as a zone, I want to be able to say (excuse my pseudo code haha) "if the prefix (www. or ww2. etc) doesn't exist in this zone, find it on the internet."
That should work anyway...
here we have
vle.* (moodle)
comm.* (moodle)
mail.* (exchange)
folders.* (webfolders)
share.* (sharepoint)
They are all internal
www.* (website)
Is external, but isnt listed in the zone, so goes out on the internet to fetch.
We mainly did first due to moodle, having upgraded to 1.9 ove the summer from 1.7, and was having issues with the fix to get around the server having 2 domains.
We then added mail and share, as we purchased a wildcard SSL cert for our domain.
Gary
-
-
11th March 2009, 04:00 PM #13 
Originally Posted by
gparr
That should work anyway...
here we have
vle.* (moodle)
comm.* (moodle)
mail.* (exchange)
folders.* (webfolders)
share.* (sharepoint)
They are all internal
www.* (website)
Is external, but isnt listed in the zone, so goes out on the internet to fetch.
We mainly did first due to moodle, having upgraded to 1.9 ove the summer from 1.7, and was having issues with the fix to get around the server having 2 domains.
We then added mail and share, as we purchased a wildcard SSL cert for our domain.
Gary
See, that's exactly what I want yet for some reason it's not working. if I try www.* (because I haven't added a www look-up) I get a "server cannot be found" message instead of the externally hosted website.
Any ideas why this is so, and what I might need to look at to correct this?
Many thanks,
-
-
11th March 2009, 04:13 PM #14 You need to do as below because as soon as you set it as a record on your DNS it is authorotive:
Re: Non authoritative domain on Windows Server 2003
You could create a zone called "hostname.domainname.com" and then within
that zone create a blank host A record (same as parent) pointing to the
relevant internal IP
Then your server would only be authorative for the zone "hostname.domainname.
com"and any records within that zone (such as the same as parent host record
you need)
Only drawback to this is you have to create a separate DNS zone for each host
and a same as parent record but it works
-
Thanks to SYNACK from:
Hightower (12th March 2009)
-
11th March 2009, 04:15 PM #15 I would just make a new forward lookup zone of moodle.domain.com (I assume on zone is domain.com) and create a blank A record with the IP.
That *should* work?
-
SHARE:
Similar Threads
-
By j17sparky in forum Windows
Replies: 5
Last Post: 29th September 2008, 07:16 PM
-
By IA76 in forum Networks
Replies: 3
Last Post: 15th August 2008, 01:29 PM
-
By burgemaster in forum Windows
Replies: 7
Last Post: 27th June 2008, 11:05 AM
-
By Jobos in forum Windows
Replies: 11
Last Post: 5th April 2008, 09:56 PM
-
By DSapseid in forum Windows
Replies: 15
Last Post: 13th July 2007, 01:29 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules