DNS Resolving/ Network related Problem [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

DNS Resolving/ Network related Problem [Solved]

Postby chasha420 » Fri Jul 29, 2011 4:02

Hi guys,

I've transferred to a foreign country to finish off my undergrad studies, and I've settled in a dorm where we have a wired internet connection.

I'm facing some troubles...some web pages in firefox like (speedtest.net) or some other pages tend not to load...but in Chromium everything works flawlessly. I've contacted the IT staff there and they are saying that they do not block anything or even the ISP doesn't...so it's probably a problem with the networking/configuration.

Also I'm working as a part time freelancer, and developing software for my clients...and the project I'm working on is coded in python and it too seems to have problem resolving the dns...

This is what I get when I type the following commands:
Code: Select all
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         sapsin2-4.mshom 0.0.0.0         UG    0      0        0 eth0
loopback        sabayon         255.0.0.0       UG    0      0        0 lo
192.168.0.0     *               255.255.255.0   U     1      0        0 eth0


Code: Select all
# cat /etc/resolv.conf
# Generated by resolvconf
search mshome.net
nameserver 192.168.0.1


I'm not sure what's the root of the problem but I think may be my linux box is having trouble converting names (gateway) to ip...I'm not sure but let me know what more information I should provide or what you think is the problem here.

Thanks!

Edit:
This is the error that I get when I try to run any python program that tries to connect to the internet:
Code: Select all
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known
Last edited by chasha420 on Fri Apr 06, 2012 17:13, edited 2 times in total.
chasha420
Technological Hen
 
Posts: 312
Joined: Thu Mar 31, 2011 15:32
Location: /dev/null

Re: [Urgent] DNS Resolving/ Network related Problem

Postby genfool » Fri Jul 29, 2011 4:18

not sure, but I think I would start with resolvconf. I use googles dns servers, what I get is.
Code: Select all
jokertu genfool # cat /etc/resolv.conf
# Generated by resolvconf
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 192.168.100.1
genfool
Technological Hen
 
Posts: 342
Joined: Fri Apr 03, 2009 17:56
Location: Albuquerque, NM

Re: [Urgent] DNS Resolving/ Network related Problem

Postby chasha420 » Fri Jul 29, 2011 9:42

Alright, I added google's nameserver but I didn't see any difference on my part.

Anyway, let me give some more info about my connection.

First of all it's what they call a wired hotspot type of connection and it requires that you enter usrname & password into the form when you open up the browser and from there onwards...if you successfully login...you are allowed to browse and you're connected to the internet, etc.

I've a separate unencrypted windows partition...and it seems like everything works perfectly in Windows using firefox, etc.

Code: Select all
Windows IP Configuration

        Host Name . . . . . . . . . . . . : none-def67ea2f4
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Mixed
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : mshome.net

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : mshome.net
        Description . . . . . . . . . . . : Marvell Yukon 88E8040 PCI-E Fast Et
ernet Controller
        Physical Address. . . . . . . . . : 00-23-AE-0E-9F-96
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.0.45
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1
        DHCP Server . . . . . . . . . . . : 192.168.0.1
        DNS Servers . . . . . . . . . . . : 192.168.0.1
        Lease Obtained. . . . . . . . . . : Friday, July 29, 2011 2:53:08 PM
        Lease Expires . . . . . . . . . . : Friday, August 05, 2011 2:53:08 PM


On linux everything works fine as well when I use Chromium and the problem I face is when using firefox (certain websites tends not get resolved (says: server not found)...and similar problem occurs with the python program that I mentioned earlier.

Also when I installed sabayon, I mistakenly forgot to change the hostname...so it is left as "sabayon"...so I'm not sure if that can cause a problem.

And does these look unusual?

Code: Select all
$ hostname
sabayon


Code: Select all
$ hostname -a
localhost6.localdomain6 localhost6


What ever the problem is...seems to me like a misconfiguration or something...please let me know what more information I should provide, etc.

Thanks a lot.
Last edited by chasha420 on Fri Jul 29, 2011 9:46, edited 2 times in total.
chasha420
Technological Hen
 
Posts: 312
Joined: Thu Mar 31, 2011 15:32
Location: /dev/null

Re: [Urgent] DNS Resolving/ Network related Problem

Postby Fitzcarraldo » Fri Jul 29, 2011 9:43

Moving this thread to the Networking and Wireless shed (forum).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7984
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: [Urgent] DNS Resolving/ Network related Problem

Postby chasha420 » Fri Jul 29, 2011 10:19

Thanks for moving this thread to it's proper section :)

I have now managed to fix the problem with Firefox...I read a few similar issues in this section and saw a suggestion from Fitzcarraldo where he suggested to set "disableipv6" to True in "about:config".

Now the only problem is fixing python to resolve the network properly...this is what I get:
Code: Select all
socket.gaierror: [Errno -2] Name or service not known


Also is it possible to take the hostname mistakenly as localhost and fail to resolve the network? If so how do I check for that mistake and what do I do to fix it?

If anyone has faced similar issues in the past let me know...and in the mean time I'll research some more and come back if I find a solution.

Thanks guys!
chasha420
Technological Hen
 
Posts: 312
Joined: Thu Mar 31, 2011 15:32
Location: /dev/null


Re: [Urgent] DNS Resolving/ Network related Problem

Postby chasha420 » Fri Jul 29, 2011 15:26

Thanks for pointing that out, but after I changed "/etc/nsswitch.conf" to include "hosts: files dns"...I didn't see any difference...same old "socket.gaierror".

I'll see if there's any other threads related to that...and if anyone has any idea let me know.

Thanks.
chasha420
Technological Hen
 
Posts: 312
Joined: Thu Mar 31, 2011 15:32
Location: /dev/null

Re: [Urgent] DNS Resolving/ Network related Problem

Postby chasha420 » Fri Jul 29, 2011 17:21

Sorry for the double post, but it seems I'm also having trouble updating/upgrading to the latest version.

This is what I get:
Code: Select all
# equo update --force
>>  @@ Repositories synchronization ...
>>   # Sabayon Linux Official Repository
>>   # Repository URL: http://pkg.sabayon.org/standard/sabayon-weekly/database/x86/5
>>   # Repository local path: /var/lib/entropy/client/database/x86/sabayon-weekly/standard/x86/5
>>   # Repository API: 3
>>    Downloading repository ...
>>    Attention: repository does not exist online.


Is that normal? I wonder if the network problem is responsible for that...if not then how do I fix it?

Thanks.
chasha420
Technological Hen
 
Posts: 312
Joined: Thu Mar 31, 2011 15:32
Location: /dev/null

Re: [Urgent] DNS Resolving/ Network related Problem

Postby chasha420 » Sat Jul 30, 2011 14:52

Hey guys I've searched some more and this is the best I could come up with:
http://forums.gentoo.org/viewtopic-t-852484-start-0.html

The solution suggests that I need to recompile kernel with disabled support for ipv6 flags...I'm not sure how to go about doing that but let me know if there's any other solution.

Thanks.
chasha420
Technological Hen
 
Posts: 312
Joined: Thu Mar 31, 2011 15:32
Location: /dev/null

Re: [Urgent] DNS Resolving/ Network related Problem

Postby Fitzcarraldo » Sat Jul 30, 2011 15:05

1. You can check if the ipv6 kernel module is loaded or not by using the command:

Code: Select all
lsmod | grep ipv6

2. Uncomment the line "alias net-pf-10 off # IPv6" in the file /etc/modprobe.d/aliases.conf, then enter the command update-modules as root user.

3. See Step 1.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7984
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Next

Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 1 guest