DNS: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
Created page with "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 zon..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
You can find the DNS zones and records in the windows DNS tool. They look something like this in bind9:
You can find the DNS zones and records in the windows DNS tool. They look something like this in bind9:
<pre>
<pre>
root@router-gw:/var/named/soa# cat tripany-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.tripany-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.tripany-ad.local.
_autodiscover._tcp      IN      SRV 10 10 443 myexch1.xxx-ad.local.
</pre>
</pre>
and
and
<pre>
<pre>
root@router-gw:/var/named/soa# cat _msdcs.tripany-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.tripany-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.tripany-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