Networks Thread, Manually adding records to DNS server in Technical; Hi
We have an IIS server internally hosted, with an external IP tunneling in. The domain name points from the ...
-
18th January 2006, 11:46 AM #1 Manually adding records to DNS server
Hi
We have an IIS server internally hosted, with an external IP tunneling in. The domain name points from the outside world internally, and I would like to make our dns server point the external address to the internal IP address. As it is, traffic from the webserver goes out to the world and back (over a 2mb link) which considerably slows things.
In the DNS server i added a new Primary Forward lookup zone, however this is not forwarding requests on for unknown DNS queries. It returns an error that i cant find that address. this is needed because it is our proxy server hosted by our LEA that i need the IP for. I can manually add this but i would either like it to forward the request to the LEA dns servers, or if anyone knows a way to add a DNS entry manually for just one address.
Long post I know, but hopefully I explained all
fooby
-
-
IDG Tech News
-
18th January 2006, 11:55 AM #2 Re: Manually adding records to DNS server
Why not add a a record for say "intranet" which points to the internal iis ip address. Then tell people to use intranet to access it.
-
-
18th January 2006, 12:21 PM #3 Re: Manually adding records to DNS server
That might work, however some of the PHP scripts need to have the full domain name for links set in its settings (some arent relative and will go to http://external.address/section/file.php etc) so I need that external address changed so that it points to the internal IP address.
For example, if i went to http://internalname/index.php it would display the page. When I press logon, I would get redirected to http://external.address.sch.uk/logon.php (or whatever)
Some of the resources (basic html pages with video archive) works (actually its channel 4 clipbank cds, work pretty good
)
fooby
-
-
18th January 2006, 12:55 PM #4 Re: Manually adding records to DNS server
Ahh poor html kung foo 
have you got school.region.sch.uk type domain for the external link?
Have you set that up as a forward lookup?
-
-
18th January 2006, 01:17 PM #5 Re: Manually adding records to DNS server
Yeah, the address is machine.school.region.sch.uk internally we have machine.school-cc.region.sch.uk internally so the domains are different.
Last time I added school.region.sch.uk as a forward lookup it couldnt resolve proxy.school.region.sch.uk and no one had internet access. I assume also we wouldnt have been able to access www.school.region.sch.uk (this address is not the webserver im talking about www.school.region.sch.uk is one hosted by someone else)
I suppose i could add school.region.sch.uk as a forward lookup and then add the proxy and the www and the webserver i want in manually, however i would prefer that the second forward lookup pass the requests to the LEA dns server so i dont have to update it, should any addresses change.
fooby
-
-
18th January 2006, 01:33 PM #6
- Rep Power
- 14
Re: Manually adding records to DNS server
you need to add a fwd look up zone to DNS, with the name of the fqdn of the server
eg www.extsrv.school.regaion.sch.uk
then in that add a host
(same as parent) Host (A) 192.168.0.220 (or what ever the IP of the machine is)
-
-
18th January 2006, 01:53 PM #7 Re: Manually adding records to DNS server

Originally Posted by
fooby That might work, however some of the PHP scripts need to have the full domain name for links set in its settings (some arent relative and will go to
http://external.address/section/file.php etc) so I need that external address changed so that it points to the internal IP address.
For example, if i went to
http://internalname/index.php it would display the page. When I press logon, I would get redirected to
http://external.address.sch.uk/logon.php (or whatever)
Some of the resources (basic html pages with video archive) works (actually its channel 4 clipbank cds, work pretty good

)
fooby
can't you use 'http://'.$_SERVER['SERVER_NAME'] for the links in php?
-
-
18th January 2006, 01:57 PM #8 Re: Manually adding records to DNS server
Ahh the joy of PHP, I been dev'ing in it for 6-7 years now
-
-
18th January 2006, 02:10 PM #9 Re: Manually adding records to DNS server
What you could do it set the web browser to bypass the proxy for certain addresses. For example in IE under tool>internet options - in the Connections Tab>Lan Settings and put the address under the exceptions. Hope this helps.
-
-
18th January 2006, 02:18 PM #10
- Rep Power
- 14
Re: Manually adding records to DNS server
it would still need some way of resolving the address, doing it that way would probably just cut access off.
-
-
18th January 2006, 02:36 PM #11 Re: Manually adding records to DNS server
@ chrisg re: adding the forward lookup:
Yes i can do this however I cut off access to my proxy server, I can add the addresses for this manually. If the addresses of the proxy changes this could cause problems also if another address is added to our domain, for internal access I would have to add the entries manually.
@ DMcCoy re: http://'.$_SERVER['SERVER_NAME']
Can't really change that, its Joomla, Moodle, PHPBB2 that are being used, I suppose i could modify these if i wanted to be adventurous.
@apeo re: bypassing proxy
For the students, they use an internal proxy server, which passes the request externally, to another proxy. I could bypass this doing what you say, however the above applies too, where the script will redirect to the FQDN machine.school.region.sch.uk.
-
-
18th January 2006, 02:40 PM #12 Re: Manually adding records to DNS server

Originally Posted by
fooby @ chrisg re: adding the forward lookup:
Yes i can do this however I cut off access to my proxy server, I can add the addresses for this manually. If the addresses of the proxy changes this could cause problems also if another address is added to our domain, for internal access I would have to add the entries manually.
@ DMcCoy re: http://'.$_SERVER['SERVER_NAME']
Can't really change that, its Joomla, Moodle, PHPBB2 that are being used, I suppose i could modify these if i wanted to be adventurous.
@apeo re: bypassing proxy
For the students, they use an internal proxy server, which passes the request externally, to another proxy. I could bypass this doing what you say, however the above applies too, where the script will redirect to the FQDN machine.school.region.sch.uk.
Thats what I used in the joomla config.php as it is sort of broken otherwise for multiple domains. Also have to modify the editors in places though.
-
-
18th January 2006, 02:43 PM #13 Re: Manually adding records to DNS server
So in the config, you put in http://'.$_SERVER['SERVER_NAME'] instead of the address? I could try this.
Thanks to everyone so far, this is a good resource.
-
-
18th January 2006, 02:59 PM #14 Re: Manually adding records to DNS server
My config contains:
$mosConfig_live_site = 'http://'.$_SERVER['SERVER_NAME'];
This has to be changed by hand, and then the file needs to be set to read only to stop any changes mangling the address again.
-
-
18th January 2006, 03:06 PM #15 Re: Manually adding records to DNS server
Ah ok sorry i misread what you state, i thought you had already included the relevant entries into your dns server. My bad, think i need coffee 
Over here we have www and proxy entered in manually.
-
SHARE:
Similar Threads
-
By fooby in forum Networks
Replies: 13
Last Post: 23rd November 2007, 05:07 PM
-
By mmoseley in forum How do you do....it?
Replies: 4
Last Post: 12th October 2007, 05:44 PM
-
Replies: 1
Last Post: 3rd August 2007, 05:37 PM
-
By dezt in forum Networks
Replies: 2
Last Post: 13th July 2007, 10:09 AM
-
By SimpleSi in forum Windows
Replies: 12
Last Post: 29th December 2006, 04:23 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