V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
gzxultra
V2EX  ›  问与答

arm 开发板如何配置 DNS

  •  
  •   gzxultra · Nov 25, 2015 · 3368 views
    This topic created in 3806 days ago, the information mentioned may be changed or developed.

    学校 arm9 的开发板( 2410 ),以宿主机为default gw双网卡共享上网。由于烧写系统的时候没有写 dns (/etc/resolve.conf)。所以目前能 Ping ip ,不能解析 url 了。

    现在做一个小项目要用baidu placeSuggestion之类的 web api ,用什么办法能临时解析请求呢?

    除了重新烧系统。。。

    comicfans44
        1
    comicfans44  
       Nov 25, 2015   ❤️ 1
    你可以试试
    cp -a /etc/* /tmp/whereyoucanwrite/
    mount -o rbind /tmp/whereyoucanwrite /etc
    然后在 /tmp/whereyoucanwrite 下随便改 resolve.conf
    gzxultra
        2
    gzxultra  
    OP
       Nov 25, 2015
    有没有类似 ifconfig eth0 192.xxx.xxx.xxx 这样临时的方法呀
    gzxultra
        3
    gzxultra  
    OP
       Nov 26, 2015
    @comicfans44 成功了!非常感谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3182 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 00:26 · PVG 08:26 · LAX 17:26 · JFK 20:26
    ♥ Do have faith in what you're doing.