subdomain.domainname.com's server IP address could not be found - dns

I have created a subdomain name alike domainname.com/subdomain.
And I placed my index page in the path: publichtml/subdomain/website.
It's perfectly working with the url- domainanme.com/subdomain/website But
But I also want it to open with the url- subdomain/domainname.com/website,
which showing the error "server IP address could not be found."

edit the dns zone of your main domain from WHM >> edit DNS zone and add an A entry pointing to your subdomain

Related

dns settings to connect godady domain to my hostgator

I have purchased a domaine ex.com .
i set the cname and A record with www.
I did not change the default nameservers of godady.
if I type http://ex.com I can accses the website.
if I type http://www.ex.com or https://www.ex.com I get 404
how can I resolve this?
my records..
I have solved it,
I just changed the cname pointing value to # symbol insted of hostgator url.
this will redirect your server to the place (IP) that your A record pointing to.

How to configure DNS host record so that my website shows domain name instead of ip address?

Currently I have a golang app that is serving at X.X.X.X:443. Suppose my domain name is example.com. I want to link example.com to X.X.X.X:443. I tried entering this into A Record but it doesn't allow me to use port. Therefore, I currently use URL Redirect Record. I tried to link CNAME Record to this URL Redirect Record but to no avail. It just keeps showing my ip address instead of example.com.
I don't mind having example.com:443.
Can I know how should I solve this problem? Is it supposed to be solved on the DNS side? Some suggest that I must host on port 80. Is it true?
According to the documentation (https://cloud.google.com/appengine/docs/standard/go/tools/local-devserver-command)
the parameter to change the host is : --admin_host=ADMIN_HOST
Definition is : "Host name to which the local development server's administration console should bind (default: localhost)."

How does my local HOSTS file resolve but IP will not

I'm in the process of launching a new website. I migrated all the code to the new server. The admin at the new host told me that I have to add an entry to my hosts file and then I will be able to see the website. So essentially he had me add:
111.222.3333.4444 example.com www.example.com
These are example, but after doing this, it worked. My question is, is how? If I visit the IP directly in my browser I get a 403 Forbidden error. Does the host have a way to resolve this IP to a location on their server if resolved from a domain name? I'm just confused as to how this works. I understand that by changing the IP address I can get the domain name to resolve to any IP, but I'm wondering why, on the hosts end, does this now resolve this way, but not by typing in the IP directly.
Thanks!
Does the host have a way to resolve this IP to a location on their
server if resolved from a domain name?
Not exactly. Your browser, when sending the request to the IP address, will send one important piece of information called 'Host header', that is the actual host name as you typed in your browser.
You usually can not open the website just by entering the IP address in your browser's address bar because web servers (and possibly many other network components that are between you and the web server) often do not host only one web site on that IP address so they rely on exact domain name typed in address bar to serve the right content.
You can test this by using one of the browser add-ons that allow you to add your own headers. Add header named 'Host' with the value 'example.com' and with that try to open your site by typing only provided IP address.

domain poiting to website

I have a a website on my server on a subdomain. let's say at this adress:
subdomain.sourceserver.com/site/
I mapped a freshly bought domain (mynewdomain.com) to my server. So now mynewdomain.com resolves with the IP of my server.
And http://mynewdomain.com displays the website located at subdomain.source-server.com/site/
When I start browsing in the pages of the website, the adress displayed changes back to http://subdomain.sourceserver.com/site/blabla.php
I would like to keep it with the domain name:
http://mynewdomain.com/blabla.php
How can I do that ?
Do I have to create a CName on the DNS zone subdomain.sourceserver.com ?
Thanks in advance !
Cheers,
Mat
DNS is not what's changing the address in your browser, it is likely your web code or web server config. My suspicion is that your site is configured to be "subdomain.sourceserver.com/site/", so links inside the site are pointed at "http://subdomain.sourceserver.com/site/something.file", which is why the visible URL changes.
http://mynewdomain.com is resolving to the same IP address as your previous name, so your web browser is taking you to the same content. Unless you have virtual hosts configured so that the server pays attention to the headers, it will simply serve out the content to the request that lands on it's IP:port.
Virtual host examples

Trying to link a domain to a IP

I have registered mydomain.com now i want to redirect to my IP hosting account.
The DNS editor shows two fields: Name and Address.
In Address i wrote the IP i want the domain redirects.
And in Name I wrote mydomain.com.
After submitting the form, the page shows this line:
Name Type Record
mydomain.mydomain.com. A 173.203.58.251
I expected it shows this:
Name Type Record
mydomain.com. A 173.203.58.251
Is that OK? or am i doing some wrong?
Regards
Javi
You've registered a domain which actually gives you a control on a full zone.
You have full control over the zone mydomain.com, including all it's subdomains.
You actually gave the subdomain mydomain.mydomain.com the IP 173.203.58.251.
You should give the empty subdomain the IP you want so mydomain.com will get it.
It depends on your DNS Editor, but should probably be one of the following (without the quotes):
"#" (the at sign)
"" (write nothing)
"." (one dot)
"mydomain.com." (including the last dot)
Are you trying to set the nameservers of the Domain? So that way mydomain.com shows the content from 173.203.58.251?
If so, you are in the wrong control panel. You need to do it in the control panel of the website you bought the domain from.

Resources