How to connect one of primary domain access with another subdomain - dns

I have domain coupen.tk and a sub domain coupons.yadvi.com.I have web data in coupons.yadvi.com. i want so DNS configuration that if any one visit Coupen.tk they can see all information of coupon.yadvi.com but the link should be shown of coupen.tk not of coupons.yadvi.com
i have added the ip address of yadvi.com in coupoen.tk DNS A Record ,Ip Address of yadvi.com which will be same for coupons.yadvi.com.

coupen.tk needs to point to the same A record IP address as coupons.yadvi.com, so they both resolve to the same server. That server then needs to be configured to serve the same site for requests to both domains.
The usual way to do that would be to make coupen.tk the "master" A record and configure coupons.yadvi.com as CNAME coupen.tk, so it points to that master record. The web server still needs to be configured to serve the same site for either domain.
Failing that, you'll need to set up a reverse proxy server which literally forwards requests for one domain to the other.

Related

Add CNAME entry in which zone?

There is an article on Run Multiple Websites on the Same Port and IP Address on IIS. So in my Windows Server 2012 R2, I installed DNS Server. However there is no zone by default.
But according to the link, I want to run multiple websites on the same port and IP address on IIS. After I edited site bindings on IIS. All I have to do is to add an alias for the server (A or CNAME) to DNS that specifies the IP address or the name of the web server.
Now I want to follow the example to add an entry to the zone. The below image is from the link. It has two zones. One is _msdcs and the other one is something I don't know.
However my DNS server doesn't have zone yet. I guess that I must create zones.then add the CNAME entry.
My question is which zone can I add the CNAME entry?
Or it doesn't matter in any primary zone?
It should definitely be your company IT DNS server. The CNAMEs can go in an existing zone on that server; they don't have to go into a new one. However, there needs to be at least one host a.k.a. A record that points to the webserver. The CNAMEs should all point to that as the target host.
For example, if you need to access a website from www.test.com.
Then you can create a forward lookup zone.
Then you need to create a A record to map your IP address to your server
Now you can right click blank place->create Alias(CNAME) to map your A record to CNAME
Finally, you only have to set IIS binding and access the website

How to map domain to hosting server

My client have a dedicated server on liquedweb cloud service and we my web app is hosted on that server. We want our users to map their domain to our server. So they can enjoy our web app by using their domain name. What information I need to provide to my user so he can map domain and what information I need from them?
I don't know much(in fact anything) about domain mapping
thanks
It depends if the server has a dedicated IP address or is natted.
If the server has a dedicated IP address you can ask your clients to point their entire domain to you server by adding the following A records:
Host TTL Protocol Type IP Address
# 300 IN A 1.1.1.1
www 300 IN A 1.1.1.1
Not all domain hosts ask for TTL,if not dont worry about it.
If you want just their subdomain to point to your server (subdomain.website.com)
subdomain IN A 0.0.0.1
TTL is optional in some systems, in this case the default will be used.
Generally it is recommended that you use an IP for the Apex record and not a domain name. EG: example.com is the apex, www.example.com is the www subdomain.
A typical configuration would be below:
Host TTL Protocol Type Result
# 300 IN A 1.1.1.1
www 300 IN CNAME example.com
This is the same config as the top example but using CNAME example.com. It is the same as using A 1.1.1.1, it just means you only need to change one record.
If your server details are a hostname and not an IP address, most systems will not let you use the hostname for the apex so you will need to find out the IP address. (A simple method is to use the nslookup command or dig command).
TTL is how long in seconds a record last before it expires. If you are unsure what you are doing I recommend lowering this so you can correct mistakes more quickly.
Different methods for the different servers. For most of the servers, you have to change the nameservers of your domain.
This mostly needs when your domain registrar and hosting provider both are different.
First Login into your hosting account, navigate to the account details,
then copy the nameservers from there...which would be like :- dns1.hostingprovider.com
dns2.hostingprovider.com
After that, Go to control panel of your domain. Navigate to the nameservers
You will see the link:- dns1.domainregistrar.com
dns2.domainregistrar.com
Paste the above links at the place of below links.
They need the IP address (and possibly instructions on how to configure their DNS servers (which means a variety of different sets of instructions for different servers and control panels)).
You need the domain name.

How to direct all newly registered domains to default holding page

When you register a domain with, let's say GoDaddy, and use their nameserver your domains points to a default holding page.
I run my own nameserver and when I register new domains I point my domains to my own DNS.
How do I set up a holding page so that all newly registered domains point to a default holding page.
Any pointers will be helpful.
Tx
I believe what you are asking is that you want to be able to purchase a domain, update it's nameservers to point to your DNS server and then have a default webpage "holding page" for them?
You can do this, but you will need to configure DNS. DNS servers, by default, do not give out answers that they do not know the answer to. There is a mechanism called dns hijacking, but it is very frowned upon. So lets assume that for every newly purchased domain you do configure DNS. To create the "holding page" simply point your default records (domain, www.domain, etc). to a web server's ip address.
On the web server do not use virtual hosts. A virtual host will give a specific web folder to a request with a given host header. This means that if you request foo.com you will get the foo.com folder. If you request bar.com you will get bar.com folder, etc. If you do not configure your webserver for virtualhosts then the web server will simply return the default web folder.

how to point from a subdomain to a dedicated ip in my home isp account

i need to point from my hosting account to my local server
so i thought the best way is to do it using a subdomain
though the issue is that i cant figure which is the right way to do it
using same DNS as my domain / leaving it blank
using my internet isp dns maybe ?
what is the right way to point a subdomain to a static ip of my isp internet account at home ?
You don't need a subdomain, you need an A record (address). You could set up a subdomain, and then use an A record within that, so, if your domain is example.com:
Your domain is set up as example.com, your public web server A record might be www.example.com. You could then set up your home server A record as homeserver.example.com
A sub domain might be 'home.example.com`, and a server in the sub domain will have an A record of myserver.home.example.com.
In all these cases the IP address of your A record should be the IP address of the network side (external side) of your home internet router. If the address is static this will work, but if it's not you'll need to subscribe to a DNS service that supports Dynamic DNS, and that's a whole different story.
How you go about setting all this up is ISP-dependent.
Note that the external address of your network will not match the internal address of your server, so you'll need to set up port-mapping on the router to allow inbound traffic to reach your server.
..and lastly, do you really want to risk opening up your home network to the ravages of the public internet? Do this only if you really know what you're doing, and possibly not even then.

Domain forwarding (sort-of)

I have been attempting to set up magento on a shared hosting server that doesn't support innoDB, ergo its not been possible. The domain I want to use has also been registered with this rubbish hosting provider. (one[dot]com for anyones reference). So I thought I would be able to point this domain to a different hosting provider that DOES support it, but one[dot]com doesnt allow me to change nameservers for the domain. They just said this:
You can only setup IP address, CNAME and web forwarding in our DNS settings but not change of nameservers
Would there be any way to change any of these settings or the .htaccess file so that, for example
http://www.mydomain.com/folder/page.php?query=string
Would display a page from the other server
http://xxx.xxx.xxx:xx/folder/page.php?query=string
I've created loads of sits doing all sorts but never really needed to other with the domain administration side of things.
You don't need to change name servers to map a domain to a different server. If the "good" provider supports it (i.e. allows you to register a domain on the server that isn't hosted by the company), just switch the A and MX records to the new server's IP address.
You do need the cooperation of the "good" provider for this, though.
If they're letting you set up the IP address, then setting the IP address of www.mydomain.com to xxx.xxx.xxx.xx should do the trick. On the other server, you'll need its webserver to be set up to serve www.mydomain.com as a virtual domain - if you're using a hosting provider they should do this for you; if not it should be fairly easy to set up (consult the manual of whichever web server software you're using).

Resources