Can one Domain address point to IPaddress/~username not just pain IP address - unix

I have just one IP address for my server. It has two websites
123.456.789.11/~user1
123.456.789.11/~user2
Can I have two domains pointing to each user separately?
www.domainabc.com --> 123.456.789.11/~user1
www.domainxyz.com --> 123.456.789.11/~user2
I do not wish to append any thing to either of the domain names [ www.domainabc.com/~bigNO ]
Is it possible?
Thanks!

DNS is only concerned with mapping names to IP addresses. It knows nothing about protoocols, or anything else outside of the name www.example.com or the address 123.45.67.89
Most, if not all, web servers understand the concept of a virtual host, so you could configure user1.example.com to be a specific virtual host that then redirects to www.example.com/user1

Related

How to point my domain to a host whose ip address shared by multiple domains?

First of all, I am helping my client to change his domain which should point to my company's hosting, but I don't know much about this type of situation.
The hosting is hosted on a server with multiple hostings. They all share the same ip address. And I need to point the domain to a particular hosting (which has a different domain pointed to it). What should I do?
Then, I use http://www.tcpiputils.com/ to look up the ip address for that particular hosting. And it displays "Found 30 domains hosted on IP address xxx.55.129.141.". Then what information do I need to point my desired domain to one of the hosting? A record, AAAA record, Nameservers????

Hosting multiple sites on IIS having same the IP address

I need to host multiple sites for testing on single server with one IP Address over IIS.
Currently i have hosted a website which is mapped directly to IP address means no domain name. i need to host another website on same IP. How can i achieve that? is this possible having
e.g 174.22.12.87 (Site1)
e.g 174.22.12.87 :800 (Site2)
I am confused what to put in Host Name and Site Name ? for single IP Address and to host multiple sites. If i put ip in host name in both websites that look fine but what to put in site names? i think they should be unique?
you can have a look at this link.
https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b77cf015-017f-489c-9b5b-65ca4a679392.mspx?mfr=true
If you have the same IP-Address, the port is used used to host multiply sites. So you are right.
The combination of IP, Port, and HostName must be unique.
If you're deciding to always leave HostName blank (referencing things by IP:Port instead of domain) then you still just need the combination of IP and Port to be unique. (i.e. 174.22.12.87:80 vs 174.22.12.87:800)
I believe you're using SiteName to mean the IIS site name, which is just what it shows as within IIS and doesn't impact how you access the site at all.
Don't forget to add new Inbound rule to open your specified port in Windows firewall (server side).

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 stop redirect to default website when IP address is entered in the address bar of the browser?

I have multiple websites hosted on our server. When someone types the IP address in the address bar of the Browser It redirects to one of the websites hosted on the server. Is there any way by which I can set the default website which is opened when some one types the IP address. Same IP address is being shared by multiple websites.
1 IP address can only bind to 1 IIS Entry. So what you need to do is to pick the IIS entry you want, go the "Binding" section and bind your IP as the binding header.
ex: If your IP is 1.1.1.1 , then in binding header, you put 1.1.1.1, in IP address, you also choose 1.1.1.1.
After you setup this binding, you can browse to 1.1.1.1 and it'll open your site.
Remember to make sure all other sites doesn't have this binding. Otherwise, it'll have an conflict.
All you have to do is leave off the IP address and host name entries, and provided you have only a single website matching that, that site will become the 'default', while your other sites will have specific host name(s) they respond to.
I am not sure, but you may have to add a specific host in the C:\\Windows\System32\drivers\etc\hosts file, giving IP address and its corresponding address, this definitely works from logging into the website where it is hosted, i.e on the hosting server.
For logging from different IP machines, try the same logic - in this case make sure that the gateway is same for LAN.
Let's see what happens in this case ??

Looking for a list of aliases

All,
I have an IP address and I want to know all aliases within my organization that point to this IP. Is it possible?
For example I know the alias "TESTBOX" points to 119.119.119.119.
How can by just knowing the IP come up with the "TESTBOX" ?
Thanks,
M
Short answer: You can't.
You can try a reverse lookup on the IP address, but that will only show you the address that has been specifically allocated in the reverse DNS to that IP address.
Remember, aliases might exist only as an entry on a single machine's hosts file. They might also exist in a DNS server on the other side of the planet. However, if you're only interested in local DNS aliases, and your DNS servers allow zone transfers, then you can try listing every entry in every domain (eg. with host -l xyzzy.bigcorp.com) and searching the results for the IP address in question.

Resources