View Single Post
  #8   (View Single Post)  
Old 6th February 2014
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by J65nko View Post
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.
I do not run authoritative DNS in my lab but IRC the last time I looked NSD
one can literally use the same BIND zone files.
Reply With Quote