Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Point a subdomain to a separate DNS server

Status
Not open for further replies.

davenims

Programmer
Jan 10, 2003
1
GB
Hello, I wonder if anyone could help me or if I am completely barking up the wrong tree.

I have the following set-up

- Website currently hosted at, say mydomain.com
- Full DNS management available on domain mydomain.com
- Web connection with only 1 fixed IP address
- Requirement to access 2 Ubuntu servers on site via the same domain

1) I have set up a sub-domain with an A record x.mydomain.com which points to the fixed IP address I have from my ISP

2) I have set up a DNS server on Ubuntu using the tutorial here for the domain x.mydomain.com

3) Setup zones on the Ubuntu server to point ubuntu1.x.mydomain.com and ubuntu2.x.mydomain.com to local IP addresses

4) Forwarded TCP and UDP ports 53 on my router to the ubuntu DNS server

My idea is that I can visit, for example, ubuntu1.x.mydomain.com while the main website (off-site) remains on however somethings still not working as I can't connect.

Any ideas, or is there a better way to do this? I can't get another IP address from my ISP unfortunately.
 
the point is that you need to define the zone "x" on the mydomain.com nameserver. (using an NS record) the NS record on the mydomain.com server has to point to your ubuntu dns server (where you define the hosts belonging to the x.mydomain.com)

in this way any client on the internet wanting to resolve a name in x.mydomain.com is first directed to the mydomain.com nameserver. That nameserver will then tell the client that in order to find hosts in the subdomain x.mydomain.com it has to talk to the nameserver defined in the NS record. This (your nameserver subsequently can give the IP for any host under x that is defined there ...

G.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top