DNS is not resolving

Hello Community,

This is my second hestia server on linode vps. for 1st server I added domain to linode domain manager everything works just fine.

This time I don’t want to add domains to linode domain manager so here what I did…

  1. Setup hestiacp 1.3.2 with ubuntu 20.04 LTS on a linode vps (IP: 192.168.1.1).
  2. From domain registrar created two NameServer. ns1.somedomain.com & ns2.somedomain.com both NameServer points to VPS IP (192.168.1.1)
  3. From domain registrar I points somedomain.com to ns1.somedomain.com & ns2.somedomain.com
  4. In /usr/local/hestia/data/templates/dns I created a new domain template named ‘somedomain.tpl’
  5. Created new package ‘package-1’ with DNS template ‘somedomain.tpl’
  6. created new user ‘user-1’ with ‘package-1’ and default NameServer are ns1.somedomain.com & ns2.somedomain.com
  7. now in ‘user-1’ account added two DNS zone ns1.somedomain.com & ns2.somedomain.com
  8. added a web domain ‘somedomain.com’ with ‘Create DNS zone’ check-box marked; this created a new DNS zone for somedomain.com

DNS template of ‘somedomain.tpl’ is:

ID=‘1’ RECORD=‘@’ TYPE=‘NS’ PRIORITY=‘’ VALUE=‘ns1.somedomain.com.’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘2’ RECORD=‘@’ TYPE=‘NS’ PRIORITY=‘’ VALUE=‘ns2.somedomain.com.’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘3’ RECORD=‘@’ TYPE=‘A’ PRIORITY=‘’ VALUE=‘192.168.1.1’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘4’ RECORD=‘www’ TYPE=‘A’ PRIORITY=‘’ VALUE=‘192.168.1.1’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘5’ RECORD=‘@’ TYPE=‘AAAA’ PRIORITY=‘’ VALUE=‘2002:c0a8:0101:0:0:0:0:0’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘6’ RECORD=‘www’ TYPE=‘AAAA’ PRIORITY=‘’ VALUE=‘2002:c0a8:0101:0:0:0:0:0’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘7’ RECORD=‘ftp’ TYPE=‘A’ PRIORITY=‘’ VALUE=‘192.168.1.1’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘8’ RECORD=‘mail’ TYPE=‘A’ PRIORITY=‘’ VALUE=‘192.168.1.1’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘8’ RECORD=‘mail’ TYPE=‘AAAA’ PRIORITY=‘’ VALUE=‘2002:c0a8:0101:0:0:0:0:0’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘9’ RECORD=‘webmail’ TYPE=‘A’ PRIORITY=‘’ VALUE=‘192.168.1.1’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘9’ RECORD=‘webmail’ TYPE=‘AAAA’ PRIORITY=‘’ VALUE=‘2002:c0a8:0101:0:0:0:0:0’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘10’ RECORD=‘@’ TYPE=‘MX’ PRIORITY=‘0’ VALUE=‘mail.somedomain.com.’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘11’ RECORD=‘@’ TYPE=‘TXT’ PRIORITY=‘’ VALUE=‘“v=spf1 a mx ip4:192.168.1.1 -all”’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’
ID=‘12’ RECORD=‘_dmarc’ TYPE=‘TXT’ PRIORITY=‘’ VALUE=‘“v=DMARC1; p=quarantine; pct=100”’ SUSPENDED=‘no’ TIME=‘%time%’ DATE=‘%date%’

Domain ‘somedomain.com’ is not resolving. Please tell me what i am doing wrong.

Note: VPS has a public IP. I used a private IP (192.168.1.1) to post thread here.

Thanks for reading my post.

You should use your public ip instead of your private ip adress

Its a public IP. I didn’t want to post my public IP here. so I used a private IP to create this thread.

Did you add A record to main domain in hestia panel?
ns1 A 192.168.1.1
ns2 A 192.168.1.1

2 Likes

No, but I did add A record for each NS in 'somedomain.tpl ’ file.

Here is what I added in ‘somedomain.tpl’ file

Never thought of that! lol :smiley:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.