Networking Forums

Networking Forums > Computer Networking > Linux Networking > DNS forwards to a wrong IP

Reply
Thread Tools Display Modes

DNS forwards to a wrong IP

 
 
foxy1234
Guest
Posts: n/a

 
      08-03-2007, 10:26 AM
Sorry for cross-posting but I posted it in a wrong newsgroup. Clicked
a wrong link.

I've got a very weird network problem. I've got Ubuntu installed on my
laptop and desktop at home. The desktop is also dual-boot with Windows
XP. Until recently I have not got any serious problems with my home
network. I am using fusesmb to browse samba shares. However a couple
weeks ago I had a problem with my ADSL line and after that I start
having a problem with my network.

In a nutshell when I try to connect to my desktop from the laptop
using its name, it is trying to connect to a completely wrong IP
address and obviously fails. I can connect to IP address though. I do
not have this problem on WIndows: I can connect to my laptop from my
desktop if the latter is running WinXP.

Any help will be really appreciated.

Here comes some console output:

findsmb

*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.11.2 LAPTOP [WORKGROUP] [Unix] [Samba 3.0.24]
192.168.11.4 DESKTOP +[WORKGROUP] [Unix] [Samba 3.0.24]

~$ sudo mount -t smbfs -o
username=myname,password=mypass,uid=`whoami`,gid=` whoami`,fmask=000,dmask=000 //
DESKTOP/myname /home/`whoami`/network
Password:
timeout connecting to 212.68.205.86:445
Error connecting to 212.68.205.86 (Connection refused)
8187: Connection to DESKTOP failed
SMB connection failed

~$ ping DESKTOP
PING DESKTOP (212.68.205.66) 56(84) bytes of data.

>From 212.68.205.58 icmp_seq=1 Destination Host Unreachable


my resolv.conf:

nameserver 62.24.199.13
nameserver 62.24.199.23

$ dig DESKTOP

; <<>> DiG 9.3.4 <<>> DESKTOP
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4233
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;DESKTOP. IN A

;; ANSWER SECTION:
DESKTOP. 10000 IN A 212.68.205.86
DESKTOP. 10000 IN TXT "NXDOMAIN"

;; Query time: 40 msec
;; SERVER: 62.24.199.13#53(62.24.199.13)
;; WHEN: Wed Aug 1 18:57:36 2007
;; MSG SIZE rcvd: 60

~$ sudo tcpdump -vn port 53
Password:
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size
96 bytes
18:55:05.630484 IP (tos 0x0, ttl 64, id 25948, offset 0, flags [DF],
proto: UDP (17), length: 51) 192.168.11.2.32782 > 62.24.199.13.53:
39175+ A? DESKTOP. (23)
18:55:05.665483 IP (tos 0x0, ttl 57, id 42944, offset 0, flags [DF],
proto: UDP (17), length: 88) 62.24.199.13.53 > 192.168.11.2.32782:
39175 2/0/0 DESKTOP. A 212.68.205.86, DESKTOP. TXT[|domain]
18:55:14.417913 IP (tos 0x0, ttl 64, id 34747, offset 0, flags [DF],
proto: UDP (17), length: 51) 192.168.11.2.32782 > 62.24.199.13.53:
62887+ A? DESKTOP. (23)
18:55:14.457056 IP (tos 0x0, ttl 57, id 45507, offset 0, flags [DF],
proto: UDP (17), length: 88) 62.24.199.13.53 > 192.168.11.2.32782:
62887 2/0/0 DESKTOP. A 212.68.205.86, DESKTOP. TXT[|domain]
18:55:23.206922 IP (tos 0x0, ttl 64, id 43538, offset 0, flags [DF],
proto: UDP (17), length: 51) 192.168.11.2.32782 > 62.24.199.13.53:
4970+ A? DESKTOP. (23)
18:55:23.247695 IP (tos 0x0, ttl 57, id 47960, offset 0, flags [DF],
proto: UDP (17), length: 88) 62.24.199.13.53 > 192.168.11.2.32782:
4970 2/0/0 DESKTOP. A 212.68.205.86, DESKTOP. TXT[|domain]

 
Reply With Quote
 
 
 
 
Christoph Scheurer
Guest
Posts: n/a

 
      08-03-2007, 10:34 AM
foxy1234 schrieb:
> Sorry for cross-posting but I posted it in a wrong newsgroup. Clicked
> a wrong link.
>
> I've got a very weird network problem. I've got Ubuntu installed on my
> laptop and desktop at home. The desktop is also dual-boot with Windows
> XP. Until recently I have not got any serious problems with my home
> network. I am using fusesmb to browse samba shares. However a couple
> weeks ago I had a problem with my ADSL line and after that I start
> having a problem with my network.
>
> In a nutshell when I try to connect to my desktop from the laptop
> using its name, it is trying to connect to a completely wrong IP
> address and obviously fails. I can connect to IP address though. I do
> not have this problem on WIndows: I can connect to my laptop from my
> desktop if the latter is running WinXP.
>
> Any help will be really appreciated.
>
> Here comes some console output:
>
> findsmb
>
> *=DMB
> +=LMB
> IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
> ---------------------------------------------------------------------
> 192.168.11.2 LAPTOP [WORKGROUP] [Unix] [Samba 3.0.24]
> 192.168.11.4 DESKTOP +[WORKGROUP] [Unix] [Samba 3.0.24]
>
> ~$ sudo mount -t smbfs -o
> username=myname,password=mypass,uid=`whoami`,gid=` whoami`,fmask=000,dmask=000 //
> DESKTOP/myname /home/`whoami`/network
> Password:
> timeout connecting to 212.68.205.86:445
> Error connecting to 212.68.205.86 (Connection refused)
> 8187: Connection to DESKTOP failed
> SMB connection failed
>
> ~$ ping DESKTOP
> PING DESKTOP (212.68.205.66) 56(84) bytes of data.
>
>>From 212.68.205.58 icmp_seq=1 Destination Host Unreachable

>
> my resolv.conf:
>
> nameserver 62.24.199.13
> nameserver 62.24.199.23


Either ssetup your own DNS-Server, with a zonefile for your network
and a forwarder directive to the DNS-Servers mentioned, or enter the
hosts like DESKTOP in /etc/hosts

The DNS-Servers that you ask now cannot know the right address.

Greets
Chris
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      08-03-2007, 11:12 AM
On Aug 3, 3:26 am, foxy1234 <f...@on-the-hill.me.uk> wrote:

> ~$ sudo mount -t smbfs -o
> username=myname,password=mypass,uid=`whoami`,gid=` whoami`,fmask=000,dmask=000 //
> DESKTOP/myname /home/`whoami`/network
> Password:


You should not use 'mount' for this but a specific tool for doing SMB
mounts. That will include the logic needed to resolve the name.

> ~$ ping DESKTOP
> PING DESKTOP (212.68.205.66) 56(84) bytes of data.


Obviously that won't work. The 'ping' command is not an SMB tool, it
won't understand SMB host names.

DS

 
Reply With Quote
 
foxy1234
Guest
Posts: n/a

 
      08-03-2007, 11:29 AM
On 3 Aug, 12:12, David Schwartz <dav...@webmaster.com> wrote:
> On Aug 3, 3:26 am, foxy1234 <f...@on-the-hill.me.uk> wrote:
>
> > ~$ sudo mount -t smbfs -o
> > username=myname,password=mypass,uid=`whoami`,gid=` whoami`,fmask=000,dmask=000 //
> > DESKTOP/myname /home/`whoami`/network
> > Password:

>
> You should not use 'mount' for this but a specific tool for doing SMB
> mounts. That will include the logic needed to resolve the name.
>
> > ~$ ping DESKTOP
> > PING DESKTOP (212.68.205.66) 56(84) bytes of data.

>
> Obviously that won't work. The 'ping' command is not an SMB tool, it
> won't understand SMB host names.
>
> DS


Hi, thanks a lot for the response. I tried LinNeighborhood as well:

LinNeighborhood
timeout connecting to 212.68.205.86:445
Error connecting to 212.68.205.86 (Connection refused)
timeout connecting to 212.68.205.86:445
Error connecting to 212.68.205.86 (Connection refused)

 
Reply With Quote
 
Martin Blume
Guest
Posts: n/a

 
      08-03-2007, 07:36 PM
"foxy1234" schrieb im Newsbeitrag
>
> Re: DNS forwards to a wrong IP
>


If it's really wrong DNS resolution and not something SMB-specific,
make sure that you have your local IPs resolved in /etc/hosts
and that /etc/hosts.conf contains something along:
order hosts, bind
and that /etc/nsswitch.conf contains:
hosts: files lwres dns
(dunno what lwres is)

This makes libc4/5 resolver first look into /etc/hosts and
only then asking your ISPs nameserver.

HTH
Martin

PS: My system, from which these values were taken, is
an quite old Suse system. But AFAIK Ubuntu works similarly.





 
Reply With Quote
 
foxy1234
Guest
Posts: n/a

 
      08-17-2007, 08:20 AM
On 3 Aug, 11:34, Christoph Scheurer <cyberf...@rebmatt.ch> wrote:
> foxy1234 schrieb:
>
>
>
> > Sorry for cross-posting but I posted it in a wrong newsgroup. Clicked
> > a wrong link.

>
> > I've got a very weird network problem. I've got Ubuntu installed on my
> > laptop and desktop at home. The desktop is also dual-boot with Windows
> > XP. Until recently I have not got any serious problems with my home
> > network. I am using fusesmb to browse samba shares. However a couple
> > weeks ago I had a problem with my ADSL line and after that I start
> > having a problem with my network.

>
> > In a nutshell when I try to connect to my desktop from the laptop
> > using its name, it is trying to connect to a completely wrong IP
> > address and obviously fails. I can connect to IP address though. I do
> > not have this problem on WIndows: I can connect to my laptop from my
> > desktop if the latter is running WinXP.

>
> > Any help will be really appreciated.

>
> > Here comes some console output:

>
> > findsmb

>
> > *=DMB
> > +=LMB
> > IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
> > ---------------------------------------------------------------------
> > 192.168.11.2 LAPTOP [WORKGROUP] [Unix] [Samba 3.0.24]
> > 192.168.11.4 DESKTOP +[WORKGROUP] [Unix] [Samba 3.0.24]

>
> > ~$ sudo mount -t smbfs -o
> > username=myname,password=mypass,uid=`whoami`,gid=` whoami`,fmask=000,dmask=000 //
> > DESKTOP/myname /home/`whoami`/network
> > Password:
> > timeout connecting to 212.68.205.86:445
> > Error connecting to 212.68.205.86 (Connection refused)
> > 8187: Connection to DESKTOP failed
> > SMB connection failed

>
> > ~$ ping DESKTOP
> > PING DESKTOP (212.68.205.66) 56(84) bytes of data.

>
> >>From 212.68.205.58 icmp_seq=1 Destination Host Unreachable

>
> > my resolv.conf:

>
> > nameserver 62.24.199.13
> > nameserver 62.24.199.23

>
> Either ssetup your own DNS-Server, with a zonefile for your network
> and a forwarder directive to the DNS-Servers mentioned, or enter the
> hosts like DESKTOP in /etc/hosts
>
> The DNS-Servers that you ask now cannot know the right address.
>
> Greets
> Chris


Hi Chris,

Thanks a lot for the rely. Yes, it works now as I put all my host
names in the hosts file.

I've got another problem, which seems related to this DNS issue. In
Firefox if I enter word 'firefox' in the Location bar it takes me to
the same IP address (212.68.205.86) with my ISP's webpage and search
suggestions. However if I enter 2 words for example 'firefox browser',
it works properly like in Windows taking me to the Firefox web page.
In WIndows for example it works fine with one word and takes me to the
Firefox web page.

Someone on the Mozilla forum suggested it is because DNS lookup fails.
Any ideas?

 
Reply With Quote
 
foxy1234
Guest
Posts: n/a

 
      08-17-2007, 10:01 PM
On Aug 17, 9:20 am, foxy1234 <f...@on-the-hill.me.uk> wrote:
> On 3 Aug, 11:34, Christoph Scheurer <cyberf...@rebmatt.ch> wrote:
>
>
>
> > foxy1234 schrieb:

>
> > > Sorry for cross-posting but I posted it in a wrong newsgroup. Clicked
> > > a wrong link.

>
> > > I've got a very weird network problem. I've got Ubuntu installed on my
> > > laptop and desktop at home. The desktop is also dual-boot with Windows
> > > XP. Until recently I have not got any serious problems with my home
> > > network. I am using fusesmb to browse samba shares. However a couple
> > > weeks ago I had a problem with my ADSL line and after that I start
> > > having a problem with my network.

>
> > > In a nutshell when I try to connect to my desktop from the laptop
> > > using its name, it is trying to connect to a completely wrong IP
> > > address and obviously fails. I can connect to IP address though. I do
> > > not have this problem on WIndows: I can connect to my laptop from my
> > > desktop if the latter is running WinXP.

>
> > > Any help will be really appreciated.

>
> > > Here comes some console output:

>
> > > findsmb

>
> > > *=DMB
> > > +=LMB
> > > IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
> > > ---------------------------------------------------------------------
> > > 192.168.11.2 LAPTOP [WORKGROUP] [Unix] [Samba 3.0.24]
> > > 192.168.11.4 DESKTOP +[WORKGROUP] [Unix] [Samba 3.0.24]

>
> > > ~$ sudo mount -t smbfs -o
> > > username=myname,password=mypass,uid=`whoami`,gid=` whoami`,fmask=000,dmask=000 //
> > > DESKTOP/myname /home/`whoami`/network
> > > Password:
> > > timeout connecting to 212.68.205.86:445
> > > Error connecting to 212.68.205.86 (Connection refused)
> > > 8187: Connection to DESKTOP failed
> > > SMB connection failed

>
> > > ~$ ping DESKTOP
> > > PING DESKTOP (212.68.205.66) 56(84) bytes of data.

>
> > >>From 212.68.205.58 icmp_seq=1 Destination Host Unreachable

>
> > > my resolv.conf:

>
> > > nameserver 62.24.199.13
> > > nameserver 62.24.199.23

>
> > Either ssetup your own DNS-Server, with a zonefile for your network
> > and a forwarder directive to the DNS-Servers mentioned, or enter the
> > hosts like DESKTOP in /etc/hosts

>
> > The DNS-Servers that you ask now cannot know the right address.

>
> > Greets
> > Chris

>
> Hi Chris,
>
> Thanks a lot for the rely. Yes, it works now as I put all my host
> names in the hosts file.
>
> I've got another problem, which seems related to this DNS issue. In
> Firefox if I enter word 'firefox' in the Location bar it takes me to
> the same IP address (212.68.205.86) with my ISP's webpage and search
> suggestions. However if I enter 2 words for example 'firefox browser',
> it works properly like in Windows taking me to the Firefox web page.
> In WIndows for example it works fine with one word and takes me to the
> Firefox web page.
>
> Someone on the Mozilla forum suggested it is because DNS lookup fails.
> Any ideas?


this is my routing table, is it OK?

~$ route
Kernel IP routeing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.11.0 * 255.255.255.0 U 0 0
0 eth1
default 192.168.11.1 0.0.0.0 UG 0 0
0 eth1

 
Reply With Quote
 
Christoph Scheurer
Guest
Posts: n/a

 
      08-18-2007, 04:09 PM
foxy1234 schrieb:
> On Aug 17, 9:20 am, foxy1234 <f...@on-the-hill.me.uk> wrote:
>>

>
> this is my routing table, is it OK?
>
> ~$ route
> Kernel IP routeing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 192.168.11.0 * 255.255.255.0 U 0 0
> 0 eth1
> default 192.168.11.1 0.0.0.0 UG 0 0
> 0 eth1
>


If 192.168.11.1 is the internal Interface of your gateway, it looks ok.

Greets
Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What am I doing wrong? Tony Raven Home Networking 3 08-29-2005 12:08 PM
one subnet forwards and one does not ?? dan Linux Networking 0 08-21-2004 01:48 AM
Logging NAT forwards?? Enrique Ariz?n Benito Linux Networking 2 07-29-2004 12:03 PM
What's wrong? Jameese Broadband Hardware 3 04-11-2004 12:38 AM
What am I doing wrong? Sean Heenan Home Networking 2 08-15-2003 11:15 AM



1 2 3 4 5 6 7 8 9 10 11