Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-07-24 11:16:46
Point:500 Replies:5 POST_ID:828608USER_ID:11059
Topic:
Linux Networking;Apache Web Server;Domain Name Service (DNS)
I get one domain name from my hosting comany like ehfabc.com and
found out its IP is 212.1.213.70 on whois domaintool website
and found its name server called ns1.ehfabc.com and its
IP( ns1.ehfabc.com) is also 212.1.213.70
SO I go to chrome or FF to see what is web page output
when I type 212.1.213.70, the web output is diferent from I type e-hftrade.com
Why ?
I mean
when I type ehfabc.com , it will go to my index.php web page at my server's public_html directory
When I try 212.1213.70, it will go to http://212.1.213.70/cgi-sys/defaultwebpage.cgi
When I try ns1.ehfabc.com(nameserver of ehfabc.com), it will also go to http://212.1.213.78/cgi-sys/defaultwebpage.cgi
How ehfabc.com and 212.1.213.70 address can go to different web output ?
I guess only under one condition that will happen, the IP is reported from one of ehfabc.com(212.1.213.70) and its name server ns1.ehfabc.com(212.213.70) wrongly
And I thought port forwarding can NOT create the same IP from domain name and its nameserver
And I go to check the file at /etc/resolv.conf, there is only one line output such as
nameserver 8.8.8.8
and found nothing in resolv.conf file about my nameserver, ns1.ehfabc.com
8.8.8.8 that is Google public DNS server
Please advise, why that strange thing is happend unless explaination from one of IP is wrong
DUncan
found out its IP is 212.1.213.70 on whois domaintool website
and found its name server called ns1.ehfabc.com and its
IP( ns1.ehfabc.com) is also 212.1.213.70
SO I go to chrome or FF to see what is web page output
when I type 212.1.213.70, the web output is diferent from I type e-hftrade.com
Why ?
I mean
when I type ehfabc.com , it will go to my index.php web page at my server's public_html directory
When I try 212.1213.70, it will go to http://212.1.213.70/cgi-sys/defaultwebpage.cgi
When I try ns1.ehfabc.com(nameserver of ehfabc.com), it will also go to http://212.1.213.78/cgi-sys/defaultwebpage.cgi
How ehfabc.com and 212.1.213.70 address can go to different web output ?
I guess only under one condition that will happen, the IP is reported from one of ehfabc.com(212.1.213.70) and its name server ns1.ehfabc.com(212.213.70) wrongly
And I thought port forwarding can NOT create the same IP from domain name and its nameserver
And I go to check the file at /etc/resolv.conf, there is only one line output such as
nameserver 8.8.8.8
and found nothing in resolv.conf file about my nameserver, ns1.ehfabc.com
8.8.8.8 that is Google public DNS server
Please advise, why that strange thing is happend unless explaination from one of IP is wrong
DUncan
Author: duncanb7 replied at 2024-07-28 11:09:22
Thanks for all of your reply
IP address output content is different from its domain name output that is possible
and is not big deal
since no client will type digital number to seach the web content , especially for shared
hosting clients
Most important that is nameserver domain name mapping to correct web page location
according to domain name on web browser
IP address output content is different from its domain name output that is possible
and is not big deal
since no client will type digital number to seach the web content , especially for shared
hosting clients
Most important that is nameserver domain name mapping to correct web page location
according to domain name on web browser
Author: duncanb7 replied at 2024-07-28 11:08:03
Todays, I am successfully transfer my other new domain name for my unmanaged VPS server
During the process, I understood more about DNS
Many domains can share one IP on one name server
The reason why domain name 's IP has different content that might be
done if we set someting wrong or set double <virtual> tag for one IP in httpd.conf.
now I deleted those repeat virtual host tag for Cpanel with same IP , now the IP can go to
the content as the domain name does on browser
During the process, I understood more about DNS
Many domains can share one IP on one name server
The reason why domain name 's IP has different content that might be
done if we set someting wrong or set double <virtual> tag for one IP in httpd.conf.
now I deleted those repeat virtual host tag for Cpanel with same IP , now the IP can go to
the content as the domain name does on browser
Assisted Solution
Expert: skullnobrains replied at 2024-07-25 06:06:32
166 points EXCELLENT
the ip address leads to the same socket as the name, and is read by the same software.
in name based virtual hosting, the server selects the content based on the HOST HTTP header sent by the client. a browser will always connect to the IP and send a HOST header corresponding to the contents of the address bar.
if you want to experiment with this, you can use "modify headers" FF extension and change the HOST header to whatever you want while using the IP in the address bar. if you set the host header properly, you should be able to browse your site using the IP
as a side note, doing name based virtual hosting when you host a single web site is useless at best
in name based virtual hosting, the server selects the content based on the HOST HTTP header sent by the client. a browser will always connect to the IP and send a HOST header corresponding to the contents of the address bar.
if you want to experiment with this, you can use "modify headers" FF extension and change the HOST header to whatever you want while using the IP in the address bar. if you set the host header properly, you should be able to browse your site using the IP
as a side note, doing name based virtual hosting when you host a single web site is useless at best
Assisted Solution
Expert: Dave Baldwin replied at 2024-07-24 12:53:39
167 points EXCELLENT
That sounds like Name-based instead of IP-based hosting. With IP-based hosting, each site get it's own IP address. In Name-based hosting, every site on the server has the same IP address and a 'name server' on that machine routes the requests by name to the correct site. The IP address actually only leads to the name server on the machine.
Accepted Solution
Expert: Henk van Achterberg replied at 2024-07-24 12:51:53
167 points EXCELLENT
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b77cf015-017f-489c-9b5b-65ca4a679392.mspx?mfr=true
Every Web site has a descriptive name, and can support one or more host header names. Organizations that host multiple Web sites on a single server often use host headers because this method enables them to create multiple Web site identities without using a unique IP address for each site.
The browser sends the URL of the site you want to visit with the request, that is why the server knows which website to present.
Every Web site has a descriptive name, and can support one or more host header names. Organizations that host multiple Web sites on a single server often use host headers because this method enables them to create multiple Web site identities without using a unique IP address for each site.
The browser sends the URL of the site you want to visit with the request, that is why the server knows which website to present.