How to create a subdomain at freenom.com? - dns

I created a domain at freenom.com
https://imgur.com/a/ClaXVLX
which points to my app at Digital ocean droplet.
and next day I created this domain I tested and it works.
that domain is 1) at printscreen above.
Now I want to create several subdomains, as I know that is possible to make:
site.com - domain
dev1.site.com, dev2.site.com - subdomains
But I do not know what must be entered in fields 2) and 3) ?
When I tried as at printscreen above I got error :
Error occured: Invalid value in dnsrecord
Which are valid values ?
Thanks!

A domain name (for use as websites etc.) should point at an IP address. There are several kinds of DNS records. Records for pointing at IP addresses are A records, as you have in 1). Other kinds are MX records for mail servers, for example.
If you want to create a subdomain, you want to create another A record, so simply choose A for the "type" field.
Alternatively, if the IP is the same as an existing record, use a CNAME record which points to another record, e.g.
Name Type TTL Target
dev1.site.com CNAME 14440 site.com
This says that dev1.site.com should use the same record(s) as site.com, so if you ever update the A record of site.com, it will automatically apply to all subdomains too.

I found the way to
add two A record
A www.dev2 IP (same ip of your original website)
A dev2 IP (same ip of your original website)

Setup 2 subdomains on the Freenom DNS:

The CNAME record type does not accept a IP number.
For the subdomains, use a CNAME, but make the target the # sign, which represents the root domain.
To be clear, this will make both subdomains point to the IP address of the A record you specified for the root domain.
If you want the subdomains to point to a different IP, then use an A record instead of a CNAME record.

Related

How many DNS records are necessary when changing DNS providers?

I changed DNS provider recently and I am trying to add DNS records to my new provider. However, I am unsure about how many records I should add.
My old nameserver had a whole bunch of auto-created records like "ftp.example.com", "cpanel.example.com", "_carddavs._tcp.example.com", "webdisk.example.com", "autodiscover.example.com", etc etc.
So my question is, can I just add the below TWO A records?
# ---> A Record pointing to my host IP address
www ---> A Record pointing to my host IP address
Any replies would be greatly appreciated!!
This question is akin to asking 'how many contacts do I need in my address book'
If you only have one friend, then a single record is all you need. (I'm ignoring the required SOA and NS records)
If you are going to have something talking to ftp.example.com then go ahead and add that record.
If you want to recieve mail on that domain, then you will need at least one MX record.
If you want to host a website at www.example.com then you will need to add a www A record. (or if you want to host a website at notwww.example.com, then add that A record)
Fill your DNS up with whatever you need it to have.
The reason for all of the already included options is that they lead off to revenue generating pages for whoever hosts your domain.

Creating a sub-subdomain on AWS Route 53

I'm trying to set up a a domain for our staging environment which mirrors the domain structure of our production environment. For example:
puppet.example.com # production
puppet.staging.example.com # staging
I have a hosted zone for example.com where I have the puppet subdomain working fine. I've also created a hosted zone for staging.example.com and created a record for the puppet subdomain within that, but I can't get it working.
When I use nslookup on puppet.staging.example.com the IP address that appears isn't the address I've configured on Route 53.
Do I need to do something different when setting up a hosted zone for a sub domain?
To host both puppet.example.com and puppet.staging.example.com using AWS Route53, you would only need to create one hosted zone:
example.com
Once you create the hosted-zone, you would create two "record sets", one for each sub-domain. Since you want the names to be equivalent, their type and value should match (i.e., the A record or CNAME record should be the same).
You don't need to do anything special about "sub-subdomains," just include a dot (.) in the name. For example:
Name Type Value
puppet A 1.2.3.4
puppet.staging A 1.2.3.4
To support both example.com and subdomains with .(dot) included, you need to use wildcard for the hosted zone name as follows.
*.example.com
For more information read the documentation on domain name format. Also note that, when mapping the subdomain with wildcard following rules needs to be met.
The * must replace the leftmost label in a domain name, for example,
*.example.com. It can't replace any of the middle labels, for example, marketing.*.example.com.
The * must replace the entire label. For example, you can't specify
*prod.example.com or prod*.example.com.

We are sorry but the Host could not be saved

I have the following DNS settings for the site fls.net:
I am switching my domain registrar to know use the Zergio name servers, as opposed to Hostgator, to resolve the DNS. I would like all of our mail to go the same IPS listed in the above diagram.
When I try to enter the IP of the priority 0 MX record in my Zerigo UI I get the following error:
We are sorry but the Host could not be saved.
The following problems were found:
Data must be a valid domain name
My question is, If I am trying to route all the new Zerigo MX records I am creating for the domain fls.net to the old MX records with IPS 69.28.248.225 and 198.20.73.147 how am I to do that if the data only takes domain names?
If I put mailst1.fls.net. as the data for the MX record, how is going to know to resolve that address to the Hostgator mail IP, if I am now bypassing the whole hostgator name servers and using Zerigo instead?
So I didn't understand that MX Records just map to domain names, at least in the Zerigo interface.
So I just did the following
created an MX record which maps to mail.fls.net
And then created a mail.fls.net A record which maps to the Hostgator mail IP

DNS: authorative vs. dynamic , can I have dynamic forward all requests to authorative nameservers

Ok, in a nutshell, for my own reaons, I am trying to "build" a solution that extracts my DNS from the location / company where my webserver is located. I need to be able to make DNS changes on the fly for my domains. I have nameservers set-up for the webserver, on the webserver. I basically want to know if I can point my domain registration DNS details, to lets say, a DYN.com dynamic DNS address, and have that dynamic address setup to just forward all traffic onto my nameservers on the webserver.
This way, I can change the dyndns "pointer" if you will, to any other webserver/nameservers immedietly should the need arise.
P.S. I know a dynamic address probably won't work, and If I have to go for a paid up service with DYN, thats fine, but I don't want to create all the records on DYN. I just want it to forward any requests to the actual ip of the name server on the webserver.
I.E.
Domain NS1 -> Dyn.com Record 1 (no specific domain records) -> ns1.mywebserver.com
Domain NS2 -> Dyn.com Record 2 (no specific domain records) -> ns2.mywebserver.com
Can this be acieved, if not, do you get what I am trying to do, and are there other ways of doing this?
I ideally don't want to create a dedicated linux VM somewhere to manage the DNS.
Thanks in advance.
I think my other question, posted after this one, solves this question.
BIND . Registrar says it cant find the nameserver. nslookup shows the domain is being handled by bind
Cheers

Trying to link a domain to a IP

I have registered mydomain.com now i want to redirect to my IP hosting account.
The DNS editor shows two fields: Name and Address.
In Address i wrote the IP i want the domain redirects.
And in Name I wrote mydomain.com.
After submitting the form, the page shows this line:
Name Type Record
mydomain.mydomain.com. A 173.203.58.251
I expected it shows this:
Name Type Record
mydomain.com. A 173.203.58.251
Is that OK? or am i doing some wrong?
Regards
Javi
You've registered a domain which actually gives you a control on a full zone.
You have full control over the zone mydomain.com, including all it's subdomains.
You actually gave the subdomain mydomain.mydomain.com the IP 173.203.58.251.
You should give the empty subdomain the IP you want so mydomain.com will get it.
It depends on your DNS Editor, but should probably be one of the following (without the quotes):
"#" (the at sign)
"" (write nothing)
"." (one dot)
"mydomain.com." (including the last dot)
Are you trying to set the nameservers of the Domain? So that way mydomain.com shows the content from 173.203.58.251?
If so, you are in the wrong control panel. You need to do it in the control panel of the website you bought the domain from.

Resources