Author Topic: How-to setup my DNS zone file at the service provider  (Read 4797 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How-to setup my DNS zone file at the service provider
« on: July 30, 2019, 08:43:29 PM »
Hi all,

I need some help to setup my DNS zone file at the service provider in a right way.
Server is hosted at Hetzner and my DNS zone file is like this:

Is it right way to do it?


$TTL 86400
@   IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
    2019073005   ; serial
    86400            ; refresh
    10800            ; retry
    3600000        ; expire
    86400 )         ; minimum
 
@                        IN NS      status
@                        IN NS      robotns3.second-ns.com.
@                        IN NS      robotns2.second-ns.de.
@                        IN NS      ns1.first-ns.de.
 
@                        IN A        1.2.3.4 (My Server IP)
status                  IN A        1.2.3.4 (My Server IP)


----------------------
Hetzner  DNS info:
https://wiki.hetzner.de/index.php/DNS_Zonendatei/en

Thanks
/ Meg Z

Offline
**
Re: How-to setup my DNS zone file at the service provider
« Reply #1 on: July 31, 2019, 08:30:09 AM »
This is mine and is correct. I use my own severs


; Generated by CWP
; Zone file for mydomain.com
$TTL   14400
@   86400   IN   SOA   ns1.mydomain.com.   admin.mydomain.com.   (
            2019072800      ; serial, todays date+todays
            86400           ; refresh, seconds
            7200            ; retry, seconds
            3600000         ; expire, seconds
            86400   ); minimum, seconds

mydomain.com. 86400 IN NS ns1.mydomain.com.
mydomain.com. 86400 IN NS ns2.mydomain.com.

mydomain.com. IN A 12.123.123.123

localhost.mydomain.com. IN A 127.0.0.1

mydomain.com. IN MX 0 mydomain.com.
ns1   IN   A   12.123.123.123
ns2   IN   A   12.123.123.123
serv   IN   A   12.123.123.123
mail IN CNAME mydomain.com.
www IN CNAME mydomain.com.
ftp IN CNAME mydomain.com.
; Add additional settings below this line