Give gcloud virtual machine a custom domain - virtual-machine

Hi I am currently using a gcloud virtual machine as a ftp server. I would like to give the virtual machine one of my custom domains, (I use godaddy). My current VM address is something like this 64.128.64.64 (not real one) I would like to change it to example.com (my custom go daddy domain). Thanks

You'll want to ensure you're using a static IP address on the VM, see:
https://cloud.google.com/compute/docs/ip-addresses#externaladdresses
Use GoDaddy's DNS manager to add an "A" record to your domain, mapping some host name (e.g. your-ftp.example.com) to the static IP address of the VM.

According to Google Cloud Platform’s documentation and godaddy’s documentation, follow below steps to configure your domain to your server -
Navigate to create a DNS zone page on google cloud console (or click this shortcut).
Enter the details as -
(i) Zone name - [any name]
(ii) Zone type - public
(iii) DNS name - your godaddy DNS suffix name (eg - example.com)
(iv) DNSSEC - off
Click create. It will set up a zone with NS SOA records, now you have to add an A record by following steps -
(i) On the Zone details page, click Add record set.
(ii) Select A from the Resource Record Type menu.
(iii) For IPv4 Address, enter the external IP address (Make sure it is a static external IP address, not ephemeral) for your instance.
(iv) Click Create to create the A record for your zone.
Add a CNAME record to account for a prefix to your domain name (for example, www.):
(i) Click Add Record Set.
(ii) In the DNS Name field, add the prefix (eg - www) for the domain.
(iii) For Resource Record Type, choose CNAME.
(iv) For Canonical name, enter the domain name, followed by a period (for example, example.com.).
(v) Click Create.
On the Zone details page, make a note of the NS records. You will need these records to proceed with Step 6(iv).
Navigate to the Domain Control Centre in godaddy.com after logging in.
(i) Select your domain to access the Domain Settings page.
(ii) Under Additional Settings, select Manage DNS.
(iii) In the Nameservers section, select Change.
(iv) Choose the option - Enter my own nameservers (advanced) then enter the nameserver you saved in step 5.
(v) Select Save or Connect.
(vi) Check the box next to Yes, I consent to update Nameservers for the selected domain(s).

Related

How to apply the different Domain Name into one IP and set the default path on apache

I have a domain name: abc.net mapping to 11.11.11.11 and it works fine
and my domain name is registry from www.asiaregistry.com
I also use the AWS EC2 for my service
Q1 : how to set www.abc.net or aaa.abc.net to work with DNS for internet user access?
Q2 : after done Q1 set, could it possible set the default path to my apache server as below?or it need other server for each ip to handle?
aaa.abc.net to 11.11.11.11/mobile
www.abc.net to 11.11.11.11/PC
bbb.abc.net to 11.11.11.11/mgmt
thanks for your time
What is your real domain? This can help me answer your question more effectively.
You will need to configure name servers for your zone, your registrar probably offers a set of authoritative name servers so you need to put at least one NS record in your zone.
Once you have a name server in 'abc.net' you can add an A record for www.abc.net (your registry probably offers a way to edit the zone).
If you have an A record in place for www.abc.net then it makes sense to insert a CNAME record for each of the others that you would like to send to the same IP address. A CNAME simply says that the answer for a hostname is a canonical name rather than a real IP address.

Using DigitalOcean droplet/vserver with ISPConfig3 - access the sites by IP

My problem is that I'd like to be able to use temporary urls for my sites that are still in development phase. With cPanel i had this option:
create a new account (choose username, pass, etc.)
that account is assigned an IP
list all my accounts in the WHM, then click the IP showing for the account in question
a new tab opens, showing in the address bar sth like this: http://85.65.342.388/~username
That works just fine for my needs. So I wonder if something like that is possible having set up the following:
Digital Ocean cloud hosting - droplet created on Ubuntu
Installed Ispconfig3 to manage the server
one (not sure if single) server IP
I can visit my server IP - it opens the test website I uploaded to /var/www of the server when I just started testing the server (prior to installing Ispconfig)
Paths to my newly created accounts are:
/var/www/clients/client1/web1
/var/www/clients/client1/web2
/var/www/clients/client2/web1
etc...
Should I be able to access for example the website having its files in /var/www/clients/client1/web2 in a way that is similar to the above cPanel example?
There is an option in the Ispconfig to add server IPs but I'm unsure how to add them - because my droplet is showing a single IP and I don't see any spots to add additional IPs (in my Digital Ocean account interface).
Also my accounts (sites) have the option to select from predefined IP addresses (select box) but they come with only asterisk (*) shown as default.
Trying to set up new IP addresses via Ispconfig and then selecting one of them from Site's settings didn't help - nothing opens by visiting such an IP.

MX record and Amazon S3

I'm having an issue with setting up my Google Apps account.
I believe that my S3 bucket is causing the problem.
I configure the MX records like Google asked me to and today mij DNS providers acknowledged that the records where propagated.
Now when I try to continue the setup of my Google Apps account it's stuck and doesn't provide any info. I have hosted a a static website on a Amazon S3 Bucket.
Trying to see if the MX records are available I used this tool MX Toolbox
to see if my MX records where available but they weren't. Anybody with the same problem or some professional advice?
BTW: the domain name is xntriek.be
What I suspect you will have to do is as follows:
1.) change the settings at your DNS registrar to use a different name server. For my registrar, namecheap, I go to manage -> transfer Name Server to 3rd party (or some variant) -> (leave this screen up - there should be a set of 5+ blank records)
2.) Set up Amazon Route 53.
3.) "Create Hosted Zone" for your domain name in the Route 53 console
4.) This hosted zone should be associated with a "Delegation Set" (right side of R53 console) - 4 records which you will paste into the screen you found in (1) above.
5.) Save that, and configure Route 53 as you would have configured records with your DNS provider. (CNAME aliasing and mx forwarding)
The reason this must be done in R53 and not at the Registrar is that setting the cname record alias to, say, www.yourdomain.com.aws.us-east.amazon blah blah blah tells mx traffic to go to amazon for instructions about what to do. Of course, there are no further instructions for that traffic if you have not set up Route 53.
I hope this helps!

Browser displays IP rather than name

I just built a web page and made it live. The web page was previously accessible by its IP address. I then went to godaddy and made a domain name forward to the IP. The problem is that once I get to the page, the web browser displays the IP rather than the domain name. The customer wants the domain name to display on the page along with the page itself. Most companies want their .com name on the browser bar.
Example: On this page, my browser displays stackoverflow.com/question/ask rather than the Server's ip address.
The web page is served by apache and the server OS is a Bitnami LAMP server.
Any advice? And what else should I do to register and make a domain name function properly?
You need to set up A records, not forwarding records. You can find GoDaddy's help on the subject here: http://help.godaddy.com/article/680#arecs
I had a similar issue. To resolve I had to go to "DNS Management" where "A" was marked as "#" and "Forwarded" (if not change it) then below there is a "Forwarding" section where if you click on the pencil it allows you to enter the data:
Forward To: "http://1.1.1.1" (your IP where you forward to)
Forward Type: Permanent(301)
Settings: HERE WAS MY PROBLEM: it was set as "Forward Only" and I changed it to "Forward with masking" and that fixed the issue

How to create subdomain in IIS6

I'm quite new to the configuration of domains and subdomains.
I already have a subdomain "bar" that belongs to the domain "www.foo.es". When I want to access to the subdomain I just have to type "www.foo.es/bar", everything is alright so far.
What I intend to do is that the subdominion is accessed typing "bar.foo.es".
I've tried some things I found online but none of them worked. Could you tell me how to do this or at least give me some clues or tutorials that actually work?
I'm trying to set all up using the IIS6 properties (not dynamically, as it is not a user thing, just a subdomain that I want to access "directly".
Assuming you are working with a live server that you REMOTE DESKTOP INTO and not a shared hosting account here is what you will need to do:
Let's assume your file system looks like this:
c:\inetpub\wwwroot\www.foo.es { some html files in here}
c:\inetpub\wwwroot\www.foo.es\bar {some html files in here}
Without any custom ISAPI filters installed, you would do this by setting up two WEBSITE's in IIS.
The first website would have a home directory of c:\inetpub\wwwroot\www.foo.es and the 2 host headers "www.foo.es" and "foo.es"
The second website would have a home directory of c:\inetpub\wwwroot\www.foo.es\bar and 1 host header "bar.foo.es"
Once you DNS has a CNAME of "bar" that points to your server and you clear your local dns caches, this should work. If you don't know how to make the DNS change the easiest thing you can do is log into to your domain name control panel from whoever you purchased the domain name with and do the following:
ADD A CNAME RECORD:
For the host enter "bar" for the points to enter "foo.es" and you should be all set.
First of all you need to add an entry in your DNS in which you specify the "bar.foo.es" subdomain and the IP of the server to which it points to.
After that, in IIS you will have to create a site for the new subdomain you have just created. For that: right click on Web Sites -> New Website -> follow the steps normally but when you encounter the text box for the "Host header for this Web site (Default: None)" fill it with your subdomain value ("bar.foo.es").
Alternatively, if your web site is already created, you can bind subdomains to it by right clicking on the site -> properties -> Web site tab -> Advanced (the button near IP address) -> add / remove / edit the domains for your site which are represented by the "Host header value".
Please note that what you have at the moment ("www.foo.es/bar") is not a subdomain but a relative address.