Hello. My domain is rafael-ruiz.es
I tried to modify the file /etc/hosts by adding my my ip + rafael-ruiz.es I configured the file /etc/apache2/sites-available/000-default.conf to put:
ServerName rafael-ruiz.es
and my correct DocumentRoot
My DNS are correct and this is my domain configuration:
What else do I have to do?
Thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
The issue you are facing is that you added www.rafael-ruiz.es as your DNS zone instead of rafael-ruiz.es. This causes lookups to rafael-ruiz.es to fail with SERVFAIL errors but allows www.rafael-ruiz.es to work without issue.
a% dig rafael-ruiz.es
; <<>> DiG 9.8.3-P1 <<>> rafael-ruiz.es ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 54863 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: ;rafael-ruiz.es. IN A
% dig www.rafael-ruiz.es
; <<>> DiG 9.8.3-P1 <<>> www.rafael-ruiz.es ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34211 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: ;www.rafael-ruiz.es. IN A
;; ANSWER SECTION: www.rafael-ruiz.es. 1799 IN A 46.101.65.234
In order to fix this issue, please login to your web account and delete the www.rafael-ruiz.es zone and re-create it as follows:
Please note our platform uses a BIND9 like syntax for its zone files.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.