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
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.
9th March 2009, 04:31 PM #2
What DNS server - windows, bind, other?
9th March 2009, 04:42 PM #3
It's a Windows Server 2003 box
Originally Posted by powdarrmonkey
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
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.
Originally Posted by powdarrmonkey
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
But we have forwarders like
Originally Posted by MicrodigitUK
So we can't do it the way you suggest.
add1.domain.com which directs to 22.214.171.124/add1
add2.domain.com which directs to 126.96.36.199/add2
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.
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
If you have a zone for the .domain then yep.
Originally Posted by SpuffMonkey
11th March 2009, 01:34 PM #11
Which I have - that was the easy part.
Originally Posted by kmount
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
That should work anyway...
Originally Posted by Hightower
here we have
They are all internal
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.
11th March 2009, 04:00 PM #13
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.
Originally Posted by gparr
Any ideas why this is so, and what I might need to look at to correct this?
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
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?
By j17sparky in forum Windows
Last Post: 29th September 2008, 08:16 PM
By IA76 in forum Wireless Networks
Last Post: 15th August 2008, 02:29 PM
By burgemaster in forum Windows
Last Post: 27th June 2008, 12:05 PM
By Jobos in forum Windows
Last Post: 5th April 2008, 10:56 PM
By DSapseid in forum Windows
Last Post: 13th July 2007, 02:29 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)