×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

please allow me to add that the proxy server I provided to the browser was an ip address...

Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / [ quiz ] a Unix box was able to nslookup www.yahoo.com, but could neither browse the web w/o a proxy server nor ping any valid hostnames. What was the problem?
    • 跟UNIX有什么关系?查一下firewall先。。。
      • misleading... you can assume there's no firewall...
    • anyone else?
    • nslookup just checks DNS server, or even just local cache without network avaiable. It doesn't mean the box has correct setting on gateway or other parts of TCP/IP to access that host/server.
      nslookup just checks DNS server, or even just local cache without network avaiable. It doesn't mean the box has correct setting on gateway or other parts of TCP/IP to access that host/server. eg. your standalone box with w3.ibm.com in your /etc/hosts. nslookup can find it, but it has no mean the box can ping to that ibm intranet IP.
      • You're close, but not on the right track.. it's a box on the internet... anything you can think of ?
    • traceroute, ping ip, tcpdump, telnet ip:80 or 8080 can help you
      • hint: nothing works except nslookup for any valid host names...
        • "nothing works" is too vague...what's the err msg when you try the following: traceroute host/ip, ping host/ip, telnet host/ip:80 or 8080 ?
          what is your /etc/nsswitch.conf, what is your /etc/resolv.conf, what does it tell you if you type nslookup ? , what about nslookup>server
          • resolv.conf gives a few lines of correct dns server ip's... and?
            • too little info.....give all output first.....
          • it means none of the other network depend applications works... mail, traceroute, ping, browser, ssh, telnet, ftp,,, almost any thing one can think of, except nslookup or dig... ;-)
            • if I put it in my local host file, and unplug the cable, I can still nslookup, but can't go anywhere.....is this what it's all about ?
              • okay, I didn't make it clear. The /etc/hosts file doesn't have much in it, you can nslookup any valid hostnames that are not in the /etc/hosts... ...
    • 让我想起了一则典故,恻恻看哪位unix大师知道如何解决?
      有一台机器A用NFS的方式mount了远程机器B的某几个目录.结果某天远程机器B down机, 这边的机器A那几个目录无响应,最糟糕的是有些应用系统要读写B的文件,造成瘫痪.
      当务之急是要umount那几个目录, 如何操作?

      注:1.系统都是AIX
      2.umount所有参数都使过,不行
      3. kill process行不通.

      最后本饭桶用非常规方法解决...这个'方法'的另外一个结局就是有可能导致楼主这种问题
    • Can you ping yourself? Or can you ping 127.0.0.1? What name server were you using when you were using nslookup, local one or internet one?
      • yes I can ping myself or any valid host ip, the dns server is not local...
        • /etc/host.conf. From what you described,I guess bind is missing in "order hosts,bind" in the above file
          • There's no host.conf, but you're really close...
            • /etc/nsswitch.conf :-) I bet I am right this time. Thanks for your interesting quiz.
    • to be fair, the problem was solved only after i looked at one file... the answer will be given after 2 days... just curious if any high-hands can tell w/o seeing this file...
      • 是host.conf吗? nis或者hosts在前,设置有问题?
    • please allow me to add that the proxy server I provided to the browser was an ip address...
    • Here is answer for you. There is a firewall block all the traffic except the tcp or UDP traffic for port 53. The other answer would be:
      The company firewall block all other IP address traffic except the DNS server. Then that DNS can do recursive query to his root server without any problem. But your workstation can not access interest ;)
      • #2748403@0
        • I told you already, the firewall block the traffic. Try this command see you can get the web page or not
          windows:
          telnet www.google.com 80
          then type 'GET / HTTP/1.0', then two return

          unix/linux: type the following command. I assume you have netcat installed
          printf "GET / HTTP/1.0\r\n\r\n" |nc www.google.com 80
          • #2748309@0, #2748417@0
          • and you didn't even read the first post carefully. "could neither browse the web w/o a proxy server" which means "could browse the web with a proxy server"
    • What I can think is to check files: /etc/nsswitch.conf and /etc/resolv.conf