大网数据广告活动
网站运营与故障问答

DNS (A record) entry not working, ping gives "unknown host"

· 52CE 我爱测

I bought a domain and added an A record. The following shows under the "Current Running Records" section. Type - A Parameter - fash.lk Value - 104.131.26.48 TTL - 86400 But when I try to ping fash.lk I get "unknown host fash.lk".…

问题原文

原帖链接 · Can't Tell · CC BY-SA 3.0

I bought a domain and added an A record. The following shows under the "Current Running Records" section.

  • Type - A
  • Parameter - fash.lk
  • Value - 104.131.26.48
  • TTL - 86400

But when I try to ping fash.lk I get "unknown host fash.lk". I can ping the IP of the server successfully.

Is there any more configuration I have to do to get the domain name to point at my server? If not, what tools are there to diagnose the problem and how can I use them?

已采纳解答

原帖链接 · Putnik · CC BY-SA 3.0

Looks like you don't have the DNS server configured at the domain name registrar. Right now the World doesn't know about your domain, it even doesn't know where to ask about it:

root@dev2 [~]# dig fash.lk ns +short
root@dev2 [~]#

instead you should see something like that:

root@dev2 [~]# dig gov.lk ns +short
ns1.gov.lk.
d.nic.lk.
ns2.gov.lk.
c.nic.lk.
m.nic.lk.
root@dev2 [~]#

Solution: go to the domain name registrar where you bought it, and configure the name servers. Usually you must create at least two NS (or have two NS records).

Alternatively you can use the NSes of the registrar, please contact support there.

And yes, I assume you did registered(=bought) the domain name, not just configured it :)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-07-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。