Re: Need help debugging my zone file

2014-01-31 Thread Jan-Piet Mens
(*shamefaced*) Your message popped up as 'new' which is why I answered
before noticing it had been answered already. :(

-JP
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


Re: Need help debugging my zone file

2014-01-31 Thread Jan-Piet Mens
> carter bind # named-checkzone espersunited.com db.espersunited.com
> dns_master_load: db.espersunited.com:37: www.espersunited.com: CNAME and
> other data
> zone espersunited.com/IN: loading from master file db.espersunited.com
> failed: CNAME and other data
> zone espersunited.com/IN: not loaded due to errors.

checkzone is telling you where the problem is: it's on line 37 of that
file. Furthermore, the zone is not being loaded because it's erroneous.

> www.espersunited.com. IN A 192.168.0.2
[...] 
> ;CNAME records
> www.espersunited.com.   IN CNAME carter.espersunited.com.

You have a CNAME for www and an A record for it; that's illegal, which
is why BIND is saying 'CNAME and other data'.

-JP
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


Re: Need help debugging my zone file

2014-01-26 Thread Mark Andrews

In message <52e5904e.5070...@gmail.com>, Michael Sullivan writes:
> Years ago I set up a DNS server on my network.  I found out last Friday
> that it is no longer working.  I switched to a new ISP last July and
> after that, my network numbers changed from 192.168.2.? to 192.168.0.?.
>  I have updated my zone file, but it still doesn't work and I can't
> figure out why.

You made other changes than just the address changes.
 
> Here's the output from named-checkconf:
> 
> carter bind # named-checkconf named.conf
> carter bind #
> 
> 
> So named.conf is good.
> 
> The problem I'm having is with db.espersunited.com
> 
> Here's the output of named-checkzone:
> 
> 
> 
> carter bind # named-checkzone espersunited.com db.espersunited.com
> dns_master_load: db.espersunited.com:37: www.espersunited.com: CNAME and
> other data
> www.espersunited.com.   IN CNAME carter.espersunited.com.
> zone espersunited.com/IN: loading from master file db.espersunited.com
> failed: CNAME and other data
> zone espersunited.com/IN: not loaded due to errors.
> carter bind #

At the error message says you have a "CNAME and other data" for
www.espersunited.com which you do (below).  The conflicting record
was detected at line 37 of file db.espersunited.com.

dns_master_load: db.espersunited.com:37: www.espersunited.com: CNAME and other 
data

www.espersunited.com.   IN A 192.168.0.2
www.espersunited.com.   IN CNAME carter.espersunited.com.

CNAME say "the real data for the LHS is at the RHS".  It is prohibited
so that the resolver can know that it doesn't have to do a lookup
for www.espersunited.com  if it has a www.espersunited.com
CNAME record cached.

You need to work out which of these records you wish to keep.

> carter bind # cat db.espersunited.com
[snipped]
> carter bind #
> 
> I can't see anything wrong with it, but when I try to dig
> carter.espersunited.com, I get
> carter bind # dig carter.espersunited.com
> 
> ; <<>> DiG 9.9.3-P2 <<>> carter.espersunited.com
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 46676
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;carter.espersunited.com. IN  A
> 
> ;; Query time: 0 msec
> ;; SERVER: 127.0.0.1#53(127.0.0.1)
> ;; WHEN: Sun Jan 26 16:46:11 CST 2014
> ;; MSG SIZE  rcvd: 52
> 
> carter bind #

Yep, the zone file contains a detectable error so named has refused
to load it.  This is required behaviour from RFC 1034/1035.

Mark

> SERVFAIL.  What am I missing?
> ___
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
> from this list
> 
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


Re: Need help debugging my zone file

2014-01-26 Thread Leonard Mills
Easy fix.. These two records can not coexist:

    www.espersunited.com.           IN CNAME carter.espersunited.com.
    www.espersunited.com.        IN A 192.168.0.2

The error message was completely correct in saying:
    failed: CNAME and other data

In this particular case, the other data was an A resource record.

Hope this helps,

Len






On Sunday, January 26, 2014 2:47 PM, Michael Sullivan  
wrote:
 
Years ago I set up a DNS server on my network.  I found out last Friday
>that it is no longer working.  I switched to a new ISP last July and
>after that, my network numbers changed from 192.168.2.? to 192.168.0.?.
>I have updated my zone file, but it still doesn't work and I can't
>figure out why.
>
>Here's the output from named-checkconf:
>
>carter bind # named-checkconf named.conf
>carter bind #
>
>
>So named.conf is good.
>
>The problem I'm having is with db.espersunited.com
>
>Here's the output of named-checkzone:
>
>
>
>carter bind # named-checkzone espersunited.com db.espersunited.com
>dns_master_load: db.espersunited.com:37: www.espersunited.com: CNAME and
>other data
>zone espersunited.com/IN: loading from master file db.espersunited.com
>failed: CNAME and other data
>zone espersunited.com/IN: not loaded due to errors.
>carter bind #
>
>
>And here's the4 zone file itself:
>
>carter bind # cat db.espersunited.com
>$TTL 3h
>espersunited.com.  IN SOA carter.espersunited.com.
>michael.carter.espersunited.com. (
>
>   1    ;Serial
>   3h     ;Refresh after 3 hours
>   1h    ;Retry after one hour
>   1w    ;Expire after one week
>   1h ) ;Negative caching TTL of 1 hour
>
>;Name server(s)
>espersunited.com.     IN NS carter.espersunited.com.
>ns.espersunited.com     IN NS carter.espersunited.com.
>cam.espersunited.com     IN NS camille.espersunited.com.
>cat.espersunited.com    IN NS catherine.espersunited.com.
>
>;Host addresses
>localhost.espersunited.com.     IN A 127.0.0.1
>carter.espersunited.com.        IN A 192.168.0.2
>camille.espersunited.com.       IN A 192.168.0.3
>catherine.espersunited.com.     IN A 192.168.0.4
>bullet.espersunited.com.        IN A 192.168.0.5
>espersunited.com.               IN A 192.168.0.2
>www.espersunited.com.        IN A 192.168.0.2
>
>
>;MX records
>espersunited.com.                 IN MX   0 carter.espersunited.com.
>carter.espersunited.com.          IN MX   1 carter.espersunited.com.
>
>;CNAME records
>mail.espersunited.com.          IN CNAME carter.espersunited.com.
>imap.espersunited.com.          IN CNAME carter.espersunited.com.
>smtp.espersunited.com.          IN CNAME carter.espersunited.com.
>pop.espersunited.com.           IN CNAME carter.espersunited.com.
>pop3.espersunited.com.          IN CNAME carter.espersunited.com.
>ftp.espersunited.com.           IN CNAME carter.espersunited.com.
>www.espersunited.com.           IN CNAME carter.espersunited.com.
>festival.espersunited.com.      IN CNAME camille.espersunited.com.
>
>carter bind #
>
>I can't see anything wrong with it, but when I try to dig
>carter.espersunited.com, I get
>carter bind # dig carter.espersunited.com
>
>; <<>> DiG 9.9.3-P2 <<>> carter.espersunited.com
>;; global options: +cmd
>;; Got answer:
>;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 46676
>;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
>
>;; OPT PSEUDOSECTION:
>; EDNS: version: 0, flags:; udp: 4096
>;; QUESTION SECTION:
>;carter.espersunited.com.    IN    A
>
>;; Query time: 0 msec
>;; SERVER: 127.0.0.1#53(127.0.0.1)
>;; WHEN: Sun Jan 26 16:46:11 CST 2014
>;; MSG SIZE  rcvd: 52
>
>carter bind #
>
>
>SERVFAIL.  What am I missing?
>___
>Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
>from this list
>
>bind-users mailing list
>bind-users@lists.isc.org
>https://lists.isc.org/mailman/listinfo/bind-users
>
>
>___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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

Need help debugging my zone file

2014-01-26 Thread Michael Sullivan
Years ago I set up a DNS server on my network.  I found out last Friday
that it is no longer working.  I switched to a new ISP last July and
after that, my network numbers changed from 192.168.2.? to 192.168.0.?.
 I have updated my zone file, but it still doesn't work and I can't
figure out why.

Here's the output from named-checkconf:

carter bind # named-checkconf named.conf
carter bind #


So named.conf is good.

The problem I'm having is with db.espersunited.com

Here's the output of named-checkzone:



carter bind # named-checkzone espersunited.com db.espersunited.com
dns_master_load: db.espersunited.com:37: www.espersunited.com: CNAME and
other data
zone espersunited.com/IN: loading from master file db.espersunited.com
failed: CNAME and other data
zone espersunited.com/IN: not loaded due to errors.
carter bind #


And here's the4 zone file itself:

carter bind # cat db.espersunited.com
$TTL 3h
espersunited.com.  IN SOA carter.espersunited.com.
michael.carter.espersunited.com. (

   1;Serial
   3h   ;Refresh after 3 hours
   1h   ;Retry after one hour
   1w   ;Expire after one week
   1h ) ;Negative caching TTL of 1 hour

;Name server(s)
espersunited.com.   IN NS carter.espersunited.com.
ns.espersunited.com IN NS carter.espersunited.com.
cam.espersunited.comIN NS camille.espersunited.com.
cat.espersunited.comIN NS catherine.espersunited.com.

;Host addresses
localhost.espersunited.com. IN A 127.0.0.1
carter.espersunited.com.IN A 192.168.0.2
camille.espersunited.com.   IN A 192.168.0.3
catherine.espersunited.com. IN A 192.168.0.4
bullet.espersunited.com.IN A 192.168.0.5
espersunited.com.   IN A 192.168.0.2
www.espersunited.com.   IN A 192.168.0.2


;MX records
espersunited.com. IN MX   0 carter.espersunited.com.
carter.espersunited.com.  IN MX   1 carter.espersunited.com.

;CNAME records
mail.espersunited.com.  IN CNAME carter.espersunited.com.
imap.espersunited.com.  IN CNAME carter.espersunited.com.
smtp.espersunited.com.  IN CNAME carter.espersunited.com.
pop.espersunited.com.   IN CNAME carter.espersunited.com.
pop3.espersunited.com.  IN CNAME carter.espersunited.com.
ftp.espersunited.com.   IN CNAME carter.espersunited.com.
www.espersunited.com.   IN CNAME carter.espersunited.com.
festival.espersunited.com.  IN CNAME camille.espersunited.com.

carter bind #

I can't see anything wrong with it, but when I try to dig
carter.espersunited.com, I get
carter bind # dig carter.espersunited.com

; <<>> DiG 9.9.3-P2 <<>> carter.espersunited.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 46676
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;carter.espersunited.com.   IN  A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Jan 26 16:46:11 CST 2014
;; MSG SIZE  rcvd: 52

carter bind #


SERVFAIL.  What am I missing?
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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