Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I currently have a virtual machine from fast hosts, and I also use their domain hosting to.

On their name servers I have a zone file for my domain (lets say domain.co.uk), with A records for www, ftp etc. These A records point to my virtual server, where I am running IIS.

I have now also set up DNS on my virtual server, and created a subdomain (internal.domain.co.uk), and some A records (web.internal.domain.co.uk).

What do I need to do in my zonefile for domain.co.uk, to send requests for internal.domain.co.uk to my virtual server?

Thanks in advance


share|improve this question

migrated from stackoverflow.com Dec 6 '11 at 22:22

This question came from our site for professional and enthusiast programmers.

Dare I ask why you wouldn't just set up the subdomain on your primary DNS host? It would seem easier/cleaner. –  Driftpeasant Dec 6 '11 at 23:12
Because I can't install software on the fasthost dns server, but on my virtual server I can create a web service to update some a records with the dynamic IP of my home connection where me dev server is. –  Mark Jones Jan 5 '12 at 13:24

2 Answers 2

up vote 1 down vote accepted

You need to define a name server for the subdomain in your zone file for domain.co.uk

; sub-domain definitions
$ORIGIN internal.domain.co.uk.
; we define a name server for the sub-domain
@             IN      NS     ns3.internal.domain.co.uk.

; sub-domain address records for name server only - glue record
ns3           IN      A ; 'glue' record

See http://www.zytrax.com/books/dns/ch9/delegate.html for more details and advanced configuration.

share|improve this answer

Best way I could find to do this was to add another name server to my zone file, that points to my Virtual Server. The virtual server holds another copy of the domain, and the subdomain

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.