DNS Issue
#1
Hi,

I have a issue which I believe is possibly not related to XBMC however someone may have seen this before so am posting here. I was previously running a XBMCbuntu server however one day randomly outbound internet requests stopped working (I have other machines on the network and they work without issues. mac, windows,smartphones etc) I had thought it was a problem with XBMC, but it just started working again (after a few weeks) no idea why or how.

I recently decided to re-install XBMCbuntu from scratch and have seen the same issue crop up. I cannot make outbound requests from the XBMCBuntu server. I have tried using other DNS servers such as googles 8.8.8.8 but same thing (I cannot even ping internet IPs). Below is an example, similarly I have no problems making requests from my windows machines.

OSX
Quote:nslookup google.com
Server: 194.168.4.100
Address: 194.168.4.100#53

Non-authoritative answer:
Name: google.com
Address: 173.194.34.132
Name: google.com

ping 173.194.34.128
PING 173.194.34.128 (173.194.34.128): 56 data bytes
64 bytes from 173.194.34.128: icmp_seq=0 ttl=54 time=24.864 ms
64 bytes from 173.194.34.128: icmp_seq=1 ttl=54 time=24.757 ms
^C

XBMC
Quote:nslookup google.com
;; connection timed out; no servers could be reached


The DNS servers being used are correct as per the ISP (Virgin Media) and I have also tried google public DNS, but it does seem to be a problem with outbound requests and not just dns resolution.

Quote:cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 194.168.4.100
nameserver 194.168.8.100

ping 173.194.34.128
PING 173.194.34.128 (173.194.34.128) 56(84) bytes of data.
c^C
--- 173.194.34.128 ping statistics ---
132 packets transmitted, 0 received, 100% packet loss, time 132048ms

I do not think it is XBMC which is the problem as the logs just shows timeouts connecting to the internet which the underlying OS is also showing

Quote:06:17:52 T:3063937904 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
06:17:52 T:3063937904 ERROR: Open - failed to open source <http://mirrors.xbmc.org/addons/eden/addons.xml.md5>
06:18:32 T:3063937904 WARNING: FillBuffer: curl failed with code 6
06:18:32 T:3063937904 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
06:18:32 T:3063937904 ERROR: Open - failed to open source <http://mirrors.xbmc.org/addons/eden/addons.xml|Encoding=gzip>
06:18:32 T:3063937904 ERROR: Repository XBMC.org Add-ons returned no add-ons, listing may have failed
06:19:40 T:83983216 WARNING: FillBuffer: curl failed with code 6
06:19:40 T:83983216 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
06:19:40 T:83983216 ERROR: Timeout whilst retrieving http://feeds.feedburner.com/xbmc


The XBMC server has no problem connecting to to the local server hosting the files, it is only for requests going outside of the local network. It is a wired connection to the router and I have changed the ethernetport still no joy. I also checked to make sure there were no firewall rules setup on the router and it has none.

Any help/ideas anyone can provide would be greatly appreciated.



Reply
#2
Can you run ifconfig and post back?
Reply
#3
Hi Burke,
From what I can tell it looks good,

Quote:eth0 Link encap:Ethernet HWaddr 80:ee:73:1f:e6:11
inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::82ee:73ff:fe1f:e611/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:136544 errors:0 dropped:0 overruns:0 frame:0
TX packets:69095 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:156141090 (156.1 MB) TX bytes:7524809 (7.5 MB)
Interrupt:43

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:664 errors:0 dropped:0 overruns:0 frame:0
TX packets:664 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:202564 (202.5 KB) TX bytes:202564 (202.5 KB)

wlan0 Link encap:Ethernet HWaddr e0:91:53:59:5f:78
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)

The routing table is as follows, which is correct. The 192.168.0.1 is the router out to the internet. (the same as on all the other machines)

Quote:Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0

Thanks for your help on this.
Reply
#4
I think you have to disable wlan0 and retry.

Code:
ifconfig wlan0 down
ifconfig eth0 down
ifconfig eth0 up

then if nothing changed you can try.

Code:
service network restart
or
Code:
/etc/init.d/network restart

Make sure wlan0 is down (it wont show up in ifconfig)

Now try.

uNi

Reply
#5
Why are your DNS servers on difrent private subnet?
Reply
#6
(2012-10-25, 19:22)Burke Wrote: Why are your DNS servers on difrent private subnet?

Where did you get that idea? From what I can tell he's only using the 192.168.0.0/24 network.

@wackocracko: can you ping the router's address from your XBMC machine? Why don't you use the router as the DNS server? That's what you're supposed to do.
Reply
#7
I am sorry, i don't have much linux experience so I got this wrong Blush

Quote:cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 194.168.4.100
nameserver 194.168.8.100
thoght that were dns servers

Quote: eth0 Link encap:Ethernet HWaddr 80:ee:73:1f:e6:11
inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::82ee:73ff:fe1f:e611/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:136544 errors:0 dropped:0 overruns:0 frame:0
TX packets:69095 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:156141090 (156.1 MB) TX bytes:7524809 (7.5 MB)
Interrupt:43

and here his IP address

So one dns is on 192.168.8. other is on 192.168.4.100

he did nslookup from windows machine, and DNS server is on 192.168.4.0/24 subnet

Quote:nslookup google.com
Server: 194.168.4.100
Address: 194.168.4.100#53

But his ifconfig shows that his IP is 192.168.0.8, so 192.168.0.0/24

To me that looks like different subnets Confused

sorry if I miss understood whole thing,
Reply
#8
You need to read his post again, his DNS server's address is 194.168.4.100, not 192.168.4.100.
Reply
#9
Forget about the DNS servers. it is not the guys problem at all. Can we concentrate on the problem?

uNi
Reply
#10
Thanks for the replies!

I bought the wlan interface down but still no joy, I believe it is started up as part of the OS, but the networking is via eth0 and a cable connected into the router, however even with wlan disabled I can still not get out onto the internet. I checked iptables on xbmcbuntu incase something was blocking it locally but that is empty.

As for the DNS servers they are assigned via DHCP from the router and are the DNS servers of the ISP which are correct. So the router is correctly assigning IP address and the DNS servers. I have manually changed dns servers trying a lookup, but I cannot ping IP addresses outside of the network from the xbmcbuntu server.

194.168.4.100 - cache1.service.virginmedia.net.
194.168.8.100 - cache2.service.virginmedia.net.

Local subnet I have no issue talking to other machines, infact I am ssh'ed in from my windows machine and can successfully ping machines on the local network from xbmc and mount a samba share from where all my media is (and watch it). The file/media server has no issues connecting to the internet etc to download.

It's only an issue for anything for which an internet connection is required from xbmcbuntu server.
Reply
#11
I would look at disabling wla0 in bios, I had this head ache a long time ago about two adapters such as this causing same problem, so we want to kill it dead (for sake of testing)

Failing the firewalls and rules and mac filtering and whatever you may have looked at, I believe this is a way to go, but It would be tons better I were sitting in front of your setup, which is not possible either way.

Ill assume you dont have complicated acls and that your router is able to create a dmz, so lets try to create a dmz fro this machine on your router, while disabling the wlan0 in bios.

thx

uNi
Reply
#12
Thanks uNi, I'll give that a shot and let you know.

There are no firewalls rules (outbound anyway), I have a few port forwarding rules setup to my windows server which work fine. No MAC filtering or any other bits and bobs. I had already tried the DMZ trick but still had no luck. Will try disabling wla0
Reply
#13
hmm still no joy.

Quote:eth0 Link encap:Ethernet HWaddr 80:ee:73:1f:e6:11
inet addr:192.168.0.50 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::82ee:73ff:fe1f:e611/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1661 errors:0 dropped:0 overruns:0 frame:0
TX packets:945 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:263579 (263.5 KB) TX bytes:223768 (223.7 KB)
Interrupt:43

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:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:26402 (26.4 KB) TX bytes:26402 (26.4 KB)


Still cannot ping anything, everything locally on the xbmcbuntu server still appears to look good, the next thing I am thinking is to reset the router to its factory defaults just incase it is something there.
Reply
#14
Okie so a factory reset seems to have fixed it. Possibly something underlying which was not showing in the Router GUI (I am guessing) Thanks for all the helps people. At least I know now if it happens again in the future.
Reply
#15
Glad you solved it. Usually bugs like this boils down to cheap network gear - the cheaper you buy the more obscure/occuring the bugs will be.
Reply

Logout Mark Read Team Forum Stats Members Help
DNS Issue0