Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

can someone please enlighten me in setting up the correct format of forward zone.

$TTL    604800
foo.com.        IN      SOA     foo.com. admin.foo.com. (
                                      2         ; Serial
                                 604800         ; Refresh
                                  86400         ; Retry
                                2419200         ; Expire
                                 604800 )       ; Negative Cache TTL
;

foo.com.        IN      A       dns.foo.com.

www             IN      A       192.168.1.54
dns             IN      A       192.168.1.5

this part

foo.com.        IN      A       dns.foo.com.

should i replace the dns with my dns server hostname? cause ive seen others use ns1 or dns?

so if my dns hostname is test, id be using test.foo.com.?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

The correct line should be:

foo.com.        IN      NS       dns.foo.com.

The DNS servers should be registered in a NS type record. The name is up to you. If your DNS hostname is "test", write:

foo.com.        IN      NS       test.foo.com.

You'll also need a A type record saying who is "test":

test            IN      A        192.168.X.X
share|improve this answer

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.