Skip to content

Instantly share code, notes, and snippets.

@PaulGWebster
Created June 2, 2022 22:52
Show Gist options
  • Save PaulGWebster/533c45bc6c8bc0ef1b5497983d2684f9 to your computer and use it in GitHub Desktop.
Save PaulGWebster/533c45bc6c8bc0ef1b5497983d2684f9 to your computer and use it in GitHub Desktop.
Zonefile layout for NSD query
$ORIGIN perl.place.
$TTL 300
@ IN SOA ns1.ptr.bond [email protected]. (
3000000201
1H
2H
7H
1H
)
IN NS ns1.ptr.bond.
IN NS ns2.ptr.bond.
ns1 IN CNAME ns1.ptr.bond
ns2 IN CNAME ns2.ptr.bond
@ IN A 54.37.4.73
acmetest IN A 5.9.137.144
validate IN A 1.1.1.1
@mnordhoff
Copy link

mnordhoff commented Jun 2, 2022

FWIW, assuming this is a normal zone file, the first line of your SOA record should be:

@ IN SOA ns1.ptr.bond. paulgwebster.googlemail.com. (

@PaulGWebster
Copy link
Author

PaulGWebster commented Jun 3, 2022

got it! :)

$ORIGIN paulwebster.org.
$TTL 300
@ IN SOA ns1.ptr.bond. [email protected]. (
     4000000000
     1H
     2H
     7H
     1H
)

                                IN      NS      ns1.ptr.bond.
                                IN      NS      ns2.ptr.bond.
                                IN      NS      ns3.ptr.bond.

                                MX      10      mx1.paulwebster.org.
                                MX      10      mx2.paulwebster.org.

@                               IN      A       54.37.4.73
mx1                             IN      A       51.77.121.26
mx2                             IN      A       51.38.85.175
de1                             IN      A       5.9.137.144
gateway                         IN      A       54.37.4.73
vpn                             IN      A       54.37.4.73
validate                        IN      A       1.1.1.1
gateway.vpn                     IN      A       54.37.4.73

@PaulGWebster
Copy link
Author

$ORIGIN paulwebster.org.
$TTL 300
. IN SOA ns1.ptr.bond. [email protected]. (
     4000000000
     1H
     2H
     7H
     1H
)

                                IN      NS      ns1.ptr.bond.
                                IN      NS      ns2.ptr.bond.
                                IN      NS      ns3.ptr.bond.

                                MX      10      mx1.paulwebster.org.
                                MX      10      mx2.paulwebster.org.

@                               IN      A       54.37.4.73
mx1                             IN      A       51.77.121.26
mx2                             IN      A       51.38.85.175
de1                             IN      A       5.9.137.144
gateway                         IN      A       54.37.4.73
vpn                             IN      A       54.37.4.73
validate                        IN      A       1.1.1.1
gateway.vpn                     IN      A       54.37.4.73

@PaulGWebster
Copy link
Author

Ok .'s instead of @claco

$ORIGIN paulwebster.org.
$TTL 300
@ IN SOA ns1.ptr.bond. paulgwebster.googlemail.com. (
     4000000000
     1H
     2H
     7H
     1H
)

                                IN      NS      ns1.ptr.bond.
                                IN      NS      ns2.ptr.bond.
                                IN      NS      ns3.ptr.bond.

                                MX      10      mx1.paulwebster.org.
                                MX      10      mx2.paulwebster.org.

@                               IN      A       54.37.4.73
mx1                             IN      A       51.77.121.26
mx2                             IN      A       51.38.85.175
de1                             IN      A       5.9.137.144
gateway                         IN      A       54.37.4.73
vpn                             IN      A       54.37.4.73
validate                        IN      A       1.1.1.1
gateway.vpn                     IN      A       54.37.4.73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment