Google Domain settings - dns

I've bought domain on Google Domains. Also I have server, and my website is on 4000 port, link looks like
http://1.1.1.1:4000/
I need to set domaint to link look like
http://example.com/
How can I do it in Google Domains. It my first experience in setting domain, so I'm bad at this thing
UPD:
Or how to create miiror for http://1.1.1.1:4000 with link http://example.com/
Or how to meke link look like http://example.com/ on my site

Sign in to Google Domains.
Click the domain name.
Open the menu Menu, if applicable.
Click Website .
Under 'Forward to an existing webpage', click; Add a forwarding address.
Enter a URL or IP address in the Website URL field. For you this would be the IP address of your server
I would highly recommend leaving your website port on 80 or 443 dependant on your preference to HTTP or HTTPS. other wise you will have to always enter www.whatever.com:4000 instead of www.whatever.com. The second one is a lot more public friendly

Related

How can I point multiple domain names to the same GitHub Pages site?

This seems like it should be a trivial task but isn't proving to be one for me...
How should I go about pointing multiple domain names to the same GitHub Pages hosted site?
Example:
I have created an account named test on GitHub and created a repository test.github.io
I bought test.com
I configured test.com's DNS as below
I have told GitHub Pages to enforce https and look out for custom domain test.com
My site is now live on test.com and www.test.com, woohoo!
DNS Config for test.com:
A # 185.199.108.153 (github's nameserver)
A # 185.199.109.153 (github's nameserver)
A # 185.199.110.153 (github's nameserver)
A # 185.199.111.153 (github's nameserver)
CNAME # www.test.github.io (for www redirect)
I would ALSO like example.com (and a few other domains, foo.com, bar.com and foobar.com) to redirect to test.com
How do I do this?
With an apache server, this would be easy, be GitHub Pages only supports static sites.
Any ideas?
As always, thanks for any suggestions!
The ideal place to have this redirect is your DNS provider. You can redirect foo.com, bar.com, etc. or whatever you want to test.com. Alternatively, if you happen to use Cloud Flare, forwarding can easily be setup from there too.
But if you don't want to do that and insist on using Github only, refer to this answer. What you can do in this case is create another repository (other than test.github.io) with same contents and link it to another domain such as foo.com. You can use Github Actions or something to sync your changes from main repo to the others.
Of course, the only drawback of this method is that for every domain you want to link, you'll have to create an additional github repo.
I've accepted #Prahlad Yeri's answer from above, and am just leaving this here so that other's who stumble onto this question can easily figure out how to do this... As mentioned "The ideal place to have this redirect is your DNS provider"
To do this with domains purchased from domain dot com it is VERY simple, and even INSTANTANEOUS! I can imagine with GoDaddy or other providers it will be similar.
On Domain dot com's control panel:
Log into account for the domain you wish to redirect
Go to "Pointers and Subdomains" on the left sidebar
Choose either "URL Standard" or "URL Stealth" from the pointer options, then enter the desired redirect URL in the "Directory" field
Press Save and you're good to go, immediately!
URL Stealth means that your URL will remain as what the user has typed in, and URL standard means it will display the URL of the site that you've directed to. More documentation on pointers and subdomains (for domain dot com) can be found at domain.com/help/article/domain-management-how-to-update-domain-pointers

IIS: Can I prevent traffic to IP Address and only allow domain name

Since I am using a host header filtering technique in my ASP.NET MVC application, I would like to prevent users from browsing directly to the IP address of my site, and force them to use the FQDN. Is this possible?
I see similar SO question here with no answer
You can do this with Bindings in IIS (assuming you're using IIS): https://technet.microsoft.com/en-us/library/cc731692(v=ws.10).aspx
Open IIS
Right click your site
Click "Edit Bindings"
Edit the entries (http/https) to include a "Host Name" (ex. "YourSite.com", "sub.YourSite.com", etc...)
An alternative would be to force a redirect to the FQDN in your code. You should be able to determine the url using a ServerVariable: https://msdn.microsoft.com/en-us/library/system.web.httprequest.servervariables(v=vs.110).aspx
You can add another Website in IIS, locate it to an empty directory to make it don't do anything useful, use 80 port but don't bind any hostnames. In this case, who access your server by IP directly would just hit this Website, they won't bother you anymore.
Or maybe you can put some helpful webpages in this website to help your client visit by domain name correctly.

Redirect my domain

I need to redirect my domain from MyHosting to Godaddy. Currently my client website is maintain in MyHosting , now they need to change their website to Godaddy. Could you please help me to redirect the domain.
Sorry my English is bad.
Thanks in advance
Please use this Link to redirect from one domain to another ......
enter link description here
To Forward or Mask Your Domain Name
Log in to your Account Manager.
Next to Domains, click Manage.
Select the domain names you want to forward.
You cannot forward or mask .tk, .dk or .ch domain names.
Click Forward, and then select Forwarding Domains.
Click Add Forwarding.
Select http:// or https:// as your Forward to option. For more information, see HTTP vs. HTTPS.
Enter the URL you want to forward your domain name to.
Select your Redirect type
301 (Permanent) — Redirects to the site you specified in the Forward To field using a "301 Moved Permanently" HTTP response. The HTTP 301 response code tells user-agents (including search engines) that the location has permanently moved.
302 (Temporary) — Redirects to the site you specified in the Forward To field using a "302 Found" HTTP response. The HTTP 302 response code tells user-agents (including search engines) that the location has temporarily moved.
Select your Forward settings
Forward only — Forwards the domain without masking.
Forward with Masking — Prevents the forwarded domain name URL from displaying in the browser's address bar, and lets you enter Meta Tags for search engine crawlers in the following fields:
Title — Displays at the top of the browser window and in search results.
Description — A short description of your website to display in search engine results.
Keyword — A list of comma-separated keywords that describes the content and purpose of your website.
Masking is incompatible with some sites that use https://, i.e. SSL certificates.
To automatically update your nameservers to accommodate your forwarding changes, check Update my DNS setting to support this change.
Click Add, and then click Save.
To Forward Your Domain Name Without Masking
Log in to your Account Manager.
Next to Domains, click Manage.
Select the domain names you want to forward.
Next to Forwarding, click Manage.
Click Update Forwarding.
Select Forward Only from the Forward Settings menu.
Click Edit.
NOTE: Forwarded domain names can take up to 24-48 hours to activate.
To Remove Masking From Your Domain Name
Log in to your Account Manager.
Next to Domains, click Manage.
Select the domain names to modify.
Click Forward, and then select Forwarding Domains.
Click Update Forwarding.
From the Forward settings pull down menu select the option for Forward Only.
Click Edit.
Click Save.

How to redirect example.mydomain.com to folder.mydomain.com via DNS/.htaccess?

Is it somehow possible to redirect example.mydomain.com, a subdomain which does not actually exist, to folder.mydomain.com using either .htaccess or DNS? How can this be achieved?
When I access DNS from the control panel and click on the Web DNS tab, I see Personal web DNS settings, under which I believe I can submit domains and their values. However, I am confused with the type (web alias, web forward, A, CNAME, TXT, SRV, AAAA...). Could someone help me?
If the .htaccess way is simpler, I would then prefer it.
Thank you.
You wouldn't be able to use .htaccess as the subdomain does not exist.
I assume, from the process you described, that you are using One.com hosting. If so, the following guide will be of help:
Manage your DNS settings
Essentially, a web forward DNS entry will work for you:
Click on the Web DNS tab.
In the hostname/domain column, enter the subdomain you would like to redirect.
Set the type to web forward
Set the value to where you would like to be redirected when visiting the subdomain.
Click the (+) sign to save your changes.
It will take up to 90 minutes for your changes to take effect.

htaccess stealth redirect domain A to domain B

Hi is it possible to stealth redirect a domain to another domain and in the meanwhile keeping the url of the first domain visible in the address bar?
Using cPanel and able to edit htaccess
I am not sure that this is possible, but you can instead do the following:
Use iframe in order to display the destination website inside your current website in "full screen". Read this for more information.
Point your domain name to the ip of the destination. This might not work if the destination uses virtual host, but you can try. Try using the same the sub-domain if this doesn't work.

Resources