This is common mistake when we try to nslookup our domain that working with “WWW” but not without “WWW”. This is some bind9 configuration :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ; ; BIND data file for local loopback interface ; $TTL 3600 @ IN SOA obroll.com. admin.obroll.com. ( 30 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns1.obroll.com. ns1 IN A 15.185.178.20 ns2 IN A 15.185.178.20 www IN A 15.185.178.20 |
You will see there nothing wrong here until you realize you missing something.
Yes, I’m missing “@ IN
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ; ; BIND data file for local loopback interface ; $TTL 3600 @ IN SOA obroll.com. admin.obroll.com. ( 30 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns1.obroll.com. @ IN A 15.185.178.20 ns1 IN A 15.185.178.20 ns2 IN A 15.185.178.20 www IN A 15.185.178.20 |