[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:20204] find hostname
Plain@おはら です。
 ホスト名から、IPアドレスを検索するのに、/etc/hosts
 を使って検索しようとしています。
 /etc/hostsには以下のように、記述していますが、
 127.0.0.1    localhost
 192.168.1.1  マシン名.ドメイン
 # nslookup 192.168.1.1
 *** Can't find server name for address 192.168.1.1: No response from server
 *** Default servers are not available
 と言われてしまいます。
 /etc/nsswitch.confには、
 hosts:   files dns
 と記述してあるので、/etc/hostsで大丈夫なはずだと思うのですが…。
 また、resolv.confには、以下のように記述してあります。
 search ドメイン
 nameserver 192.168.1.1
 同じマシンで、ppxp+IPMasqにより、ダイアルアップルーターとして使用しています。
 このことが引っかかっているのでしょうか?
 よろしくお願いします。
============================================================
     Masateru OHARA
     car31930@xxxxxxxxxxxxxxx
============================================================