Freenom DNS configuration

Freenom is name registrar service that provides free domain name registration service.
It provides .tk  domain name free of service.
Name is globally reachable address that maps to a unique public IP address that is hosting some kind of service.
DNS name are registered with some registar service that is what Freenom does at free of cost.

This blog is documentation of freenome feature:

I have implemented a website and email server with spf record and DMARK record.
SPF record of balajunepal
v=spf1 a ip4:116.90.227.0/24 a:mail.balajunepal.tk include:_spf.google.com ~all

We have to break DMARK record into two parts
_DOMAINKEY and _DMARC

_DMARC=  v=DMARC1; p=none; rua=mailto:pravesh.shrestha@websurfer.com.np; fo=1

_DOMAINKEY=  t=y;o=~;

DKIM key :
MAIL._DOMAINKEY = "v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5Q1QnUVNVOJh83d9fMVTEUCAX7lNleLurTj+6OG8YkI+WKOnrQyzaTsUupyJWZMRo/IHM5ZYODiGlQrgMJWzawEP6Hyq+ouDKp/eGw+4RxVSrvhIX8zTiJM33gd4PZCns11Jhuo2zkY6wKIzDmZ+pvhFM0CB6G52lcVEgh5J81QIDAQAB"

First enter A record 
 A record maps a domain name to the IP address (Version 4) of the computer hosting the domain
TTL is to be kept 14440 ie 4 hours.
The standard time-to-live (TTL) for records added to DNSimple is 1 hour.Through the web interface you may select a TTL as low as 1 minute. If you are preparing to change DNS records for a service then you may want to lower your records’ TTLs so that the change from one address to another occurs quickly. During normal operation it is usually better to keep your TTL at 1 hour or more so that requests to common name servers only need to be refreshed once an hour, thus resulting in better performance for your clients.
You have to keep the A record field empty in order to show that whole domain balajunepal.tk refers to ip address 116.90.227.173
Second enter www record
WWW on the A record field shows that www.balajunepal.tk is also possible address along with balajunepal.tk
Then enter MAIL record as 
MAIL on the lower A record indicates that the domain can be used for email services
Then enter MX record MX receives the email for that domain
SMTP sends the email for that domain

mail.balajunepal.tk along the bottom of MX record indicates that mail.balajunepal.tk can be used as valid email server address.
Priority is used when more than one mail server is used.10 is higher priority than 20.
Dig command output
; <<>> DiG 9.10.3-P4-Debian <<>> -t any www.balajunepal.tk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28148
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 5

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.balajunepal.tk.            IN      ANY

;; ANSWER SECTION:
www.balajunepal.tk.     14440   IN      A       116.90.227.173

;; AUTHORITY SECTION:
balajunepal.tk.         286     IN      NS      ns03.freenom.com.
balajunepal.tk.         286     IN      NS      ns01.freenom.com.
balajunepal.tk.         286     IN      NS      ns04.freenom.com.
balajunepal.tk.         286     IN      NS      ns02.freenom.com.

;; ADDITIONAL SECTION:
ns03.freenom.com.       117445  IN      A       104.155.27.112
ns02.freenom.com.       117445  IN      A       52.19.156.76
ns01.freenom.com.       117445  IN      A       54.171.131.39
ns04.freenom.com.       122932  IN      A       104.155.29.241

;; Query time: 180 msec
;; SERVER: 116.90.227.65#53(116.90.227.65)
;; WHEN: Tue Dec 25 05:29:05 EST 2018
;; MSG SIZE  rcvd: 214
so, ways balajunepal.tk domain works is 
www.balajunepal.tk
mail.balajunepal.tk
balajunepal.tk

The overall configuration for balajunepal.tk



Reference:
https://support.google.com/a/answer/33786?hl=en
https://www.sonicwall.com/en-us/support/knowledge-base/170504796167071

Comments

Popular Posts