Routing Traffic to Amazon ec2 - networking

We have Namebright domain name as dattus.com, we want to create a subdomain as test.dattus.com and redirect all it's traffic to amazon ec2 instance's elastic IP address.
Is this possible? How to do this?
PS: Existing website deployed on namebright should work as it is which is dattus.com.

Yes, possible and easy.
In your DNS provider(which maybe route53 or anyone else) setup a new 'A' record that points test.dattus.com to your elastic ip address.

Related

How to do i use wamp server to host godaddy domain

So i have bought a domain from godaddy
I have installed wamp got it running so if i put my local ip it goes to my website
i have port forwarded my ip
Now how do i use my domain to access my website hosted in wamp
I have done this also today. How do I host my own website with my purchased domain name from my own laptop?
Edit: I can confirm that if i type my ip in it works good on any wifi or data
To use the domain purchased now you need a DNS server. So that I link your domain name with the IP of your apache server.
If you have a fixed IP. See if you can assign this IP from the Godady panel.
If you have a dynamic IP, you must use a third-party service that may be able to link the dynamic IP and update it for your domain name.
There are many services, but I recommend: https://dyn.com/dns/ or https://freedns.afraid.org/

unknown host for domain on ec2 instance

I have an EC2 instance with WHM installed and I'm trying to host a website on it. I can ping the EC2 just fine but attempting to ping the domain gets me "unknown host". As far as I can tell my DNS and vhost info is set up correctly.
Is there some common configuration step I'm missing to get a domain up and running on ec2?
You need to create 'A record' for DNS to bind domain to IP address. This can be done in route 53, there are various types of options please find here that suits you.

Assign URL for IP Adress (IP adresses mapping to host names)

How can I change domain name for ip address (192.164.5.19) to www.anyname.com?
Current I made a website and published it by using iis7. It is in the intranet. Now I want to access the website by a domain name and not by ip address.
can anyone help me for with this problem.
Note: The web-server were use is normal PC not a server.
It is up to the administrator of the DNS authorative nameserver for the "anyname.com" domain.
Since this is an intranet application, this would likely be your companies IT department.
You can find out more information about that via a whois search, although for an intranet application it may not be much help. One example: domaintools link
Add the ip adress to the hosts file from the computers who needs to reach the website. E.g. u can do the edit with a batch file.
Path:
%SystemRoot%\system32\drivers\etc\hosts
add line: 192.164.5.19 www.anyname.com

Is it ok to host multiple sites on a server with one IP address?

I wonder if is it ok to host multiple sites on a server with one IP address?
I bought server on hetzner and I want to host 10 different websites of my clients. Eg. client1.com, client2.net, client3.org etc. I changed "A record" in all domains on IP address of my server. Is there any reasons to not do that? Or maybe I should buy additional IP address for each site?
Thank You.
Sure it is, your webserver will be able to filter requests to the correct site based on the incoming request's URL.
In Apache this is done by adding a new virtual host to your configuration.

How to configure dnsmasq for wildcard subdomain in production server

I am using dnsmasq to handle wildcard subdomains.
on my local machine, I have installed dnsmasq and added address=dev/127.0.0.1 in /etc/dnsmasq.conf file. It works fine on local after restarting the dnsmasq.
Now i am planning to make the code live on amazon ec2 instance with registered domain. I am unable to configure the dnsmasq there.
Can anyone help me?
I am using ngix.
No need to run dnsmasq on your EC2 instance.
Just configure your registered domain to use some DNS nameserver (usually, something like ns1.example.com, ns2.example.com). Then, on your DNS nameserver provider, you can usually configure out DNS records using some kind of web-based control panel. It's there where you create your DNS records and point them to your EC2 instance IP address.
In other words, I don't think you need to run dnsmasq in your EC2 instance, unless I'm getting your question wrong.

Resources