DNS リクエスト追跡

DNS リクエスト追跡

私のDebian Lennyシステムに固定IPがあり、IP経由でインターネットにpingを送信するのはうまくいきます。残念ながら、www.google.comは名前で解決できません。名前を解決できないため、Linuxに他のソフトウェアをインストールすることはできません。

/etc/ネットワーク/インターフェース:

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface uses static address
auto eth0
iface eth0 inet static
        address 192.168.1.99
        netmask 255.255.255.0
        broadcast 192.168.1.255
        network 192.168.1.0
        gateway 192.168.1.1
        dns-nameservers 8.8.8.8

問題を特定するために標準ツールを使用してDNS要求を追跡するにはどうすればよいですか?

ベストアンサー1

これはDebianデバイスのDNS解決の問題のようです。

この試み:

echo "nameserver 8.8.8.8" > /etc/resolv.conf # create the file and add the statement as first line
echo "nameserver 8.8.4.4" >> /etc/resolv.conf # append to existing file at the end

これにより問題が解決します。

おすすめ記事