
저는 우분투 네트워킹이 처음이라 몇 시간 동안 이 문제로 어려움을 겪고 있습니다. Ubuntu 12.10을 새로 설치하고 있는데 무선 연결을 사용할 때 DNS를 확인할 수 없습니다. 인터넷 검색을 통해 찾은 많은 솔루션을 따랐지만 여전히 작동하지 않습니다. Google 네임서버를 추가해 보았지만 /etc/resolv.conf
도움이 되지 않았습니다. 또한 네트워크 관리자를 통해 정적 이름 서버를 추가하려고 시도했지만 역시 실패했습니다. ifcongig -a
명령줄에 입력하면 다음이 표시됩니다 .
eth0 Link encap:Ethernet HWaddr 00:26:2d:7f:ea:7c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:247 errors:0 dropped:0 overruns:0 frame:0
TX packets:247 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22898 (22.8 KB) TX bytes:22898 (22.8 KB)
wlan0 Link encap:Ethernet HWaddr 70:1a:04:e9:3a:4b
inet addr:10.0.0.28 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::721a:4ff:fee9:3a4b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:121 errors:0 dropped:0 overruns:0 frame:0
TX packets:403 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41374 (41.3 KB) TX bytes:38438 (38.4 KB)
내 /etc/resolv.conf
현재 모습은 다음과 같습니다.
nameserver 8.8.8.8
nameserver 8.8.4.4
그리고 dig google.com
나는 다음을 얻습니다:
; <<>> DiG 9.8.1-P1 <<>> google.com
;; global options: +cmd
;; connection timed out; no servers could be reached
에서는 ping -c 10 8.8.8.8
다음을 얻습니다.
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 10.0.0.28 icmp_seq=1 Destination Host Unreachable
From 10.0.0.28 icmp_seq=2 Destination Host Unreachable
From 10.0.0.28 icmp_seq=3 Destination Host Unreachable
From 10.0.0.28 icmp_seq=5 Destination Host Unreachable
From 10.0.0.28 icmp_seq=6 Destination Host Unreachable
From 10.0.0.28 icmp_seq=7 Destination Host Unreachable
From 10.0.0.28 icmp_seq=8 Destination Host Unreachable
From 10.0.0.28 icmp_seq=10 Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
10 packets transmitted, 0 received, +8 errors, 100% packet loss, time 8999ms
pipe 4
내 결과는 다음과 같습니다 sudo route -n
.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 wlan0
10.0.0.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
그리고 내 결과는 다음과 같습니다 traceroute -n 8.8.8.8
.
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 10.0.0.28 1804.234 ms !H 1804.210 ms !H 1804.199 ms !H
또한 다른 장치와 동일한 컴퓨터의 Windows 설치에서 무선 네트워크에 연결할 수 있다는 점에 주목하고 싶습니다. 이더넷을 통해 연결하면 웹에 접속할 수도 있습니다.
ipconfig
내 Windows 컴퓨터에서 무선 연결을 수행할 때 다음 스니펫을 얻습니다 .
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : hsd1.ma.comcast.net.
Description . . . . . . . . . . . : Atheros AR5B93 Wireless Network Adapter
Physical Address. . . . . . . . . : 70-1A-04-E9-3A-4B
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::b153:23b2:2384:d341%12(Preferred)
IPv4 Address. . . . . . . . . . . : 10.0.0.28(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Thursday, May 09, 2013 1:50:10 PM
Lease Expires . . . . . . . . . . : Thursday, May 16, 2013 3:39:12 PM
Default Gateway . . . . . . . . . : 10.0.0.1
DHCP Server . . . . . . . . . . . : 10.0.0.1
DHCPv6 IAID . . . . . . . . . . . : 225450500
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-D9-81-3A-00-26-2D-7F-EA-7C
DNS Servers . . . . . . . . . . . : 75.75.75.75
75.75.76.76
NetBIOS over Tcpip. . . . . . . . : Enabled
정말 실망스럽기 때문에 도움을 주시면 대단히 감사하겠습니다.
답변1
/etc/resolv.conf가 올바른 것으로 보입니다. 이는 DNS 문제가 아닌 네트워크 문제인 것 같습니다.
eth0을 내려보십시오(GUI 네트워크 관리자 중 일부는 무선보다 유선 연결을 선호하며 이상한 이유로 신호가 있다고 생각할 수도 있습니다). 이를 제거하는 명령은 "sudo ifdown eth0"이고 google.com을 파헤쳐 보십시오. 또는 Ubuntu가 ifdown 스크립트를 제거한 경우(실행했는지 여부는 알 수 없음) "sudo ifconfig eth0 down"을 수행할 수 있습니다.
다시 불러오려면 "sudo ifup eth0" 또는 "sudo ifconfig eth0 up"을 실행하면 됩니다.
답변2
우분투에서 자동으로 DNS를 관리하도록 해보셨나요?
간단히 말해서: "resolvconf" 사용
sudo apt-get install resolvconf
sudo dpkg-reconfigure resolvconf
참조: