Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Recently I have encountered a strange problem accessing Samba shares. My desktop computer's IP is 192.168.11.4. But when I try to access my samba share there from my laptp I've got the following problem:
Code:
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)
I tried to do it in terminal but no luck as well:
Code:
~$ 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
I have no idea why it tries to connect to 212.68.205.86 instead of 192.168.11.4. I can mount it manually using IP address instead of name. However I cannot print to my network printer either because of this problem.
This is findsmb:
ok, well celarly nothign to do wtih linneighbordhoor in the slightest, just a DNS issue... what does your /etc/resolv.conf file say? are you searching for a domain without realising? what does "dig DESKTOP" say?
ok, well celarly nothign to do wtih linneighbordhoor in the slightest, just a DNS issue... what does your /etc/resolv.conf file say? are you searching for a domain without realising? what does "dig DESKTOP" say?
/etc/resolv.conf
Code:
nameserver 192.168.11.1
Code:
dig DESKTOP
; <<>> DiG 9.3.4 <<>> DESKTOP
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50869
;; 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.66
DESKTOP. 10000 IN TXT "NXDOMAIN"
;; Query time: 2763 msec
;; SERVER: 192.168.11.1#53(192.168.11.1)
;; WHEN: Sun Jul 29 22:32:06 2007
;; MSG SIZE rcvd: 62
ok, so what is that nameserver? it has an A record right there for it... is it serving that from local files of forwarding to another server online?
it is router's gateway. I do not have an answer to your second questions unfortunately as I do not really understand it. As I can see, something wrong in my DNS settings, but I have no idea where.
BTW, I have changed DNS from auto to those given by ISP, but it did not fix a problem.
so with those nameservers a "dig desktop @62.24.199.13" still gives that detail? I know that it can't... maybe it's cached, but there's apparently somethign screwy in the chain of nameservers your router is using, unless it has somehow accepted a local update for another machine...
so with those nameservers a "dig desktop @62.24.199.13" still gives that detail? I know that it can't... maybe it's cached, but there's apparently somethign screwy in the chain of nameservers your router is using, unless it has somehow accepted a local update for another machine...
well there's clearly something a bit screwey somwhere, and it'll be silly and obvious once found, but right now i've no idea... what if you search for other no fqdn entries?
well there's clearly something a bit screwey somwhere, and it'll be silly and obvious once found, but right now i've no idea... what if you search for other no fqdn entries?
I tried livecd (Elive) and got the same 212.68.205.66 address. I have no idea where it comes from
well the only next step i'd look towards myself is a packet capture of the dns request to ensure that it's definitely the remote server replying... run "tcpdump -vn port 53" then do the dig again.
well the only next step i'd look towards myself is a packet capture of the dns request to ensure that it's definitely the remote server replying... run "tcpdump -vn port 53" then do the dig again.
OK, nothing more to add really, but googling for that IP http://www.google.co.uk/search?q=212.68.205.66 gives a number of other random things being resolved to that IP, which is owned by a belgian telco i think.
in terms of how to avoid it, if you set up a local dns service, even somethign as simple as dnsmasq and use that service as the first port of call you wouldn't encounter this problem, but i'm really intrigued as to what's actually going on now though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.