Results 1 to 5 of 5

Thread: DNS for internal sub-domain from external domain?

  1. #1
    Join Date
    Dec 2008
    Location
    USA
    Beans
    513
    Distro
    Ubuntu 12.04 Precise Pangolin

    DNS for internal sub-domain from external domain?

    I have a company website hosted by godaddy.

    I also have an internal small business network. I have been making it a bit more corporate latterly. I've added a few intranet tools and even one that I would like to have accessibly from the Internet.


    So Can I create a sub domain that is internal while using the godaddy DNS to point to my local server?
    Will a bind9 and samba setup work for the sub domain?


    Thanks?
    Last edited by wlraider70; June 21st, 2013 at 04:19 AM.
    I don' really like coffee. I guess I'll give my Ubuntu beans to my wife.

    Luke

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,837
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: DNS for internal sub-domain from external domain?

    Quote Originally Posted by wlraider70 View Post
    So Can I create a sub domain that is internal while using the godaddy DNS to point to my local server? Will a bind9 and samba setup work for the sub domain?
    Yes and yes.

    However I usually have two pairs of DNS servers, a public service that runs on my cloud-based servers at Linode, and a private one visible only within my local network. Some of the address mappings in the local server point to addresses at Linode; the rest point to local servers and clients. That eliminates the need for subdomain addressing like "hostname.local.example.com". It also avoids having to advertise the subdomain on your publicly-visible server.

    Just make sure local clients use the local nameserver for all queries against your domain.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Dec 2008
    Location
    USA
    Beans
    513
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS for internal sub-domain from external domain?

    That makes sense.

    I have an apache server and its serving one site/application.
    Right now it's at <officeipaddress>/database.php. Is it possible to use an ip record to make that discoverable at mysite.org/whatever/addresses ?

    How would I configure that record?
    I don' really like coffee. I guess I'll give my Ubuntu beans to my wife.

    Luke

  4. #4
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,837
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: DNS for internal sub-domain from external domain?

    You could point the DNS A record to the public server IP and use port forwarding with iptables to relay the traffic on ports 80 and/or 443 to your local machine. I recommend setting up an OpenVPN point-to-point tunnel with static keys for this task.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Dec 2008
    Location
    USA
    Beans
    513
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS for internal sub-domain from external domain?

    Thanks
    I don' really like coffee. I guess I'll give my Ubuntu beans to my wife.

    Luke

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •