+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 23
Wireless 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 ...
  1. #1
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    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

  2. #2

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,706
    Thank Post
    906
    Thanked 1,321 Times in 803 Posts
    Blog Entries
    1
    Rep Power
    445

    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.

  3. #3
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    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

  4. #4

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,706
    Thank Post
    906
    Thanked 1,321 Times in 803 Posts
    Blog Entries
    1
    Rep Power
    445

    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?

  5. #5
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    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

  6. #6

    Join Date
    Jul 2005
    Location
    Lancashire
    Posts
    30
    Thank Post
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    19

    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)

  7. #7
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,456
    Thank Post
    10
    Thanked 494 Times in 434 Posts
    Rep Power
    112

    Re: Manually adding records to DNS server

    Quote 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?

  8. #8

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,706
    Thank Post
    906
    Thanked 1,321 Times in 803 Posts
    Blog Entries
    1
    Rep Power
    445

    Re: Manually adding records to DNS server

    Ahh the joy of PHP, I been dev'ing in it for 6-7 years now

  9. #9
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    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.

  10. #10

    Join Date
    Jul 2005
    Location
    Lancashire
    Posts
    30
    Thank Post
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    19

    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.

  11. #11
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    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.

  12. #12
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,456
    Thank Post
    10
    Thanked 494 Times in 434 Posts
    Rep Power
    112

    Re: Manually adding records to DNS server

    Quote 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.

  13. #13
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    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.

  14. #14
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,456
    Thank Post
    10
    Thanked 494 Times in 434 Posts
    Rep Power
    112

    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.

  15. #15
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    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:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. DNS Server with wrong records
    By fooby in forum Wireless Networks
    Replies: 13
    Last Post: 23rd November 2007, 04:07 PM
  2. Adding extra HD to server
    By mmoseley in forum How do you do....it?
    Replies: 4
    Last Post: 12th October 2007, 05:44 PM
  3. Adding new 2003 Server
    By edsa in forum Windows
    Replies: 1
    Last Post: 3rd August 2007, 05:37 PM
  4. Adding new server to domain as DC
    By dezt in forum Wireless Networks
    Replies: 2
    Last Post: 13th July 2007, 10:09 AM
  5. Adding/Replacing a Drive in Server
    By SimpleSi in forum Windows
    Replies: 12
    Last Post: 29th December 2006, 03: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
  •