SQL 2005 实例无法与 DNS 配合使用

发布于 2024-07-15 12:16:33 字数 265 浏览 3 评论 0原文

基本上我有一个安装了命名实例的 sql 2005 标准服务器(server/instance1)。 我还创建了一个指向 sql 服务器的 IP 地址的 DNS 条目 (dnsDBServer)。 我们拥有的 Web 应用程序可以使用以下方法(ipaddress/instance1、server/instance1)进行连接,但无法使用 dnsDBServer/instance1 进行连接。 当然,这违背了 DNS 条目的目的。 想知道 sql 别名是否有助于解决这个问题或者是否有人有解决方案。 谢谢。

Basically I have a sql 2005 standard server with a named instance installed (server/instance1). I also have created a DNS entry (dnsDBServer) that points to the ip address of the sql server. A web application we have can connect using the following methods (ipaddress/instance1, server/instance1) but cannot connect using the dnsDBServer/instance1. Of course this sort of defeats the purpose of the dns entry. Was wondering if sql aliases would help fix this problem or if anyone has a solution. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

兮子 2024-07-22 12:16:33

您的 DNS 解析很可能没有像您想象的那样工作。

从尝试与您的 sql 服务器通信的机器上执行tracert,看看它要去哪里。

您还应该查看请求计算机和服务器之间的防火墙设置,看看是否有其他因素影响它。

Most likely your DNS resolution isn't working exactly like you thought it would.

Do a tracert from the machine that is trying to talk to your sql server and see where it's going to.

You should also look at the firewall settings between the requesting machine and the server to see if there is anything else affecting it.

贪恋 2024-07-22 12:16:33

是否存在域名不匹配? 例如 server.bob.net、dnsDBServer.fred.com?

  1. 使用 ping -a 查看 DNS 别名和服务器名称的域解析。
  2. 另外,在客户端的 DNS 设置中,选中“附加这些 DNS 后缀(按顺序)”列表。
  3. SQL 盒上的 SSMS 可以连接到 dnsDBServer\instance1 吗?
  4. 按照建议进行跟踪

Is there a domain mis-match? eg server.bob.net, dnsDBServer.fred.com?

  1. Use ping -a to see what the domain resolution is for both DNS alias and server name.
  2. Also, in the DNS settings of a client, check the "Appends these DNS suffixes (in order)" list.
  3. Can SSMS on the SQL box connect to dnsDBServer\instance1?
  4. tracert as suggested already
错爱 2024-07-22 12:16:33

哈,我刚刚意识到 Web 服务器(与 sql 服务器运行的服务器相同)没有更新自己的 dns。 我应该首先检查一下。 我运行 ipconfig /flushdns 它开始工作。 我从来没有意识到要检查服务器本身。 感谢您的帮助。

ha, I just realized that the web server (which is the same server the sql server runs on) didn't have it's own dns updated. I should have checked that first thing. I ran ipconfig /flushdns and it started working. It never dawned on me to check the server itself. Thanks for your help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文