bind9 dns troubles
Peter Silva
peter at bsqt.homeip.net
Fri Jul 8 23:03:03 UTC 2016
two problems I can see...
db.66 should have reverse records in it... it is used to look up an
address on the 24.72.66/24 network segment, and map it to an address.
So it should have an entry something like:
135 IN PTR faithwalk.ca.
also the authoritative server is defined as 'server.faithwalk.ca' but
no address is given to resolve that name (the IN A record line starts
with ; ... commenting it out.)
On Fri, Jul 8, 2016 at 1:33 PM, Bob <livingsky at gmail.com> wrote:
> I am running Ubuntu 16.04, Apache2, Bind9, Postfix, Mailman
>
> I have set up a dns server on my system but keep running into problems with
> named-checkzone
>
> This is the errors that I get when I run named-checkzone on my reverse zone
> file, the actual zone file serves up ok.
>>
>> root at server:/home/bob# named-checkzone 66.72.24.in.addr.arpa
>> /etc/bind/db.66
>> /etc/bind/db.66:18: unknown RR type 'faithwalk.ca.'
>> /etc/bind/db.66:24: unknown RR type 'www'
>> /etc/bind/db.66:25: unknown RR type 'mail'
>> zone 66.72.24.in.addr.arpa/IN: loading from master file /etc/bind/db.66
>> failed: unknown class/type
>> zone 66.72.24.in.addr.arpa/IN: not loaded due to errors.
>
> This is /etc/bind/named.conf.local
>>
>> zone "faithwalk.ca" {
>> type master;
>> file "/etc/bind/db.faithwalk.ca";
>> also-notify {
>> 195.234.42.1;
>> 178.22.255.252;
>> 88.191.64.64;
>> };
>> };
>>
>> zone "66.72.24.in-addr.apra" {
>> type master;
>> file "/etc/bind/db.66";
>> also-notify {
>> 195.234.42.1;
>> 178.22.255.252;
>> 88.191.64.64;
>> };
>> };
>
>
> This is my zone file
>
>> $TTL 3600
>> @ IN SOA server.faithwalk.ca. bob.faithwalk.ca. (
>> 2016070801 ; Serial
>> 3H ; refresh after 3 hours
>> 1H ; retry after 1 hour
>> 1W ; expire after 1 week
>> 1D) ; minimum TTL of 1 day
>>
>> ; Name Server
>> IN NS server.faithwalk.ca. ; Primary server
>> IN NS ns0.xname.org. ; non-local server xname 1
>> IN NS ns1.xname.org. ; non-local server xname 2
>> IN NS ns2.xname.org. ; non-local server xname 3
>>
>> ; Mail Exchanger
>> IN MX 10 mail.faithwalk.ca. ; faithwalk mail
>>
>> ;dns
>> server IN A 24.72.66.135
>> ns0 IN A 195.234.42.1
>> ns1 IN A 178.22.255.252
>> ns2 IN A 88.191.64.64
>>
>> ;Machine names
>> ;server IN A 24.72.66.135
>> mail IN A 24.72.66.135
>>
>>
>>
>> ;aliases
>> www IN CNAME faithwalk.ca.
>> ;mail IN CNAME faithwalk.ca.
>>
>>
>> ; esource Record - veryfy the IP where your mails come from(disable if not
>> needed)
>> ; @ IN TXT "v=spf1 ip4:85.214.123.0/24 -all"
>>
>> ; EOF
>
>
> this is /etc/bind/db.66
>
>> $TTL 3600
>> @ IN SOA server.faithwalk.ca. bob.faithwalk.ca. (
>> 2106070801 ; Serial
>> 3H ; Refresh
>> 1H ; Retry
>> 1W ; Expire
>> 1D ) ; Negative Cache TTL
>> ;name server
>> IN NS faithwalk.ca. ;Primary nameserver
>> IN NS ns0.xname.org. ;non-local server xname 1
>> IN NS ns1.xname.org. ;non-local server xname 2
>> IN NS ns2.xname.org. ;non-local server xname 3
>>
>> ;Mail Exchanger
>> IN MX 10 mail.faithwalk.ca. ;faithwalk mail
>>
>> ;dns PTR
>> faithwalk.ca. IN PTR 24.72.66.135
>> ; ns0 IN PTR 195.234.42.1
>> ; ns1 IN PTR 178.22.255.252
>> ; ns2 IN PTR 99.191.64.64
>>
>> ;Machine names
>> www IN CNAME faithwalk.ca.
>> mail IN PTR faithwalk.ca.
>>
>> ; esource Record - verify the IP where your mails come from (disable if
>> not needed)
>> ; @ IN TXT "v+spf1 ip4:85.214.123.0/24 -all"
>>
>>
>> ; EOF
>
>
> This is the output of dig faithwalk.ca
>>
>> ; <<>> DiG 9.10.3-P4-Ubuntu <<>> faithwalk.ca
>> ;; global options: +cmd
>> ;; Got answer:
>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2578
>> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
>>
>> ;; QUESTION SECTION:
>> ;faithwalk.ca. IN A
>>
>> ;; AUTHORITY SECTION:
>> faithwalk.ca. 3600 IN SOA server.faithwalk.ca.
>> bob.faithwalk.ca. 2016070801 10800 3600 604800 86400
>>
>> ;; Query time: 352 msec
>> ;; SERVER: 127.0.1.1#53(127.0.1.1)
>> ;; WHEN: Fri Jul 08 11:28:25 CST 2016
>> ;; MSG SIZE rcvd: 77
>
>
> This is the output of nslookup faithwalk.ca
>
>> root at server:/home/bob# nslookup faithwalk.ca
>> Server: 127.0.1.1
>> Address: 127.0.1.1#53
>>
>> Non-authoritative answer:
>> *** Can't find faithwalk.ca: No answer
>
>
>
>
> Any help would be appreciated. I have searched out RR errors and nothing
> seemed either to apply or work when I tried the suggestions. I am also
> puzzled as to why nslookup does not find my domain.
>
> Bob
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users
mailing list