okoestner
Posts: 42
Joined: Sat Aug 29, 2015 6:18 am

Issue with bind

Sun Aug 30, 2015 10:52 am

Hi,

I installed bind in my domain "flehenberg.local". When I try to lookup a public adress everyhting works fine. But when I try to resolve a local address I get the error message "** server can't find nas.flehenberg.local: SERVFAIL".

What might be wrong in my configuration? Where should I start troubleshooting?


My zone file looks like this:

Code: Select all

pi@flever /etc/bind $ cat zone.flehenberg.local
$TTL 2d
@  IN SOA  flever.flehenberg.local.   root.flever.flehenberg.local. (
                                      2015082802       ; serial
                                      3h               ; refresh
                                      1h               ; retry
                                      1w               ; expiry
                                      1d  )            ; minimum
flehenberg.local. IN NS   flever.flehenberg.local.
router            IN A    192.168.97.254
nas               IN A    192.168.97.200
And the reverse zone file like this:

Code: Select all

pi@flever /etc/bind $ cat zone.0.97.168.192.in-addr.arpa
$TTL 2d
@  IN SOA  flever.flehenberg.local.   root.flever.flehenberg.local. (
                                      2015082802       ; serial
                                      3h               ; refresh
                                      1h               ; retry
                                      1w               ; expiry
                                      1d  )            ; minimum
97.168.192.in-addr.arpa.         IN NS     flever.flehenberg.local.
254.97.168.192.in-addr.arpa.     IN PTR    router.flehenberg.local.
200.97.168.192.in-addr.arpa.     IN PTR    nas.flehenberg.local.

User avatar
DougieLawson
Posts: 39302
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Issue with bind

Sun Aug 30, 2015 7:18 pm

For your reverse zone try something like

Code: Select all

$TTL 3D
@ IN  SOA apollo.flehenberg.local. okoestner.apollo.flehenberg.local. (
                                201508301       ; Serial
                                8H   ; Refresh
                                3H    ; Retry
                                4W  ; Expire
                                1D)  ; Minimum TTL

   NS  flehenberg.local.

5.97.168.192.IN-ADDR.ARPA.              IN  PTR   saturn.flehenberg.local.
7.97.168.192.IN-ADDR.ARPA.              IN  PTR   raspberrypi.flehenberg.local.
9.97.168.192.IN-ADDR.ARPA.              IN  PTR   eagle.flehenberg.local.
11.97.168.192.IN-ADDR.ARPA.             IN  PTR   apollo.flehenberg.local.
13.97.168.192.IN-ADDR.ARPA.             IN  PTR   odyssey.flehenberg.local.
17.97.168.192.IN-ADDR.ARPA.             IN  PTR   aplus.flehenberg.local.
For the forward zone try

Code: Select all

$ORIGIN .
$TTL 259200     ; 3 days
flehenberg.local        IN SOA  ns.flehenberg.local. hostmaster.flehenberg.local. (
                                201508301  ; serial
                                28800      ; refresh (8 hours)
                                7200       ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      ns.flehenberg.local.
                        MX      10 mail.flehenberg.local.
$ORIGIN flehenberg.local.
aplus                   A       192.168.97.17
                        MX      10 mail
apollo                  A       192.168.97.11
                        MX      10 mail
eagle                   A       192.168.97.9
                        MX      10 mail
odyssey                 A       192.168.97.13
                        MX      10 mail
raspberrypi                 A       192.168.97.7
                        MX      10 mail
saturn                  A       192.168.97.5
                        MX      10 mail
Those examples are based on the zone files running on my network.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Networking and servers”