View Single Post
  #2   (View Single Post)  
Old 5th February 2014
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

At this moment I am not able to test , but the following modification of the example of Authoritative only BIND nameserver for local domain should define two sub-domains of de.filo:
  • frankfurt.de.filo
  • freiburg.de.filo

Zone file:

Code:
; Zone file for de.filo
$TTL 86400
@               IN      SOA     ns1.de.filo. j65.de.filo. (
                2009120802      ; serial, todays date+todays  
                86400           ; refresh, seconds
                7200            ; retry, seconds
                3600000         ; expire, seconds
                86400 )         ; minimum, seconds


                IN NS ns1.de.filo.
                IN NS ns2.de.filo.

                IN MX 0 mail.de.filo.

localhost       IN A 127.0.0.1

ns1             IN A 192.168.222.245
ns2             IN A 192.168.222.200

mail            IN A 192.168.222.20
www             IN A 192.168.222.20
ftp             IN A 192.168.222.20

; sub-domains

frankfurt       IN NS ns1.de.filo.
                IN NS ns2.de.filo.
freiburg        IN NS ns1.de.filo.
                IN NS ns2.de.filo.
Of course you will need to create additional zone files for the frankfurt.de.filo and freiburg.de.filo sub-domains.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 5th February 2014 at 07:53 PM. Reason: Forgot to add the ".' at the end of the sub-domain nameservers
Reply With Quote