ให้ลองตรวจสอบ ที่ /etc/resolv.conf จะมีค่าประมาณนี้
search youdomain.com
nameserver 203.XXX.YYY.Z41 # อันนี้เป็น DNS ของตัวเอง
nameserver aaa.bbb.ccc.ddd
จากนั้นลอง ตรวจสอบโดยใช้คำสั่ง nslookup ไปที่ web ที่เราคุ้นเคยเช่น
[root@dn ~]# nslookup www.google.com
Server: 203.172.177.227
Address: 203.172.177.227#53
Non-authoritative answer:
Name: www.google.com
Address: 74.125.135.99
Name: www.google.com
Address: 74.125.135.103
Name: www.google.com
Address: 74.125.135.104
Name: www.google.com
Address: 74.125.135.105
Name: www.google.com
Address: 74.125.135.106
Name: www.google.com
Address: 74.125.135.147
[root@dn ~]#
แสดงว่าปกติ
แต่ถ้าหากไม่ปกติจะเป็น
[root@dn ~]# nslookup www.google.co.th
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find www.google.co.th: NXDOMAIN
[root@dn ~]#
ลองวิธีแก้ 1
แก้ไขแฟ้ม /etc/resolv.conf แก้เสร็จแล้ว ให้ shutdown (ห้าม restart )
ผลที่ได้ ....................................................
ลองวิธีแก้ 2
แก้ไขแฟ้ม /etc/network/interfaces (ตรวจสอบค่าใหม่)
ผลที่ได้ ....................................................
Bug Description [Impact] because Network Manager historically would overwrite users' local DNS resolver settings on the desktop, a fair number of users have marked this file immutable on the filesystem. This causes an upgrade failure when going to 12.04, which makes resolvconf a non-optional part of the infrastructure for all users and requires /etc/resolv.conf to be replaced by a symlink. [Development Fix] resolvconf is arch: all and should be pocket-copied to quantal after SRU accept. [Test Case] 1. Install Ubuntu 11.10 2. run: sudo chattr +i /etc/resolv.conf 3. do a release upgrade to 12.04 4. verify that the upgrade fails with an error from the resolvconf package. 5. enable -proposed 6. attempt the release upgrade again 7. verify that the upgrade completes successfully, and that /etc/resolv.conf has been made a symlink. [Regression Potential] Since this overrides a filesystem bit that's been explicitly set by the admin, some users may be unhappy with this change. But this is not a supported configuration, so this should not block the SRU. Failed to install during upgrade ProblemType: Package DistroRelease: Ubuntu 12.04 Package: resolvconf 1.63ubuntu11 ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14 Uname: Linux 3.2.0-23-generic x86_64 ApportVersion: 2.0.1-0ubuntu5 AptOrdering: unity-scope-musicstores: Install resolvconf: Configure ubuntu-minimal: Configure unity-scope-musicstores: Configure Architecture: amd64 Date: Fri Apr 27 11:23:12 2012 DuplicateSignature: Setting up resolvconf (1.63ubuntu11) ... resolvconf.postinst: Error: Cannot replace the current /etc/resolv.conf with a symbolic link because it is immutable. To correct this problem, gain root privileges in a terminal and run 'chattr -i /etc/resolv.conf' and then 'dpkg --configure resolvconf'. Aborting. dpkg: error processing resolvconf (--configure): subprocess installed post-installation script returned error exit status 1 ErrorMessage: subprocess installed post-installation script returned error exit status 1 PackageArchitecture: all SourcePackage: resolvconf Title: package resolvconf 1.63ubuntu11 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 UpgradeStatus: Upgraded to precise on 2012-04-27 (0 days ago)
#แก้เสร็จอย่าลืมสั่งให้ service dnsmasq restart
# ลองดูที่ http://www.yannarak.com/node/354 ต้นฉบับอยู่ที่ http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html
# ดูเพิ่มที่ http://www.gotoknow.org/posts/196281
# gedit /etc/resolv.conf แล้วใส่ nameserver 8.8.8.8 กด save เล่นเน็ตได้เลย
ไม่มีความคิดเห็น:
แสดงความคิดเห็น