Re: need help in bind9 setup

This is a discussion on Re: need help in bind9 setup within the Bind Users forums, part of the DNS and Related Forums category; Would these be more correct ? db.dom-a.com: $TTL 86400 dom-a.com. IN SOA ns hostmaster (...omitted...) IN ...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2005
Chiang Seng Chang
 
Posts: n/a
Default Re: need help in bind9 setup

Would these be more correct ?

db.dom-a.com:

$TTL 86400
dom-a.com. IN SOA ns hostmaster
(...omitted...)
IN NS ns
IN MX 10 mail
@ IN A 1.2.3.4
localhost IN A 127.0.0.1
ns IN A 1.2.3.4
mail IN A 1.2.3.4
www IN CNAME @
foo IN CNAME @


db.dom-b.com:

$TTL 86400
dom-b.com. IN SOA ns.dom-a.com hostmaster.dom-a.com
(...omitted...)
IN NS ns.dom-a.com.
IN MX 10 mail.dom-a.com.
@ IN A 1.2.3.4
localhost IN A 127.0.0.1
www IN CNAME @


note. ip 1.2.3.4 is repeat many times (?)

-cs


Barry Margolin wrote:
> In article <d36qlh$2hn9$1@sf1.isc.org>,
> Chiang Seng Chang <cs@ctzen.com> wrote:
>
>
>>Hi,
>>
>>I have a colo machine with 1 ip address and several domain names, I need
>>to confirm that I am setting up bind9 correctly. (note. not using actual
>>machine name and ip).
>>
>>name of server: foo.dom-a.com
>>
>>domains: dom-a.com, dom-b.com
>>
>>named.conf (the interesting part):
>>
>> zone "." {
>> type hint;
>> file "named.root";
>> };
>>
>> zone "dom-a.com" in {
>> type master;
>> file "master/db.dom-a.com";
>> allow-query { any; };
>> };
>>
>> zone "dom-b.com" in {
>> type master;
>> file "master/db.dom-b.com";
>> allow-query { any; };
>> };
>>
>>
>>db.dom-a.com:
>>
>> $TTL 86400
>> dom-a.com. IN SOA ns hostmaster (...omitted...)
>> IN NS ns

>
>
> NS records must point to A records, not CNAME records.
>
> You should also have at least 2 nameservers for a zone.
>
>
>> IN MX 10 mail

>
>
> MX records must point to A records, not CNAME records.
>
>
>> @ IN A 1.2.3.4
>> localhost IN A 127.0.0.1
>> ns IN CNAME @
>> mail IN CNAME @
>> www IN CNAME @
>> foo IN CNAME @
>>
>>
>>db.dom-b.com:
>>
>> $TTL 86400
>> dom-b.com. IN SOA ns hostmaster (...omitted...)
>> IN NS ns
>> IN MX 10 mail

>
>
> Same as above -- these both must point to A records, and you should have
> two NSes.
>
>
>> @ IN A 1.2.3.4 ; SAME IP AS dom-a.com
>> localhost IN A 127.0.0.1
>> ns IN CNAME @
>> mail IN CNAME @
>> www IN CNAME @
>>
>>
>>notes:
>>
>>1. dom-a has an extra host foo
>>2. there is only 1 ip address
>>
>>
>>Question #2: how do I set up the reverse lookup zone file ?
>>
>>Obviously the colo is not going to give me a subnet, in fact there is
>>only 1 ip. In this case, do I just setup a
>>
>> zone "3.2.1.in-addr.arpa"
>>
>>and a
>>
>> 4 IN PTR foo.dom-a.com.
>>
>>?

>
>
> No, you should set up
>
> zone "4.3.2.1.in-addr.arpa"
>
> and it should contain
>
> @ IN PTR foo.dom-a.com.
>
> The colo center will have to delegate this reverse zone to your server.
>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:01 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0