[nsd-users] Problems with subdomains in NSD

Tim Smith r.andomdev4+nsd at gmail.com
Wed Oct 26 09:38:38 UTC 2016


Hi,

I'm having difficulties getting subdomains to work in NSD and would be
eternally greatful if someone could tell me where I'm going wrong !

I have obfuscated the details below, but I am trying to extend
example.org with auto.example.org

The problem I'm finding is NSD reloads fine, but the slaves never
download a fresh copy of the zone (despite the master logs suggesting
so), and querying slaves or master doesn't give the desired results
(it responds with an empty reply)

I have tried :

(1) This....

$ORIGIN .
$TTL 3600       ; 1 hour
example.org                IN SOA  devnull.example.com. support.example.com. (
                                531790048  ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                1209600    ; expire (2 weeks)
                                3600       ; minimum (1 hour)
                                )
                        NS      bob.example.com.
                        NS      jane.example.com.
                        MX      10 rx4.example.com.
                        MX      5 rx3.example.com.
                        TXT     "v=spf1 mx ip4:172.16.177.0/24
ip4:172.16.178.0/24 -all"
$ORIGIN example.org.
auto                    MX      10 rx4.example.com.
auto                    MX      5 rx3.example.com.
auto                    TXT     "v=spf1 mx ip4:172.16.177.0/24
ip4:172.16.178.0/24 -all"


(2) That....

$ORIGIN .
$TTL 3600       ; 1 hour
example.org                IN SOA  devnull.example.com. support.example.com. (
                                531790048  ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                1209600    ; expire (2 weeks)
                                3600       ; minimum (1 hour)
                                )
                        NS      bob.example.com.
                        NS      jane.example.com.
                        MX      10 rx4.example.com.
                        MX      5 rx3.example.com.
                        TXT     "v=spf1 mx ip4:172.16.177.0/24
ip4:172.16.178.0/24 -all"
$ORIGIN auto.example.org.
                        MX      10 rx4.example.com.
                        MX      5 rx3.example.com.
                        TXT     "v=spf1 mx ip4:172.16.177.0/24
ip4:172.16.178.0/24 -all"


(3) Something else.....


$ORIGIN .
$TTL 3600       ; 1 hour
example.org                IN SOA  devnull.example.com. support.example.com. (
                                531790048  ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                1209600    ; expire (2 weeks)
                                3600       ; minimum (1 hour)
                                )
                        NS      bob.example.com.
                        NS      jane.example.com.
                        MX      10 rx4.example.com.
                        MX      5 rx3.example.com.
                        TXT     "v=spf1 mx ip4:172.16.177.0/24
ip4:172.16.178.0/24 -all"
$ORIGIN auto.example.org.
                        IN MX      10 rx4.example.com.
                        IN MX      5 rx3.example.com.
                        IN TXT     "v=spf1 mx ip4:172.16.177.0/24
ip4:172.16.178.0/24 -all"



(4) And even....


$ORIGIN .
$TTL 3600       ; 1 hour
example.org                IN SOA  devnull.example.com. support.example.com. (
                                531790048  ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                1209600    ; expire (2 weeks)
                                3600       ; minimum (1 hour)
                                )
                        NS      bob.example.com.
                        NS      jane.example.com.
                        MX      10 rx4.example.com.
                        MX      5 rx3.example.com.
                        TXT     "v=spf1 mx ip4:172.16.177.0/24
ip4:172.16.178.0/24 -all"
$ORIGIN auto.example.org.
 @                       IN MX      10 rx4.example.com.
  @                      IN MX      5 rx3.example.com.
   @                     IN TXT     "v=spf1 mx ip4:172.16.177.0/24
ip4:172.16.178.0/24 -all"



More information about the nsd-users mailing list