My website will not open without writing www in the URL.
Hosting and DNS servers are in the same machine.
I tried to search, no result. I tried to put dot after test.com in the last line, did not help.
Here is my bind configuration. How can I resolve this? Thank you.
$TTL 604800
@ IN SOA ns1.test.com. admin.test.com. (
15 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
;@ IN NS localhost.
;@ IN A 127.0.0.1
;@ IN AAAA ::1
IN NS ns1.test.com.
ns1.test.com. IN A 11.22.33.44
mail.test.com. IN A 11.22.33.45
test.com. IN MX 8 mail.test.com.
www.test.com. IN CNAME ns1.test.com.
test.com IN CNAME ns1.test.com.
iptables
to forward your port 80? – Philippos Jun 03 '22 at 07:53nslookup
command on your PC. If both interrogations gives you different results, it should be a cache issue. – Frédéric Loyer Jun 03 '22 at 08:00ns1.test.com
, but you have things outside that zone in your zone file – Marcus Müller Jun 03 '22 at 08:11