DNS: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 13: Line 13:
root@router-gw:/var/named/soa# cat xxx-ad.local
root@router-gw:/var/named/soa# cat xxx-ad.local
; copied from the SBS2011 configuration
; copied from the SBS2011 configuration
@      IN      SOA    router.tripnet.int. root.tripnet.int. (
@      IN      SOA    router.mynet.int. root.mynet.int. (
                         2013070103      ; YYYYMMDDnn
                         2013070103      ; YYYYMMDDnn
                         10800          ; refresh
                         10800          ; refresh
Line 20: Line 20:
                         86400 )        ; minimum TTL
                         86400 )        ; minimum TTL
;
;
                         IN NS  router.tripnet.int.
                         IN NS  router.mynet.int.
                         IN NS  tripexch1.xxx-ad.local.
                         IN NS  myexch1.xxx-ad.local.
                         IN A    192.168.0.5
                         IN A    192.168.0.5
;
;
Line 29: Line 29:
SharepointSMTPServer    IN A    192.168.0.5 ;on the SBS machine it's 127.0.0.1
SharepointSMTPServer    IN A    192.168.0.5 ;on the SBS machine it's 127.0.0.1
Sites                  IN A    192.168.0.5
Sites                  IN A    192.168.0.5
tripexch1               IN A    192.168.0.5
myexch1               IN A    192.168.0.5
;
;
; Autodiscover  SRV record
; Autodiscover  SRV record
;
;
_autodiscover._tcp      IN      SRV 10 10 443 tripexch1.xxx-ad.local.
_autodiscover._tcp      IN      SRV 10 10 443 myexch1.xxx-ad.local.
</pre>
</pre>
and
and
Line 39: Line 39:
root@router-gw:/var/named/soa# cat _msdcs.xxx-ad.local
root@router-gw:/var/named/soa# cat _msdcs.xxx-ad.local
; copied from the SBS2011 configuration
; copied from the SBS2011 configuration
@      IN      SOA    router.tripnet.int. root.tripnet.int. (
@      IN      SOA    router.mynet.int. root.mynet.int. (
                         2013070100      ; YYYYMMDDnn
                         2013070100      ; YYYYMMDDnn
                         10800          ; refresh
                         10800          ; refresh
Line 46: Line 46:
                         86400 )        ; minimum TTL
                         86400 )        ; minimum TTL
;
;
                         IN NS  router.tripnet.int.
                         IN NS  router.mynet.int.
                         IN NS  tripexch1.xxx-ad.local.
                         IN NS  myexch1.xxx-ad.local.
                         IN A    192.168.0.5
                         IN A    192.168.0.5
;
;
b40df42e-0818-4f1c-a64f-96e848cfe915    IN CNAME tripexch1.xxx-ad.local.
b40df42e-0818-4f1c-a64f-96e848cfe915    IN CNAME myexch1.xxx-ad.local.
</pre>
</pre>



Latest revision as of 19:31, 18 January 2017

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