Can't resolve DNS

I’m not sure what I did if anything but I have not used my opensuse for several months. Now when I try to connect to the internet I can not pull any websites. The wireless connection is active and connected. I am getting an IP address via dhcp. When I try and ping out (opensuse.org) I get unknown host. If I ping an IP address or type the IP in my browser it works fine. nslookup works but only if I specify the dns server. If anybody could help I would really appreciate it.

Here is a copy of my troubleshooting commands.

linux-uzic:/etc # nslookup forums.opensuse.org
;; connection timed out; no servers could be reached

linux-uzic:/etc # nslookup forums.opensuse.org 192.168.8.1
Server: 192.168.8.1
Address: 192.168.8.1#53

Non-authoritative answer:
Name: forums.opensuse.org
Address: 130.57.4.15

linux-uzic:/etc # cat resolv.conf.netconfig

/etc/resolv.conf file autogenerated by netconfig!

Before you change this file manually, consider to define the

static DNS configuration using the following variables in the

/etc/sysconfig/network/config file:

NETCONFIG_DNS_STATIC_SEARCHLIST

NETCONFIG_DNS_STATIC_SERVERS

NETCONFIG_DNS_FORWARDER

or disable DNS configuration updates via netconfig by setting:

NETCONFIG_DNS_POLICY=’’

See also the netconfig(8) manual page and other documentation.

Note: Manual change of this file disables netconfig too, but

may get lost when this file contains comments or empty lines

only, the netconfig settings are same with settings in this

file and in case of a “netconfig update -f” call.

Please remove (at least) this line when you modify the file!

search address removed for this post
nameserver 192.168.8.1
linux-uzic:/etc # ifconfig
eth0 Link encap:Ethernet HWaddr 00:1D:BA:B0:6E:C8
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:94 errors:0 dropped:0 overruns:0 frame:0
TX packets:94 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6292 (6.1 Kb) TX bytes:6292 (6.1 Kb)

vboxnet0 Link encap:Ethernet HWaddr 0A:00:27:00:00:00
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)

wlan0 Link encap:Ethernet HWaddr 00:22:FB:10:D1:58
inet addr:192.168.8.119 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::222:fbff:fe10:d158/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6521 errors:0 dropped:0 overruns:0 frame:0
TX packets:3278 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:798979 (780.2 Kb) TX bytes:337745 (329.8 Kb)

wmaster0 Link encap:UNSPEC HWaddr 00-22-FB-10-D1-58-00-00-00-00-00-00-00-00-00-00
UP RUNNING MTU:0 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)

linux-uzic:/etc # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.8.0 * 255.255.255.0 U 2 0 0 wlan0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.8.1 0.0.0.0 UG 0 0 0 wlan0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Definitely strange-looking. Do you see packets fly like they should?

sudo /usr/sbin/tcpdump -n -s 0 port 53

While running that do both tests of nslookup with and without specifying
the DNS server in the nslookup command to see if anything is different.
Maybe it’s an arp issue?

/sbin/arp -a

Good luck.

On 10/19/2010 08:36 AM, chewdon wrote:
>
> I’m not sure what I did if anything but I have not used my opensuse for
> several months. Now when I try to connect to the internet I can not
> pull any websites. The wireless connection is active and connected. I
> am getting an IP address via dhcp. When I try and ping out
> (opensuse.org) I get unknown host. If I ping an IP address or type the
> IP in my browser it works fine. nslookup works but only if I specify
> the dns server. If anybody could help I would really appreciate it.
>
>
>
> Here is a copy of my troubleshooting commands.
>
>
>
> linux-uzic:/etc # nslookup forums.opensuse.org
> ;; connection timed out; no servers could be reached
>
> linux-uzic:/etc # nslookup forums.opensuse.org 192.168.8.1
> Server: 192.168.8.1
> Address: 192.168.8.1#53
>
> Non-authoritative answer:
> Name: forums.opensuse.org
> Address: 130.57.4.15
>
> linux-uzic:/etc # cat resolv.conf.netconfig
> ### /etc/resolv.conf file autogenerated by netconfig!
> #
> # Before you change this file manually, consider to define the
> # static DNS configuration using the following variables in the
> # /etc/sysconfig/network/config file:
> # NETCONFIG_DNS_STATIC_SEARCHLIST
> # NETCONFIG_DNS_STATIC_SERVERS
> # NETCONFIG_DNS_FORWARDER
> # or disable DNS configuration updates via netconfig by setting:
> # NETCONFIG_DNS_POLICY=’’
> #
> # See also the netconfig(8) manual page and other documentation.
> #
> # Note: Manual change of this file disables netconfig too, but
> # may get lost when this file contains comments or empty lines
> # only, the netconfig settings are same with settings in this
> # file and in case of a “netconfig update -f” call.
> #
> ### Please remove (at least) this line when you modify the file!
> search address removed for this post
> nameserver 192.168.8.1
> linux-uzic:/etc # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:1D:BA:B0:6E:C8
> 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:94 errors:0 dropped:0 overruns:0 frame:0
> TX packets:94 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:6292 (6.1 Kb) TX bytes:6292 (6.1 Kb)
>
> vboxnet0 Link encap:Ethernet HWaddr 0A:00:27:00:00:00
> inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)
>
> wlan0 Link encap:Ethernet HWaddr 00:22:FB:10:D1:58
> inet addr:192.168.8.119 Bcast:192.168.8.255
> Mask:255.255.255.0
> inet6 addr: fe80::222:fbff:fe10:d158/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:6521 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3278 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:798979 (780.2 Kb) TX bytes:337745 (329.8 Kb)
>
> wmaster0 Link encap:UNSPEC HWaddr
> 00-22-FB-10-D1-58-00-00-00-00-00-00-00-00-00-00
> UP RUNNING MTU:0 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)
>
> linux-uzic:/etc # route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.8.0 * 255.255.255.0 U 2 0 0
> wlan0
> loopback * 255.0.0.0 U 0 0 0
> lo
> default 192.168.8.1 0.0.0.0 UG 0 0 0
> wlan0
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMvbHzAAoJEF+XTK08PnB55ysP/0m4xl0Gim1u7wEb7iDXRwDj
7ndLJtXChDJ9lvzxEhgrVt61Z8K2lxijTCgT63ca9MFBOaR9NWcs+Z2mjqaaI30/
y/WbyNWZkE+OcAXtiE/qItPSuM5bD5fye0/J2hUgQUWAgnNlETXSNtP6VdTwtubd
w+Gzu/dh1Lnq2iDQN6mu3OW9hPiiwvciWVo51dZIpqXVVq5aMTSLKn9XbUhzgE9h
ilm+71n2dYZuA6Z1XmYWyBuwDAba+iBTRxMvZa9IZC84kmlf4QwQYNnueVD8HKZ7
LuXv/DTrlPzWM72PBgKF6tUCmm6gCyDjKOLZUVxcqfJRolJVoTZ4qQqtwYMaLZol
yz63JjKkb5qKkJJ64Bisc552uFx32ZSlW9as3BxE7RR9rcqupKWJVGVZeLO6xfZj
aS2JXfdnhKoHkUB/yy5wdn5eowS2f2urz7ORfD+gAOqE6HdoRBFemW25836Nc6B5
d6OaTeIEf2zNKmgWs6oJE9Jo4wKiAqBGqWkU4UKcDmJgh/wA9QywjktbY/yVd5qJ
a9tqII+QR5PydFIGb+HmfgV8Zt/91vYWXuXEsrfShsodialT0e+/+wjk8MYbSADD
qHb3JyPcJzQTE0IIreUiH/em6XdFCLPFrRWnnBBPOxq8a/fa9Qh42CPHuuq4tFdu
buv4dDNESMx5+7to4kXs
=ayf4
-----END PGP SIGNATURE-----

Did you use the same configuration before?

I suggest you remove the networkconnection from the networkmanager, then logout, login and recreate the connection.
If you’re using ifup, remove the configuration of the card, recreate it.

Typically you shouldn’t have to completely re-do your network card settings, unless I missed it you didn’t post your /etc/resolv.conf but I’m almost certain it doesn’t contain the proper settings.

But, assuming that your DHCP is configured correctly and is handing you your DNS Server setting properly and assuming your network settings aren’t configured in some oddball way, it’s possible to refresh your network connection with

As root

/etc/init.d/network restart

Typically, that should work whether you’re using IFUP/IFDOWN or Network Manager.

HTH,
Tony

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tsu2:

/etc/resolv.conf was there, and it looked good. Search for ‘nameserver’
in the original post.

Good luck.

On 10/19/2010 05:36 PM, tsu2 wrote:
>
> Typically you shouldn’t have to completely re-do your network card
> settings, unless I missed it you didn’t post your /etc/resolv.conf but
> I’m almost certain it doesn’t contain the proper settings.
>
> But, assuming that your DHCP is configured correctly and is handing you
> your DNS Server setting properly and assuming your network settings
> aren’t configured in some oddball way, it’s possible to refresh your
> network connection with
>
> As root
>
>
>
> Code:
> --------------------
> /etc/init.d/network restart
> --------------------
>
>
>
> Typically, that should work whether you’re using IFUP/IFDOWN or Network
> Manager.
>
> HTH,
> Tony
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMvoq+AAoJEF+XTK08PnB50iEP+wQ24WpvxFR/akYJZsfgkyga
Lq1tXt/arJEU+O66vJMzNR/nSGjg4nXFMnv96WoCfCEs/VDl6hL807cesXpkgdGi
XL0+ekFOCcLETY8YTPNP40JtDz/KPKw9NtnAoPcBnD8xo2voS6nLip2fLNhpjgjP
5aXCniBIGTWvxBQGaAIfBiU2B2YsWgPjPqJ8LjGWrCFcagH+h58fT3WWXjh8KDPL
xhoN/FN/CVL50Tza1PbSLeL3FvHsmP/schpy+pebixKNWoD6gG6oa29jzGp1RlY8
u7cyx4e8wveHMMeCKAKJr1tNC4NvfffmDqB+WffvsdsMLvujQA/4W7tvZOHo7YQo
+V+Icu9Kji3qx04zFKAJndMEJPrigEkVdDhKBawa3UG/iuYlpUuNtV1xD1IYcE5L
a5Vh2lxDMM7vEZwnNZyJhdr3cbFIW9LgL0xOkxMvLmN18haF/EXqwDckq2W1w8xW
E2RFZY1WcOMWlz02CHvW0+gr1JZ7z/+aNvsSslayQO2JjatZ5mXPzI83qrAlPwhp
fxDcj1fOGXaW1f0bg0Knh1o4ENdsT6bo9f4tYhQjLUcdrs5CZUnHIAvlg/GLDXP8
gcz9tf2TeFhsReE0Web26NPpk+KaXQvc3Kru0vssTK0SPBp4Ohhbc5eo2wymGwja
fSQXZ0tg7Hbwsg4JER6M
=cPav
-----END PGP SIGNATURE-----

I saw a listing of “resolv.conf.netconfig” in the initial post, but not of “/etc/resolv.conf”.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Oh… yes, you’re right. Hmmmm… strange. Perhaps that’s an issue.

Good luck.

On 10/20/2010 05:36 AM, nrickert wrote:
>
> I saw a listing of “resolv.conf.netconfig” in the initial post, but not
> of “/etc/resolv.conf”.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMvtxsAAoJEF+XTK08PnB5dP8QAMSz7pAVnlX2I93yNnC9ougI
X38fF4p97A6Bg8CoJ3DJ1Bjghn5v5pmLHF66XD+qzXpG2JOqOsGpm42EgAhzPs1b
0GXFVSqcL5whBzqh6MYvHJe5kngzS3TLDOU0ZmmLReYTOBRm+gsK/R5Yn1joj37r
j/SSCe29TT5ii3/v5uXhnv7mBWljAHCbG3k99YJKJB8kPERC8W7LkoP9GI5Zc/PE
khNKAiuH/1rZoLLuQxuQWl43Bo3WQf/ak1jVf/XhXrMJb9dd/20wXV0MyDjDeowe
w9jyaGyZPUZBFyOHKxm/CvnlfMsJjjh8TtFJwJhHrSFw0nlrwFwD0Q0WKmwZe9J8
F2lLL7I3ZR0BOPMbSjA0UwBz3h2bP67MLb866O3ie2RxqE2Mamb6CCgey3rYQqNe
I/+b63FViJjx7AgQJ9DHoafx5CIHoNEuNzXWukT2d7jAisaYmYYtAizMq/Vkc3Xd
JJ/QWSyC2IIGJ+MM+ZkijncYiZcYKWEwPOE2EfdsQfs4UEotKJ3D4i0pJKYGv3ST
0+YFW7eQDaZiB5mYGLFTO/iPF0QgIiQJZl78Biy0SRVXkj5ql2WV8HEE7Nx7Dlue
BLSzKTnlC0RN6zGIVUFuNgzklEX1u0mnRIAKsUcVGk19azh9iek4pmPitbPi/Rp2
ZYrnHeQZcvktQdOq4+R5
=kFMz
-----END PGP SIGNATURE-----

Thanks for all of help. The problem was like you said. resolv.conf had the wrong address. For some reason I thought it was set in resolv.conf.netconfig.
Thanks again everyone for all of the help.