Public bug reported: When using 'dig', it can return an IP address. But when I use the 'ping' , it told me the address can not be resolved(unknown host).
Some days before, there's no problem with my network. But today, when I tried to open a web-page by firefox, it told me the address can not be resolved. and It appeas every time now. so I tested the follow instructions to check my DNS settings: $ dig www.google.com ; <<>> DiG 9.3.4 <<>> www.google.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18938 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 7, ADDITIONAL: 7 ;; QUESTION SECTION: ;www.google.com. IN A ;; ANSWER SECTION: www.google.com. 588682 IN CNAME www.l.google.com. www.l.google.com. 87 IN CNAME www-china.l.google.com. www-china.l.google.com. 135 IN A 66.249.89.99 ;; AUTHORITY SECTION: l.google.com. 70279 IN NS c.l.google.com. l.google.com. 70279 IN NS d.l.google.com. l.google.com. 70279 IN NS e.l.google.com. l.google.com. 70279 IN NS f.l.google.com. l.google.com. 70279 IN NS g.l.google.com. l.google.com. 70279 IN NS a.l.google.com. l.google.com. 70279 IN NS b.l.google.com. ;; ADDITIONAL SECTION: a.l.google.com. 76462 IN A 209.85.139.9 b.l.google.com. 76462 IN A 64.233.179.9 c.l.google.com. 76462 IN A 64.233.161.9 d.l.google.com. 76462 IN A 66.249.93.9 e.l.google.com. 76462 IN A 209.85.137.9 f.l.google.com. 76462 IN A 72.14.235.9 g.l.google.com. 76462 IN A 64.233.167.9 ;; Query time: 198 msec ;; SERVER: 192.168.2.1#53(192.168.2.1) ;; WHEN: Wed Jul 18 21:47:03 2007 ;; MSG SIZE rcvd: 316 ok, it returns the IP of 66.249.89.99. now ping: $ ping www.google.com ping: unknown host www.google.com it seems that the name can not be resolved to IP address. And here's my configurations: $ cat /etc/resolv.conf search domain nameserver 192.168.2.1 wireless settings: $ ifconfig eth1 链路封装:以太网 硬件地址 00:12:F0:43:7C:1A inet 地址:192.168.2.100 广播:192.168.2.255 掩码:255.255.255.0 inet6 地址: fe80::212:f0ff:fe43:7c1a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1 接收数据包:132 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:31 错误:0 丢弃:0 过载:0 载波:1 碰撞:0 发送队列长度:1000 接收字节:1200 (1.1 KiB) 发送字节:7758 (7.5 KiB) 中断:11 基本地址:0xe000 Memory:c0214000-c0214fff lo 链路封装:本地环回 inet 地址:127.0.0.1 掩码:255.0.0.0 inet6 地址: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 跃点数:1 接收数据包:61 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:61 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:0 接收字节:5773 (5.6 KiB) 发送字节:5773 (5.6 KiB) $ uname -a Linux Queen 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux ** Affects: Ubuntu Importance: Undecided Status: New -- dns failed but I can get IPs through 'dig' https://bugs.launchpad.net/bugs/126770 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs