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

I am running bind9 on my home machine and hosting several zone files. This is working nicely and I am running various web services.

I now want to host a web service on an external machine (a Linode), and would like to verify that my host file looks correct;

In this example 1.2.3.4 is my home machine, and 100.101.102.103 is my Linode.

TTL 86400

example.com.     IN  SOA   ns.example.com. admin.example.com. (
                        7               ; serial number
                        28800           ; Refresh
                        7200            ; Retry
                        864000          ; Expire
                        86400 )         ; Min TTL

@           IN  NS      ns.example.com.

@           IN  A       1.2.3.4
ns1         IN  A       1.2.3.4
test        IN  A       100.101.102.103
www         IN  A       100.101.102.103

I want www.example.com and test.example.com to be hosted on my Linode, which will not be running bind, only a web server.

Thank you!

Darren

share|improve this question
add comment

2 Answers

Where is your A record for ns.example.com?

The debate about using CNAMEs or multiple A records is up to you: DNS - Multiple A records or 1 A record and lots of CNAMEs?

share|improve this answer
    
Thank you! That 'ns1' was meant to be an 'ns'. –  darren Jun 1 '12 at 22:22
add comment

This is correct. Requests for www.example.com and test.example.com will be directed to 100.101.102.103.

share|improve this answer
    
Appreciate it :) –  darren Jun 1 '12 at 22:22
add comment

Your Answer

 
discard

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.