DNS

From Edgar BV Wiki
Jump to navigation Jump to search

When using DNS the server itself needs to resolve at any time, so it's important it runs it's own DNS server.

This means that if you're allready running a DNS server with zones in it, you have two choices:

Convert to the MS DNS server

There is some script somewhere that allows you to dig your bind9 dns server and then use windows powershell to import the lines to windows DNS.

Convert the MS DNS records to bind9

You can find the DNS zones and records in the windows DNS tool. They look something like this in bind9:

root@router-gw:/var/named/soa# cat xxx-ad.local
; copied from the SBS2011 configuration
@       IN      SOA     router.mynet.int. root.mynet.int. (
                        2013070103      ; YYYYMMDDnn
                        10800           ; refresh
                        3600            ; retry
                        604800          ; expire
                        86400 )         ; minimum TTL
;
                        IN NS   router.mynet.int.
                        IN NS   myexch1.xxx-ad.local.
                        IN A    192.168.0.5
;
Companyweb              IN A    192.168.0.5
connect                 IN A    192.168.0.5
SBSConnectComputer      IN A    192.168.0.5
SharepointSMTPServer    IN A    192.168.0.5 ;on the SBS machine it's 127.0.0.1
Sites                   IN A    192.168.0.5
myexch1               IN A    192.168.0.5
;
; Autodiscover  SRV record
;
_autodiscover._tcp      IN      SRV 10 10 443 myexch1.xxx-ad.local.

and

root@router-gw:/var/named/soa# cat _msdcs.xxx-ad.local
; copied from the SBS2011 configuration
@       IN      SOA     router.mynet.int. root.mynet.int. (
                        2013070100      ; YYYYMMDDnn
                        10800           ; refresh
                        3600            ; retry
                        604800          ; expire
                        86400 )         ; minimum TTL
;
                        IN NS   router.mynet.int.
                        IN NS   myexch1.xxx-ad.local.
                        IN A    192.168.0.5
;
b40df42e-0818-4f1c-a64f-96e848cfe915    IN CNAME myexch1.xxx-ad.local.

Note that to be able to use filenames with a "_" in them you need to change /etc/bind/named.conf.options to include

# Put in because Microsoft wants a domain name with a _ char in it
check-names master ignore;
check-names slave ignore;

If you want other mac