I have bought the domain name example.eu and have set it up from my domain registrar to use ns1.example.eu and ns2.example.eu with the server's IP 12.34.567.890. However it is not working. According to the domain registrar there is not problem with their setup.
I have installed the LEMP stack (Ubuntu 16.04).
I also tried using the freeDNS service, however it is also not working.
Also, I set up BIND9 on my server without any results.
This is my named.conf
zone "example.eu" {
type master;
file /etc/bind/external/example.eu;
allow-transfer {
# IPs allowed to AXFR
12.34.567.890;
12.34.567.890;
};
allow-update {
# IPs allowed to update the zone
12.34.567.890;
12.34.567.890;
};
allow-query {
# IPs allowed to query the zone (everyone)
0.0.0.0/0;
};
notify yes;
};
/etc/bind/external/example.eu
; example.eu
$TTL 86400
example.eu. IN SOA ns1.example.eu. sales.example.eu. (
2018080601 ; Serial number
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400) ; Minimum TTL
; Nameserver definition
IN NS ns1.example.eu.
IN NS ns2.example.eu.
; Mail exchanger definition
IN MX 10 mail.example.eu.
IN MX 50 mail.example.eu.
; A records definition
example.eu. IN A 12.34.567.890
www.example.eu. IN A 12.34.567.890
ns1.example.eu. IN A 12.34.567.890
ns2.example.eu. IN A 12.34.567.890
mail.example.eu. IN A 12.34.567.890
mail.example.eu. IN A 12.34.567.890
* IN A 12.34.567.890
And this is my Nginx configuration file
upstream fastcgi_backend {
server unix:/run/php/php7.0-fpm.sock;
}
server {
listen 80;
server_name example.eu www.example.eu;
set $MAGE_ROOT /var/www/example;
include /var/www/example/nginx.conf.sample;
}