Do I have to register a domain name to map an IP address? - jenkins

I have an Jenkins server named "jenkins" in a remote machine, and I currently use its actual IP address to access it. And I have a domain name to use for my Web server on another machine: www.mysite.com.
Is it possible to configure DNS names to use "jenkins.mysite.com" to access my Jenkins server machine without registering another independent domain name?
Further, I might have another machine to host my wiki, so I would like to access it as "wiki.mysite.com".
Thanks.

Yes, it is not only possible, but extremely common. It is a perfectly ordinary use of DNS. The entity controlling mysite.com can add whatever names they want under it (barring some technical limitations).
The details of what you personally need to do to add those other names will, of course, depend entirely on your environment. It can be anything from editing a zone file or using a web administration interface to talking to a sysadmin.

Related

How to redirect traffic for my url to my own linux server?

I "own" a URL www.example.com which is currently hosted by One.com. I recently built my own server running a LAMP stack and it serves pages to the internet from /html as it should, but is only accessible via numeric IP address. In the past I've re-assigned the name servers for URL's but only using a hosting company's "dashboard" or GUI. I've read about changing the DNS settings in Ubuntu (my server is running 18.04) and also I've researched what I can into Google's public DNS and DynDNS services.
So I have two sets of questions. First, is it possible to "connect" or "bind" a URL to the static IP address of my own server without using a DNS service? Can it be done through any kind of public registry and if not, what are the least expensive but still reliable options?
Second, is basically "Why bother?" I do understand the value of a human-readable address but also, the address bar isn't realistically used anymore. Most of the security value of having human readable addresses depends on users actually looking at the address bar so that's becoming a moot argument. People only navigate the web now through links and Google searches, and the address bar is essentially a developer tool. It seems like I can pretty much replace the need for DNS with masked links and meta titles?
You need to set your domain's "A Record" in DNS to point to your server's IP address. While not neccessary, you can configure Apache to respond to the correct domain with virtualhosts [https://httpd.apache.org/docs/2.4/vhosts/name-based.html ], but you will need the DNS configured correctly first.
It is not possible to bind a domain to an IP address without DNS - DNS or Domain Name System is THE authoritative system for doing so. It's how the world wide web functions.
Here is some additional reading on what DNS does and why it's important: https://www.cloudflare.com/learning/dns/what-is-dns/

Wordpress and Rails on same domain

I have an Amazon AWS and I want to install both Wordpress and Rails on this same server using Apache. I know that we can do this by configuring Apache virtual host. The problem is with the domain. Currently, we are using example.com for the Wordpress website, this website contains other pages such as blog, help, faq, etc. For the rails app, I want to use the app.example.com as the root path. And when an user signs up, I also want to give him a unique subdomain such as user1.example.com, user2.example.com, etc
How can I achieve such things? I am thinking about using some rewrites to redirect .example.com to Rails app but I don't really know how.
Thanks in advance
The way the internet works is that you address specific machine by its address - the domain is simply a mechanism to make that address prettier - and by the service port
Now, lets say that you are addressing http://example.com
What do you need the http for? this is the protocol you are using and each protocol had a predefined well known port number
You can address a different port by stating it - example.com:3000 for example
Now, a port is like the access point to some web application, but no two applications on same machine can make use of the same port
This is the reason that you can not run both WordPress and Rails server on the same machine and port
So change the port number, right? Not exactly - Because people will not know on which port you put it and will not be able to access it - However, I'm not sure, but in your Name Service Provider (GoDaddy, Networks Solution etc.) in the CNAME definition you might be able to point http://example.com to [your machine name]:[your port] - I'm not sure , you should check it out
Your options:
Use same machine - Leave the WordPress as is, put the Rails on HTTPS (port 8080) - Which is the secured protocol and it is also reasonable if the user need to put in some details that you want to be safe - Then your address will be https://app.example.com and you should update it also in your Service Name Provider settings and also set up a certificate and all read more about it before you start doing that
Use two machines - If you use a micro machine for the rails application it costs you nothing and put your DB also on AWS so you will have access to it from both machines
Hope I was helpfull

How to publish and host a MVC4 application in your domain?

I have a webdomain www.MyDomain.com and a MVC4 web application MyMVCWebApp.
First I publish the application to a local destination.
For instance: C:\TempLocation
And then I host it to my domain with a FTP-tool (FileZilla??)
The files will be hosted but I can't find the webpage.
Which url do I have to write?
http://www.MyDomain.com/MyMVCWebApp/Home/Index.chtml or something?!
Do I have change the settings in my web.config?
What do I have to do?
You can't host an application on a domain.
An application is hosted on a web server. A domain name is only a way to translate an easy to remember address like "www.google.com" to the web server ip address which looks like 173.194.66.104
It is possible to purchase a domain without a web server.
So before going further:
Check if you actually bought a domain only, or a domain with a server
Your domain should redirect to your server ip address, you can see if he is correctly configured by opening a command prompt and doing
C:\> ping www.yourdomain.com
If this is not the case you will need to update the A record of your domain, and wait for the update to be replicated on DNS server worldwird.
If you have a managed server, you should check your hosting provider website. They usually provide in depth documentation, and they all have a different way to do things. Most of the time indeed you will be able to upload your files using a FTP software such as Filezilla.
However, in order to host a MVC 4 application you need a server with
the IIS web server, which means that you need a Windows server. So if
you have a Linux server, you should contact your hosting provider
support and tell them you made a mistake during your order. (It is
possible to host a MVC 4 application on Linux, but I don't think it
is often provided on managed servers)
If you have a dedicated server you are on your own.
The URL you will have to write to access your application will depends on what you have configured in the RegisterRoutes method of the RouteConfigs.cs file.
I recommend you to watch the last video on this page to have a better overview of the possibilities.

iis bindings on shared server

I have a scenario where I have many domains (could be hundreds) pointing to my one web application for example
site1.com
site2.com
site3.com
.... etc
All point to my single web app, this app will be in a shared hosting environment.
The only way I can think of configuring these bindings in IIS is to send my shared hosting company an email every time I need a new binding. Is there a better way? for example some how sending all host headers to my site? How do I do that?
You probably need your own IP address to do this. Then you could just not specify a Host name in your binding:
You will need to specify your IP in the binding though.
This means that as long as your DNS points all sites to your IP, then your site should respond.

How to deploy multiple rails app on a single IP (Apache + Passenger)?

I want to deploy multiple rails app on a single server. If I had a domain name, I would have easily done that using subdomains as server name in virtual hosts.
My problem is that I do not have a domain name. Can I do something like
70.42.89.11/app_1 as one server name and 70.42.89.11/app_2 as another.
Or are there any other solutions?
Yes. The Passenger guide calls this "Deploying to a Sub URI"
http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rack_to_sub_uri
https://www.phusionpassenger.com/library/deploy/apache/deploy/ruby/#deploying-an-app-to-a-sub-uri-or-subdirectory
Additionally, you could set up a standard virtual host setup and use your hosts file to make up a domain you like. This would only work for testing of course, as anyone who wanted to see the apps would need to have the same entries in their hosts file, but would be fine for development.
Domains don't need to be hosted in the domain name system to be useable for virtual hosting.

Resources