AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1657837
Accepted
user3405291
user3405291
Asked: 2021-06-20 19:18:37 +0800 CST2021-06-20 19:18:37 +0800 CST 2021-06-20 19:18:37 +0800 CST

通过我的域名注册局查询 DNS 服务器没问题。但浏览器无法通过其地址获取我的网站

  • 772

当我通过.com**顶级域名注册处的网站查询我的DNS服务器时,我可以看到我的DNS服务器找到了:

Query
Domain: example**.com**
Answer:
Following name-servers have been defined in **NIC DNS for your domain:

1. ns.example**.com**

IP addresses defined for NS servers in **NIC DNS (glue records):

1. ns.example**.com**. *4.*41.2*.1*4
Name Server: "ns.example**.com**"
List of defined name-servers in this name server is SYNC with the list of name-servers which has been defined in **NIC name-server.

List of name-server from this server:

1. ns.example**.com**

SOA detail from this server:

localhost. root.localhost. (
                    2021053002  ; Serial
                    10800   ; Refresh
                    3600    ; Retry
                    604800  ; Expire
                    86400 ) ; Minimum TTL

但在任何网络上,网络浏览器都无法通过example**.com**地址显示我的网站。

我有哪些选项可以调试我的 DNS 服务器?谢谢!


更新

我可以通过 SSH 连接到服务器并运行以下命令:

user@localhost:~> nslookup example**.com** 8*.*41.*3.1*4
;; connection timed out; no servers could be reached


还有这个命令:

user@localhost:~> nslookup example**.com** 
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
*** Can't find example**.com**: No answer

networking dns
  • 1 1 个回答
  • 79 Views

1 个回答

  • Voted
  1. Best Answer
    user3405291
    2021-06-21T04:04:26+08:002021-06-21T04:04:26+08:00

    服务器操作系统是 openSUSE Tumbleweed 32 位,其 DNS 服务器已由 YAST2 配置。看一下/etc/named.conf表示named工作目录:

    options {
    
            # The directory statement defines the name server's working directory
    
            directory "/var/lib/named";
    
    

    还/etc/named.conf指示相对于工作目录的区域文件:

    zone "example.com" in {
            allow-transfer { any; };
            file "master/example.comXX";
            type master;
    };
    

    前

    /var/lib/named/master/example.comXX内容是:

    $TTL 2d
    @               IN SOA          localhost.      root.localhost. (
                                    2021062000      ; serial
                                    3h              ; refresh
                                    1h              ; retry
                                    1w              ; expiry
                                    1d )            ; minimum
    
    example.com.  IN NS           ns.example.com.
    example.com   IN A            4.21.3.12
    ns              IN A            4.21.3.12
    

    后

    /var/lib/named/master/example.comXX根据此处的示例修改内容:

    https://ubuntu.com/server/docs/service-domain-name-service-dns

    修改后的新/var/lib/named/master/example.comXX内容是:

    $TTL 2d
    @               IN SOA          example.com.  root.example.com. (
                                    2021062000      ; serial
                                    3h              ; refresh
                                    1h              ; retry
                                    1w              ; expiry
                                    1d )            ; minimum
    
    @       IN NS           ns.example.com.
    @       IN A            4.21.3.12
    @       IN AAAA         ::1
    ns      IN A            4.21.3.12
    

    经过/var/lib/named/master/example.comXX上面的修改,现在可以通过地址浏览网站了。

    • 1

相关问题

  • 需要验证 firebaseapp.com 子域

  • NAT 后面的 NAT 如何工作(路由器的 NAT 和 ISP 的 NAT)?

  • Win10 1803:如何让移动热点成为专用网络?

  • 迁移 Windows Server 2008

  • nc如何识别服务名称

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve