iT邦幫忙

0

DNS DOMAIN REDIRECT

  • 分享至 

  • xImage

請問可否在DNS SERVER 以下動作

DomainA.com --> DomainB.com/DomainA

謝謝

CNAME ?
附加DNS尾碼 ?
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
1
Ray
iT邦大神 1 級 ‧ 2024-04-12 18:03:31

這是 Reverse Proxy 在做的事情, 光靠 DNS 辦不到.
你至少要在 DomainA.com 前面加上一個有 Rewrite 或 Redirect URL 能力的 Reverse Proxy 或者 Load Balancer 才可以.

望空 iT邦新手 3 級 ‧ 2024-04-12 18:06:44 檢舉

DNS頂多做到CNAME,後面帶的那串不是DNS的業務範圍~

small IT iT邦新手 5 級 ‧ 2024-04-16 11:26:40 檢舉

I asked Copilot then return this answer

Once you have access to the DNS management panel, you can
create a CNAME record with the following details:

Source/Host: domainA.com
Destination/Points to: domainB.com/domainA

Ray iT邦大神 1 級 ‧ 2024-04-16 14:32:26 檢舉

哈哈哈哈, 你不知道生成式 AI 會自己產生幻覺嗎?
他只想盡辦法湊出一個回答, 但不會考慮答案的邏輯性是否合理.

上面那個答案, 了解專業知識的人, 都知道是一個幻覺回答....

https://zh.wikipedia.org/zh-tw/%E5%B9%BB%E8%A7%89_(%E4%BA%BA%E5%B7%A5%E6%99%BA

https://technews.tw/2023/11/18/ai-hallucination/

https://dq.yam.com/post/15935

https://news.cnyes.com/news/id/5280284

1

DNS不能這樣處理的,那不是它要做的事。
DNS的註冊。就像是戶政一樣。
最多只能到你家門口。

但戶政最多就是到門口而已。不能給你再加登記為 101 202室這些。也就是目錄.

不過我其實也猜的到,你搞錯了方向了。
你一定是伺服器中不會使用 vhost 。才會需要用目錄來指向目的地。
但你思考的方向錯誤了。
不該是從DNS下手。你該要學習的是從你的WEB SERVER的設定值去下手。
簡單利用一下 vhost 的方式,就可以用不同域名來指定到對應位置上了。

small IT iT邦新手 5 級 ‧ 2024-04-16 11:27:14 檢舉

I asked Copilot but got this
Once you have access to the DNS management panel, you can create a CNAME record with the following details:

Source/Host: domainA.com
Destination/Points to: domainB.com/domainA

你可以去設定看看啊。
在DNS是可以設定沒錯。
但那只是設心酸的。

0
lovelylula
iT邦見習生 ‧ 2024-04-19 14:42:56

Best Drift Hunters + Drift game I've ever played.

我要發表回答

立即登入回答