[BlueOnyx:16282] Re: SRV Record

Michael Stauber mstauber at blueonyx.it
Wed Oct 29 10:47:15 -05 2014


Hi Richard,

> Can't seem to get this to work. I have included the following in the
> db.domain.tld.include file:

Is this related to the secondary DNS import from the Windows box you
asked about earlier? Where you'd like to convert the secondary into
primaries?

The issue here is that the secondary DNS records simply don't contain
sufficient information. The records are in the format of "if you need
info about site.com, ask the DNS server 192.168.0.1".

A real zone file on the other hand looks a lot different, as it has all
the nitty-gritty details like this:

-------------------------------------------------
; db.basura.net
;
; This file was automatically generated by dns_generate.pl.  Do not
; edit this file directly.  If you need to make additions to this
; file that CCE does not support, add your extra records to the
; db.basura.net.include file.

$TTL 86400
basura.net. IN SOA 5108r.smd.net. admin.5108r.smd.net. (
        2014101528 ; serial number
        10800 ; refresh
        3600 ; retry
        604800 ; expire
        86400 ; ttl
        )
basura.net.     IN      NS      5108r.smd.net.

smtp.basura.net.        in a 208.67.251.187
basura.net.     in mx 20 mail.basura.net.
ns1.basura.net. in a 208.67.251.187
ftp.basura.net. in a 208.67.251.187
pop3.basura.net.        in a 208.67.251.187
mail.basura.net.        in a 208.67.251.187
www.basura.net. in a 208.67.251.187

; User customizations go in this include file:
$INCLUDE db.basura.net.include
-------------------------------------------------

The "SRV" record is not used to indicate which DNS server is
authoritative for a record. That would actually go into the SOA of an
individual DNS record. As shown above, where "IN SOA 5108r.smd.net"
defines 5108r.smd.net as authoritative for that domain.

A Service record (SRV record) is a specification of data in the Domain
Name System defining the location, i.e. the hostname and port number, of
servers for specified services. You'd only need that for the domain of
the actual DNS server, but not for all other records.

So back to your original question: Can a secondary be turned into a
primary? Yes and no. You'd need to do an AXFR zone transfer from the
primary to the secondary. Then you need to copy the transfered zones to
a temporary directory, edit the SOA for all records to point them to
your new DNS server (instead of the Windows box) and then you can do a
dnsImport on the edited zone files.

If it's just a handfull of records it might actually be less work to
create them manually <sigh>.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list