LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   wireless and dns (https://www.linuxquestions.org/questions/linux-networking-3/wireless-and-dns-4175448829/)

Pedroski 02-06-2013 02:42 AM

wireless and dns
 
1 Attachment(s)
At home I cannot use my wifi. Never could. Now I have an android mobile phone. It cannot use the wifi. If I start Windows, I can use the wifi, so I rule out hardware failure.

My wifi connection shows a dns of 192.168.1.1 (see screenshot). Both my laptop and my mobile say they are connected to the router wifi. But they never get to the internet.

Do you think this may be because of dns setting? I can call up 192.168.1.1 but I cannot see anywhere to change the dns.

Someone told me I need bind, whatever that is, and an entry in /etc/named.conf There is no such file on my computer. Looking at processes, I do not see bind up and running. But the dsl connection works fine.

Any tips out there?

acid_kewpie 02-06-2013 03:20 AM

wifi and DNS really have NOTHING in common. You really shouldn't be able to have any doubts that cover both technologies.

if you can ping the default gateway then wifi is irrelevant.

A home DSL router is just about always the DNS proxy server too, you shoudl never need to change that unless you already know otherwise.

try doing manual dns resolution. does "host google.com 192.168.1.1" work? Show us the entire output of the command.

You certainly do NOT need bind at all.

Pedroski 02-06-2013 03:29 AM

This is China, they don't like google. Using gmail is not easy.

pedro@pedro-bedro:~$ host google.com 192.168.1.1
Using domain server:
Name: 192.168.1.1
Address: 192.168.1.1#53
Aliases:

Host google.com not found: 5(REFUSED)
pedro@pedro-bedro:~$

pedro@pedro-bedro:~$ host baidu.com 192.168.1.1
Using domain server:
Name: 192.168.1.1
Address: 192.168.1.1#53
Aliases:

Host baidu.com not found: 5(REFUSED)
pedro@pedro-bedro:~$

pedro@pedro-bedro:~$ host web.qq.com 192.168.1.1
Using domain server:
Name: 192.168.1.1
Address: 192.168.1.1#53
Aliases:

Host web.qq.com not found: 5(REFUSED)
pedro@pedro-bedro:~$

acid_kewpie 02-06-2013 03:32 AM

Hmm, curious.

So can you ping the gateway IP at all?

Can you show your windows details? "ipconfig -a" and also an "nslookup baidu.com" instead of the host command.

Pedroski 02-06-2013 03:44 AM

Hang on, I'll have to start the other computer. But my wireless works in the office, no problem. Haven't had a chance to try the new mobile, it's a holiday here! New Year!
pedro@pedro-bedro:~$ nslookup baidu.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: baidu.com
Address: 220.181.111.85
Name: baidu.com
Address: 123.125.114.144
Name: baidu.com
Address: 220.181.111.86

pedro@pedro-bedro:~$

acid_kewpie 02-06-2013 03:48 AM

well that's working there... that's presumably network-manager intercepting the dhcp details and setting up dnsmasq on the client. It may be insightful to run "tcpdump -i <wifi interface name> -vn port 53" whilst running those lookups and posting that output, seeing where the DNS requests are actually gong.

Pedroski 02-06-2013 03:52 AM

Sorry, I don't know how to do that on Windows. I can't find a terminal!

Pedroski 02-06-2013 03:55 AM

pedro@pedro-bedro:~$ tcpdump -i wlan0 -vn port 53
tcpdump: wlan0: You don't have permission to capture on that device
(socket: Operation not permitted)
pedro@pedro-bedro:~$ sudo tcpdump -i wlan0 -vn port 53
[sudo] password for pedro:
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 65535 bytes
17:54:44.686263 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56)
192.168.1.4.61622 > 192.168.1.1.53: 49641+ A? web.qq.com. (28)
17:54:44.689394 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 56)
192.168.1.1.53 > 192.168.1.4.61622: 49641 Refused 0/0/0 (28)
17:55:07.385696 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 60)
192.168.1.4.5724 > 192.168.1.1.53: 13712+ A? tj.qstatic.com. (32)
17:55:07.388730 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 60)
192.168.1.1.53 > 192.168.1.4.5724: 13712 Refused 0/0/0 (32)

Pedroski 02-06-2013 03:56 AM

What do you want me to ping?

acid_kewpie 02-06-2013 03:56 AM

what are you doing when you ran that tcpdump? run the nslookups.

just run cmd on windows.

Pedroski 02-06-2013 03:58 AM

17:55:32.422260 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 68)
192.168.1.4.17504 > 192.168.1.1.53: 58867+ A? www.linuxquestions.org. (40)
17:55:32.425196 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 68)
192.168.1.1.53 > 192.168.1.4.17504: 58867 Refused 0/0/0 (40)

Looks like a refusal!!

Pedroski 02-06-2013 04:04 AM

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\npr>ipconfig -a

Error: unrecognized or incomplete command line.

USAGE:
ipconfig [/allcompartments] [/? | /all |
/renew [adapter] | /release [adapter] |
/renew6 [adapter] | /release6 [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] |
/showclassid6 adapter |
/setclassid6 adapter [classid] ]

where
adapter Connection name
(wildcard characters * and ? allowed, see examples)

Options:
/? Display this help message
/all Display full configuration information.
/release Release the IPv4 address for the specified adapter.
/release6 Release the IPv6 address for the specified adapter.
/renew Renew the IPv4 address for the specified adapter.
/renew6 Renew the IPv6 address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.
/showclassid6 Displays all the IPv6 DHCP class IDs allowed for adapter
.
/setclassid6 Modifies the IPv6 DHCP class id.


The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For Setclassid and Setclassid6, if no ClassId is specified, then the ClassId is
removed.

Examples:
> ipconfig ... Show information
> ipconfig /all ... Show detailed information
> ipconfig /renew ... renew all adapters
> ipconfig /renew EL* ... renew any connection that has its
name starting with EL
> ipconfig /release *Con* ... release all matching connections,
eg. "Local Area Connection 1" or
"Local Area Connection 2"
> ipconfig /allcompartments ... Show information about all
compartments
> ipconfig /allcompartments /all ... Show detailed information about all
compartments

C:\Users\npr>ipconfig -all

Windows IP Configuration

Host Name . . . . . . . . . . . . : npr-PC
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

PPP adapter nanjing:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : nanjing
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 180.109.200.206(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 0.0.0.0
DNS Servers . . . . . . . . . . . : 218.2.135.1
61.147.37.1
NetBIOS over Tcpip. . . . . . . . : Disabled

Ethernet adapter Astrill SSL VPN:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Astrill SSL VPN Adapter
Physical Address. . . . . . . . . : 00-FF-09-37-8E-0A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter
Physical Address. . . . . . . . . : 0C-EE-E6-BC-A3-4A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Atheros AR8132 PCI-E Fast Ethernet Contro
ller (NDIS 6.20)
Physical Address. . . . . . . . . : 00-26-22-85-F3-68
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom 802.11g Network Adapter
Physical Address. . . . . . . . . : 0C-EE-E6-BC-A3-4A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6d74:f3c0:7d3c:1f65%10(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.5(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 06 February 2013 17:46:01
Lease Expires . . . . . . . . . . : 09 February 2013 17:46:01
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 185396966
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-CD-AD-2B-00-26-22-85-F3-68

DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Hamachi:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Hamachi Network Interface
Physical Address. . . . . . . . . : 7A-79-19-9E-91-CF
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2620:9b::199e:91cf(Preferred)
Link-local IPv6 Address . . . . . : fe80::eded:fe40:ac44:b60e%26(Preferred)
IPv4 Address. . . . . . . . . . . : 25.158.145.207(Preferred)
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Lease Obtained. . . . . . . . . . : 06 February 2013 17:45:55
Lease Expires . . . . . . . . . . : 06 February 2014 17:48:03
Default Gateway . . . . . . . . . : 2620:9b::1900:1
25.0.0.1
DHCP Server . . . . . . . . . . . : 25.0.0.1
DHCPv6 IAID . . . . . . . . . . . : 695892364
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-CD-AD-2B-00-26-22-85-F3-68

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Reusable ISATAP Interface {066797D2-ADFB-4825-A53E-645B47189062}:


Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{D6827BBD-90D6-40D3-9224-9ED0F9E67D50}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Reusable ISATAP Interface {13D0AF26-07A6-4D44-AD9B-BE35C1053390}:


Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{A99BC31D-CB1D-4D9B-BCD4-9095C1450A0F}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #6
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:953c:c96:10fd:4b92:3731(Prefe
rred)
Link-local IPv6 Address . . . . . : fe80::c96:10fd:4b92:3731%12(Preferred)
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{603C84FD-4B21-49EB-BA71-829875F2609B}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{09378E0A-F452-4808-B330-2790FAEEC7A7}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #7
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{5DB3648E-0944-4BE0-A739-CBBF4D5C9D88}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #8
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

C:\Users\npr>

Pedroski 02-06-2013 04:07 AM

Sorry, but what should I do? "run the nslookups."

acid_kewpie 02-06-2013 04:29 AM

so you've a ppp interface on windows? Please describe more detail about your LAN and internet conenctivity as there's clearly a hell of a lot more going on on windows that a typical domestic ADSL connection.

Pedroski 02-06-2013 05:03 AM

Nothing complex here, really, just a router with 3 sockets for dsl cables, and one for iTV. The router also has wlan. Using Ubuntu or Fedora, I have never been able to connect to the wifi. It sees it, and says I am connected. But can't access the internet. And now my Android phone can't access the internet either. What is wrong? In the office is exactly the same set up, and I can access the wifi no problem with Ubuntu or Fedora.

Using Win, we automatically make the wifi connection. But it will not work unless we also make the dsl connnection, even though the cable is not plugged in! The dsl connection is called nanjing on the other laptop. We have to click it and say connect, it does not complain that the cable is not plugged in, like nm would do!


All times are GMT -5. The time now is 10:45 PM.