PDA

View Full Version : [SOLVED] .tk Domain with Cloudflare pointing to Ubuntu Server 16.04



sethanath2
April 29th, 2017, 03:45 PM
Hi,

I found this post from the internet https://discourse.osmc.tv/t/howto-free-tk-domain-name-that-always-points-to-your-pi/14083
I also want to be able to do the same thing, but use "zethanath.tk" as my domain name. This domain would be pointing to Cloudflare using "DotTK" 's custom nameservers. I set custom nameservers to the two values given by Cloudflare as you can see below.

274848274849274850274851274853

Now, Cloudflare mentions that it would take up to 24 hours for this to complete, and it has been 12 hours now. From how I understand it, the number "45.29.214.12" can be changed sometime by my ISP, and in order to avoid this issue,
I configure ddclient in Ubuntu Server 16.04 to upload the new number every 5 minutes.

My questions to you are below.

1. It has been 12 hours now, and I still can't use www.zethanath.tk (http://www.zethanath.tk) from my browser. How do I fix or troubleshoot this problem?
2. This public number "45.29.214.12" is the right number to use correct?

Please help. Thank you.

sethanath2
April 29th, 2017, 03:50 PM
Here is the additional information from my UFW firewall.

erick@Ubuntu:~$ sudo ufw status
[sudo] password for erick:
Status: active

To Action From
-- ------ ----
8080 ALLOW Anywhere
Apache Full ALLOW Anywhere
22/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
21 ALLOW Anywhere
20/tcp ALLOW Anywhere
21/tcp ALLOW Anywhere
990/tcp ALLOW Anywhere
40000:50000/tcp ALLOW Anywhere
8080 (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
21 (v6) ALLOW Anywhere (v6)
20/tcp (v6) ALLOW Anywhere (v6)
21/tcp (v6) ALLOW Anywhere (v6)
990/tcp (v6) ALLOW Anywhere (v6)
40000:50000/tcp (v6) ALLOW Anywhere (v6)

I also want to see this page, when I enter "www.zethanath.tk" in Firefox browser.

274855
Thank you.

SeijiSensei
April 29th, 2017, 07:32 PM
$ host www.zethanath.tk
Host www.zethanath.tk not found: 3(NXDOMAIN)

$ whois zethanath.tk

Domain name:
ZETHANATH.TK

Organisation:
BV Dot TK
Dot TK administrator
P.O. Box 11774
1001 GT Amsterdam
Netherlands
Phone: +31 20 5315725
Fax: +31 20 5315721
E-mail: abuse: abuse@freenom.com, copyright infringement: copyright@freenom.com

Domain Nameservers:
HENRY.NS.CLOUDFLARE.COM
VENUS.NS.CLOUDFLARE.COM


Your selected domain name is a Free Domain. That means that,
according to the terms and conditions of Free Domain domain names
the registrant is BV Dot TK

Due to restrictions in Dot TK 's Privacy Statement personal information
about the user of the domain name cannot be released.

ABUSE OF A DOMAIN NAME
If you want to report abuse of this domain name, please send a
detailed email with your complaint to abuse@freenom.com.
In most cases Dot TK responds to abuse complaints within one business day.

COPYRIGHT INFRINGEMENT
If you want to report a case of copyright infringement, please send
an email to copyright@freenom.com, and include the full name and address of
your organization. Within 5 business days copyright infringement notices
will be investigated.

Record maintained by: Dot TK Domain Registry

$ host -t ns zethanath.tk
Host zethanath.tk not found: 3(NXDOMAIN)


While henry.ns.cloudflare.com is registered as the authoritative name for zethanath.tk, apparently there are no nameserver records for the domain. Since I run my own name servers, I can't be more help than this.

sethanath2
April 29th, 2017, 07:37 PM
$ host www.zethanath.tk
Host www.zethanath.tk not found: 3(NXDOMAIN)

$ whois zethanath.tk

Domain name:
ZETHANATH.TK

Organisation:
BV Dot TK
Dot TK administrator
P.O. Box 11774
1001 GT Amsterdam
Netherlands
Phone: +31 20 5315725
Fax: +31 20 5315721
E-mail: abuse: abuse@freenom.com, copyright infringement: copyright@freenom.com

Domain Nameservers:
HENRY.NS.CLOUDFLARE.COM
VENUS.NS.CLOUDFLARE.COM


Your selected domain name is a Free Domain. That means that,
according to the terms and conditions of Free Domain domain names
the registrant is BV Dot TK

Due to restrictions in Dot TK 's Privacy Statement personal information
about the user of the domain name cannot be released.

ABUSE OF A DOMAIN NAME
If you want to report abuse of this domain name, please send a
detailed email with your complaint to abuse@freenom.com.
In most cases Dot TK responds to abuse complaints within one business day.

COPYRIGHT INFRINGEMENT
If you want to report a case of copyright infringement, please send
an email to copyright@freenom.com, and include the full name and address of
your organization. Within 5 business days copyright infringement notices
will be investigated.

Record maintained by: Dot TK Domain Registry

$ host -t ns zethanath.tk
Host zethanath.tk not found: 3(NXDOMAIN)


While henry.ns.cloudflare.com is registered as the authoritative name for zethanath.tk, apparently there are no nameserver records for the domain. Since I run my own name servers, I can't be more help than this.

Can it be because of the status below is still pending?

274859

Why would it take so long?

darkod
April 29th, 2017, 08:13 PM
How about if you click Recheck Nameservers?

As Sensei results above show, your website already seems to be using their nameservers. So you should clear it up with them why does it show still in Pending.

Also, even when cloudflare nameservers start to work for that domain, you still need to make sure all necessary dns records exist, like minimum NS and A records. I don't know if cloudflare creates them for you or you need to do that. Besically these are replies you need to get from their documentation, FAQ, support, etc...

sethanath2
April 29th, 2017, 11:11 PM
How about if you click Recheck Nameservers?

As Sensei results above show, your website already seems to be using their nameservers. So you should clear it up with them why does it show still in Pending.

Also, even when cloudflare nameservers start to work for that domain, you still need to make sure all necessary dns records exist, like minimum NS and A records. I don't know if cloudflare creates them for you or you need to do that. Besically these are replies you need to get from their documentation, FAQ, support, etc...

I already did that as you can see below. I still don't know why I won't get anything from Firefox (www.zethanath.tk (http://www.zethanath.tk)).

274864

darkod
April 29th, 2017, 11:57 PM
First, do not test with a browser. The browser might not work for variety of reasons.

First you need to make sure the dns system is working. Which doesn't look like it. If you try dig it doesn't show any nameservers for that domain. You have the domain at the same place as the nameservers, right? Because if you have it on another registrar you might need to put the authoritative nameservers yourself.

darko@nuc6:~$ dig ns zethanath.tk

; <<>> DiG 9.10.3-P4-Ubuntu <<>> ns zethanath.tk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 63187
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1


;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;zethanath.tk. IN NS


;; AUTHORITY SECTION:
tk. 4 IN SOA a.ns.tk. joost\.zuurbier.dot.tk. 1493506334 10800 3600 604800 5


;; Query time: 40 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sun Apr 30 00:54:16 CEST 2017
;; MSG SIZE rcvd: 101


darko@nuc6:~$

That should have shown nameservers for the domain, and it does not. So if you have both the domain and the nameservers at the same place, I suggest asking their support or forum or whatever, see if anyone can help you figure it out...

sethanath2
April 30th, 2017, 12:24 AM
First, do not test with a browser. The browser might not work for variety of reasons.

First you need to make sure the dns system is working. Which doesn't look like it. If you try dig it doesn't show any nameservers for that domain. You have the domain at the same place as the nameservers, right? Because if you have it on another registrar you might need to put the authoritative nameservers yourself.

darko@nuc6:~$ dig ns zethanath.tk

; <<>> DiG 9.10.3-P4-Ubuntu <<>> ns zethanath.tk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 63187
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1


;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;zethanath.tk. IN NS


;; AUTHORITY SECTION:
tk. 4 IN SOA a.ns.tk. joost\.zuurbier.dot.tk. 1493506334 10800 3600 604800 5


;; Query time: 40 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sun Apr 30 00:54:16 CEST 2017
;; MSG SIZE rcvd: 101


darko@nuc6:~$

That should have shown nameservers for the domain, and it does not. So if you have both the domain and the nameservers at the same place, I suggest asking their support or forum or whatever, see if anyone can help you figure it out...

I am following the instruction from this post here -> https://discourse.osmc.tv/t/howto-free-tk-domain-name-that-always-points-to-your-pi/14083

1. Grab a free .tk domain name from http://dot.tk/ (zethanath.tk)
2. Once I've done that then create an account at https://www.cloudflare.com (https://www.cloudflare.com/) as well.
I'll use cloudflare's nameservers on the dot.tk domain name
3. I have a .tk name and I've made a new account at cloudflare. Now I hook up clourflare's nameservers to your .tk domain.
4. Back to cloudflare and create a DNS record that will get updated by our updater (ddclient), which is installed in Ubuntu 16.04. The script looks like one below.

# /etc/ddclient.conf

daemon=5m
timeout=10
syslog=yes # log update msgs to syslog
# mail=root # mail all msgs to root
# mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with ssl-library

#use=if, if=enp2s0 # via interfaces

##
## CloudFlare (www.cloudflare.com (http://www.cloudflare.com))
##
use=web, web=dyndns,
protocol=cloudflare, \
zone=zethanath.tk, \
server=www.cloudflare.com, \
login=xxxxxx@xxxxxxmail.com, \
password='xxxxxxxxxxxxxxxxxxxxxxxxxxx'
zethanath.tk

darkod
April 30th, 2017, 11:59 AM
Sorry but that doesn't help much. Like I already said, you need to go back to checking up if your domain is active at all, and if cloudflare servers have correctly created a zone for it. There are plenty of domain check and dns check tools online that you can use. Until they show everything is OK, you need to investigate this with the registrar and with cloudflare, not with us.

This tool for example says the domain does not exist (yet): http://www.viewdns.info/dnsreport/?domain=zethanath.tk

On another note there are ways to get cheap domains from known registrars, and in such case you are sure that at least your domain registration is good and OK. The free stuff is what usually you can expect to have issues with, right now or later down the line...

Besides, if the idea of all this is to host a website at home that might not even work because many residential ISPs block incoming port 80 to prevent this. So even when you get the domain and dns working that doesn't mean your website hosted on a server at home will work for the outside world.

sethanath2
April 30th, 2017, 06:49 PM
I believe I have just made some progress. What I did was ...

1. I deleted the domain zethanath.tk from DotTK. I keep thinking something might not work right, so I deleted and started over.
2. I checked this link that you gave, and thing looks different now -> http://www.viewdns.info/dnsreport/?domain=zethanath.tk
3. The status at www.cloudflare.com (http://www.cloudflare.com) is still pending, so I am thinking I should wait at least an hour.

Thank you.

sethanath2
April 30th, 2017, 07:14 PM
Besides, if the idea of all this is to host a website at home that might not even work because many residential ISPs block incoming port 80 to prevent this. So even when you get the domain and dns working that doesn't mean your website hosted on a server at home will work for the outside world.

By using the similar tools that you gave http://www.viewdns.info/ismysitedown/?domain=www.zethanath.tk, It found my web page now.

274878274879

Thank you so much.

darkod
April 30th, 2017, 07:31 PM
That's better. Glad you got it sorted out. Please mark the thread as solved, you can do that in Thread Tools above the first post.

sethanath2
April 30th, 2017, 07:49 PM
cloudflare status is no longer pending as well.

274880

My last question before I changed status to "Solved", please.
I think my ISP does not block port 80 correct? I don't know why it block my 443 port, though.

http://www.viewdns.info/portscan/?host=www.zethanath.tk

My router DMZ is below.

274881

$ sudo ufw status
Status: active

To Action From
-- ------ ----
8080 ALLOW Anywhere
Apache Full ALLOW Anywhere
22/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
21 ALLOW Anywhere
20/tcp ALLOW Anywhere
21/tcp ALLOW Anywhere
990/tcp ALLOW Anywhere
40000:50000/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
8080 (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
21 (v6) ALLOW Anywhere (v6)
20/tcp (v6) ALLOW Anywhere (v6)
21/tcp (v6) ALLOW Anywhere (v6)
990/tcp (v6) ALLOW Anywhere (v6)
40000:50000/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)

However, I found "Connection refused" from using "curl".
$ curl www.zethanath.tk
curl: (7) Failed to connect to www.zethanath.tk port 80: Connection refused

Thank you so much.

darkod
April 30th, 2017, 08:53 PM
When you are trying to access it from within your home LAN by its public IP, most home routers can't correctly route the traffic back in. So the request will fail.

Try curl from outside your home LAN and it should work.

For using the website from your home LAN you can try setting an entry in the local hosts file on the PC with the value of the internal IP of the server on your LAN (192.168.x.x). That will route the traffic correctly to www.zethanath.tk without leaving the local LAN.

sethanath2
April 30th, 2017, 09:10 PM
When you are trying to access it from within your home LAN by its public IP, most home routers can't correctly route the traffic back in. So the request will fail.

Try curl from outside your home LAN and it should work.

For using the website from your home LAN you can try setting an entry in the local hosts file on the PC with the value of the internal IP of the server on your LAN (192.168.x.x). That will route the traffic correctly to www.zethanath.tk (http://www.zethanath.tk) without leaving the local LAN.

Thank you.