subdomain delegation question #2: (simple config)

2011-05-24 Thread dalton stickney
Hi all.

I have set up a simple bind config to test this. I am very obviously
missing something simple here, but i can't figure out what it is for
some reason.
I am trying to delegate name servers for the subdomain
sccnj04.example.com to ns sip.example.com.

When i dig i get no error, but also no answer:

;  DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5  ns sccnj04.example.com @ns1
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 8850
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;sccnj04.example.com.   IN  NS

;; AUTHORITY SECTION:
example.com.86400   IN  SOA ns1.example.com. 
hostmaster.example.com.
2011052405 3600 900 864000 86400

;; Query time: 0 msec
;; SERVER: 10.1.0.8#53(10.1.0.8)
;; WHEN: Tue May 24 13:08:03 2011
;; MSG SIZE  rcvd: 88


Here is my simple config:

named.conf


options {
   directory /var/named;
   version Nope.;
};

zone example.com in {
  type master;
  file example.com;
};

Here is the zone file:

$TTL 86400

; Start of Authority
example.com.86400  IN SOA   ns1.example.com.
  hostmaster.example.com. (
  2011052405 ; Serial
  3600   ; Refresh
  900; Retry
  864000 ; Expire
  86400  ; Min TTL
  )
; Host

sip.example.com.IN A 10.1.0.8
; Nameserver
example.com.IN NS ns1.example.com.

$ORIGIN sccnj04.example.com.
sccnj04 IN NS sip.example.com.

Thanks for any help or insight. I know i'm missing something obvious here.

Thanks,
Dalton
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: subdomain delegation question #2: (simple config)

2011-05-24 Thread Andrey G. Sergeev (AKA Andris)
Hi Dalton,


Tue, 24 May 2011 10:09:00 -0700 dalton stickney wrote:

 Hi all.
 
 I have set up a simple bind config to test this. I am very obviously
 missing something simple here, but i can't figure out what it is for
 some reason.
 I am trying to delegate name servers for the subdomain
 sccnj04.example.com to ns sip.example.com.
 
 When i dig i get no error, but also no answer:
 
 ;  DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5  ns
 sccnj04.example.com @ns1
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 8850
 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL:
 0
 
 ;; QUESTION SECTION:
 ;sccnj04.example.com. IN  NS
 
 ;; AUTHORITY SECTION:
 example.com.  86400   IN  SOA ns1.example.com. 
 hostmaster.example.com.
 2011052405 3600 900 864000 86400
 
 ;; Query time: 0 msec
 ;; SERVER: 10.1.0.8#53(10.1.0.8)
 ;; WHEN: Tue May 24 13:08:03 2011
 ;; MSG SIZE  rcvd: 88
 
 
 Here is my simple config:
 
 named.conf
 
 
 options {
directory /var/named;
version Nope.;
 };
 
 zone example.com in {
   type master;
   file example.com;
 };
 
 Here is the zone file:
 
 $TTL 86400
 
 ; Start of Authority
 example.com. 86400 IN SOA   ns1.example.com. hostmaster.example.com.
(
 2011052405 ; Serial
 3600   ; Refresh
 900; Retry
 864000 ; Expire
 86400  ; Min TTL
 )
 ; Host
 
 sip.example.com.   IN A 10.1.0.8
 ; Nameserver
 example.com.   IN NS ns1.example.com.
 
 $ORIGIN sccnj04.example.com.
 sccnj04IN NS sip.example.com.
^
You current $ORIGIN is sccnj04.example.com, so the non-FQDN label
sccnj04 at the line above would be sccnj04.sccnj04.example.com when
converted to FQDN.


-- 

Yours sincerely,

Andrey G. Sergeev (AKA Andris) http://www.andris.name/
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: subdomain delegation question #2: (simple config)

2011-05-24 Thread Eivind Olsen
dalton stickney wrote:

 ;; QUESTION SECTION:
 ;sccnj04.example.com. IN  NS

So, you ask for sccnj04.example.com, but apparantly that's not what you
have in your zonefile:

 $ORIGIN sccnj04.example.com.
 sccnj04   IN NS sip.example.com.

The $ORIGIN will be appended here to the non-FQDN, meaning you really have:

sccnj04.sccnj04.example.com.  IN NS sip.example.com.

Regards
Eivind Olsen


___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: subdomain delegation question #2: (simple config)

2011-05-24 Thread dalton stickney
Thanks to all of you for the great advice and insights! Everything is
working now, it was a combination of different issues and the advice
i received was invaluable to solving the issues.

Thanks again!

dalton

On Tue, May 24, 2011 at 10:36 AM, Andrey G. Sergeev (AKA Andris)
and...@aernet.ru wrote:
 Hi Dalton,


 Tue, 24 May 2011 10:09:00 -0700 dalton stickney wrote:

 Hi all.

 I have set up a simple bind config to test this. I am very obviously
 missing something simple here, but i can't figure out what it is for
 some reason.
 I am trying to delegate name servers for the subdomain
 sccnj04.example.com to ns sip.example.com.

 When i dig i get no error, but also no answer:

 ;  DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5  ns
 sccnj04.example.com @ns1
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 8850
 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL:
 0

 ;; QUESTION SECTION:
 ;sccnj04.example.com.         IN      NS

 ;; AUTHORITY SECTION:
 example.com.          86400   IN      SOA     ns1.example.com. 
 hostmaster.example.com.
 2011052405 3600 900 864000 86400

 ;; Query time: 0 msec
 ;; SERVER: 10.1.0.8#53(10.1.0.8)
 ;; WHEN: Tue May 24 13:08:03 2011
 ;; MSG SIZE  rcvd: 88


 Here is my simple config:

 named.conf


 options {
    directory /var/named;
    version Nope.;
 };

 zone example.com in {
       type master;
       file example.com;
 };

 Here is the zone file:

 $TTL 86400

 ; Start of Authority
 example.com. 86400 IN SOA   ns1.example.com. hostmaster.example.com.
 (
                             2011052405 ; Serial
                             3600       ; Refresh
                             900        ; Retry
                             864000     ; Expire
                             86400      ; Min TTL
                             )
 ; Host

 sip.example.com.   IN A 10.1.0.8
 ; Nameserver
 example.com.       IN NS ns1.example.com.

 $ORIGIN sccnj04.example.com.
 sccnj04            IN NS sip.example.com.
 ^
 You current $ORIGIN is sccnj04.example.com, so the non-FQDN label
 sccnj04 at the line above would be sccnj04.sccnj04.example.com when
 converted to FQDN.


 --

 Yours sincerely,

 Andrey G. Sergeev (AKA Andris)     http://www.andris.name/
 ___
 bind-users mailing list
 bind-users@lists.isc.org
 https://lists.isc.org/mailman/listinfo/bind-users

___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users