Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 1 year has passed since last update.

Hive os DNS 搞鬼解決方法

Last updated at Posted at 2021-11-05

最近遇到很多用hive 在miner中看到 Failed to establish connection 或是Host not found的問題

先開啟spark shell
Screen Shot 2021-11-05 at 4.19.16 PM.png

過幾秒後或重新整理網頁會出現
Screen Shot 2021-11-05 at 4.20.25 PM.png

點開後往下拉點連結
Screen Shot 2021-11-05 at 4.20.37 PM.png

等網頁跑完後 先輸入指令dig xxxxxxx (xxxx=你的礦池網址)
例如 dig use-eth.hiveon.net

如果你看以下的錯誤訊息 代表你中了dns問題
Screen Shot 2021-11-05 at 4.23.44 PM.png

這時候輸入依序輸入以下五行指令

  1. systemctl disable systemd-resolved.service
  2. echo nameserver 168.95.1.1 > /etc/resolv.conf
  3. echo nameserver 8.8.8.8 >> /etc/resolv.conf
  4. echo "echo nameserver 168.95.1.1 > /etc/resolv.conf" >> /home/user/xinit.user.sh
  5. echo "echo nameserver 8.8.8.8 >> /etc/resolv.conf" >> /home/user/xinit.user.sh

Screen Shot 2021-11-05 at 4.27.08 PM.png

輸入完後在dig一次 , 看到有輸出表示正常
Screen Shot 2021-11-05 at 4.26.44 PM.png

重開機或重開miner , 收工!

0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?