Author Topic: How to Setup DNS (BIND) on server  (Read 196139 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #30 on: June 10, 2020, 08:59:19 PM »
I wanted to know one thing. I have created two nameservers but I don't understand how and which IP addresses I have to associate.
can you give me directions?

Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #31 on: July 09, 2020, 10:47:34 AM »
Hello,
When i add a new domain, that responde to network ip, how can resolve that?


; Generated by CWP
; Zone file for example.pt
$TTL 14400
@    86400        IN     SOA     ns1.example.agency. postmaster.example.pt. (
                                2020070947 ; serial, todays date+todays
                                3600            ; refresh, seconds
                                7200            ; retry, seconds
                                1209600         ; expire, seconds
                                86400 )         ; minimum, seconds
@   86400   IN   NS              ns1.example.agency.
@   86400   IN   NS              ns2.example.agency.
@ IN A 172.30.0.1
localhost.example.pt. IN A 127.0.0.1
@ IN MX 0 example.pt.
mail 14400 IN CNAME example.pt.
smtp 14400 IN CNAME example.pt.
pop  14400 IN CNAME example.pt.
pop3 14400 IN CNAME example.pt.
imap 14400 IN CNAME example.pt.
webmail 14400 IN A 172.30.0.1
cpanel 14400 IN A 172.30.0.1
cwp 14400 IN A 172.30.0.1
www 14400 IN CNAME example.pt.
ftp 14400 IN CNAME example.pt.
_dmarc  14400   IN   TXT     "v=DMARC1; p=none"
@   14400   IN   TXT     "v=spf1 +a +mx +ip4:172.30.0.1 ~all"


Offline
*
Re: How to Setup DNS (BIND) on server
« Reply #32 on: August 10, 2020, 09:11:11 AM »
This Standard fix process was useful and fixed my problem also,when i Controlled Named.conf i found out that there where some incomplete records in this file out of standard format like :
Code: [Select]
tahead.biz
zone "datahead.biz" {type master; file "/var/named/datahead.biz.db";};
// zone_end datahead.biz
and these kind of records made bind server fail to start.as i deleted and corrected this records in file, Bind Server Started normally.
for experience and addressing the issue :
problem started when i changed Host name,and deleted former host name record in DNS Zone, Bind Sever started to fail.
Thanks for Sharing knowledge.