Ubuntu Networking :: Set The Wins Name Resolution Timeout?
Dec 18, 2010
I am experiencing horrible name resolution problems in Maverick. I believe this problem is related to having the following line in nsswitch.conf:hosts: files wins dnsI do use Samba and access windows shares in my network (that's why wins precedes dns. I was wondering if there is any way to setup a wins lookup timeout so it can fail quickly enough to try to perform the lookup using dns.
I'm trying to configure my ubuntu 9.10 to access a lan. In the gnome network manager I can find all the blanks to fill with the ip, subnet mask, gateway and dns, but I can't understand how I can specify the wins server ip.
I have a CentOS 5.3 box running Samba and OpenVPN. I have the Samba server setup as a WINS server and OpenVPN pushes the WINS server to clients when they connect. Everything is working great except for one problem. When I connect to the VPN using a Windows machine at a remote location, I can ping all the host names of computers on the VPN network no problem at all. However, when I ping the host name of the OpenVPN server it resolves to 192.168.122.1. All my machines are on a 10.x subnet and I have no idea where this ip is coming from. I've checked the hosts file, lmhosts, etc. and can find no reference to this 192.168.122 subnet.
I think I recall seeing this 192.168.122.1 ip when I had installed the Virtualization group and it created a virtbr0 network bridge with that ip. I've since removed the Virtualization software and deleted that bridge.
I set the default os to boot as windows 7 with a timeout of 1 second. I thought that this would be enough time to switch os ubuntu when i need to, but I am unable to. How can i reset the timeout to 3 seconds? I also cannot view the ubuntu partition within windows because of ubuntu's file system.
I have been using samba with WINS enabled for a few years now. I know all setting in my smb,conf were and still are fine. For some unknown reason my samba shares got wacked. I have no idea what cause it but I could not fix it. So I decided to take the plunge and install a smb client. I remember thinking, I'm going to regret this... After the install of system-config-samba It would not run, I saw a few forums talking about missing dependencies
Code: sudo aptitude install samba samba-common-bin system-config-samba smbfs smbclient After words my permissions got fixed. So I was quite happy. and Wins was working great with all shares set up correctly. Than after a reboot WINS was not working. So I tried to clear out the WINS data files and restart smbd, but now it wont create my WINS.dat file. I dont see anything in the logs that helps me here, any ideas?
Currently my shares are good, samba is working fine, but WINS will not works. From a windows box I get "There are no entries in the list." from a net view.
I'm using Debian 6.0.0 (Squeeze), I have other 2 PCs with Windows (XP, WIN7) and all PCs are in a network with a DCHP (an ASDL Router).From Debian PC if I open the "File Browser" -> "Network"I can see all Windows computers by name (so samba can resolve the NetBIOS name), but I can not recover the IP
I have been working on this for about 4 hours so I am extremely frustrated. I am trying to access windows shares from my linux box. I will worry about getting my own data shared afterwards.
I was having the authentication problem described by swerdna's sticky, and it was solved by the upgrade. However apparently that is not the main problem. samba is trying to use my ISP's DNS to resolve the internal network names. I have a vague conceptual understanding of WINS and NetBIOS - but Windows does this without any extra steps. Do I need to configure my machine to also act as a WINS? how do I do that? In my searches I found a thread about "why do windows to linux users give up?" this is why.
Something is wrong with the networking on this Ubuntu system. It has been assigned the LAN ip address 10.1.10.10 From another Ubuntu desktop, I can: ssh myself@10.1.10.10 ( from 10.1.10.143 ) and I can login without any problems. I can ping 10.1.10.10 ( from 10.1.10.143 )
My local area network is always time out for few seconds.I have check my memory with "free -m"There are still left 200+ mb left.I am hosting my own ubuntu server, and I share the same internet line with my server and pc. when I access to LAN, I need to type 192.168.2.2, at outside I can access to [URL]It is only the LAN access timeout, but when I access at outside, I didn't face this problem at all.
I'm trying to get granular with TCP, one of the answers I can't seem to find is. When a client server connection is lost without closing, how many duplicate ack's are sent until the session is closed. I've kind of figured out the the sender will continue to retransmit a segment for about 9 mins if not Ack'd. going from 1.5,3,6,12,24,48 and the continuing with 64 seconds up to around 9 minutes before is resets the session. but whats happening at the other end.?
I have a named server that has forwarders setup. Quite often the dns server where I forward would not respond right away and the query would fail. It would then also cache the empty result for 3 hours and I would need to restart the service or clear the cache. how would I be able to specify a value for forwarders timeout, just like on Windows DNS.
I have centos 5.3 server and the problem is the ssh timeout time set to 10 minutes of inactivity. I want to set the timeout to 1 hour, how can I set the timeout time?
My Fedora router has three nic's, one for the internet, one for lan and one for the wireless network, which uses hostapd. I have set up samba in order to enable windows file sharing from wireless lan to wired lan. Using the samba documentation I have enabled the wins server and wins proxy which should allow met to browse the shares across the networks, which theoretically should do the trick but it doesn't work as expected. I can see the pc's from the other network using windows neighbourhood, but as soon as I access one of them it fails saying that "network path could not be found" or something like this. Tried using windows 7, windows xp and linux for browsing but the result is the same. As firewall I have shorewall and the samba specific ports are enabled for both networks. How to setup samba for inter-network browsing?
I have attached the global config section from smb.conf file: Code: [global] server string = Samba Server interfaces = eth1, lo, wlan0 bind interfaces only = Yes security = SHARE log file = /var/log/samba/%m.log max log size = 50 .....
I'm using Kubuntu 9.10, my pppd version is 2.4.5 and pptp is 1.7.2 I'm trying to connect to the iPredator VPN service, but I keep running into problems with LCP. I've tried using knetworkmanager, nm-applet, kvpnc and plain old text-based configuration to no avail. Here's a snippet of pppd's output:
[Code].....
(I've got "defaultroute" in my /etc/ppp/peers/ipred config file.) Any ideas what could be causing this? Could it even be my router? It claims to support PPTP, but considering it claims a lot of other things which aren't true, I wouldn't be surprised if it was the culprit.
I am using Witopia VPN services and used to work just fine on my Ubuntu 10.04. All of the sudden it stopped working. Here is the log:
Code: May 17 00:56:58 saeed-laptop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.openvpn'... May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 11477 May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' just appeared, activating connections May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN plugin state changed: 1 May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN plugin state changed: 3 May 17 00:56:58 saeed-laptop NetworkManager: <info> VPN connection 'VPN Connection' (Connect) reply received. May 17 00:56:58 saeed-laptop nm-openvpn[11482]: OpenVPN 2.1.0 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jan 26 2010 May 17 00:56:58 saeed-laptop nm-openvpn[11482]: WARNING: No server certificate verification method has been enabled. See [URL] for more info. May 17 00:56:58 saeed-laptop nm-openvpn[11482]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts May 17 00:56:58 saeed-laptop nm-openvpn[11482]: WARNING: file '/home/saeed/Documents/config/VPN_Connection.key' is group or others accessible May 17 00:56:58 saeed-laptop nm-openvpn[11482]: /usr/bin/openssl-vulnkey -q -b 1024 -m <modulus omitted> May 17 00:56:58 saeed-laptop nm-openvpn[11482]: LZO compression initialized May 17 00:56:59 saeed-laptop nm-openvpn[11482]: RESOLVE: NOTE: (address omitted) resolves to 12 addresses, choosing one by random May 17 00:56:59 saeed-laptop nm-openvpn[11482]: UDPv4 link local: [undef] May 17 00:56:59 saeed-laptop nm-openvpn[11482]: UDPv4 link remote: [AF_INET]IP address omitted May 17 00:57:39 saeed-laptop NetworkManager: <info> VPN connection 'VPN Connection' (IP Config Get) timeout exceeded. May 17 00:57:39 saeed-laptop nm-openvpn[11482]: SIGTERM[hard,] received, process exiting May 17 00:57:39 saeed-laptop NetworkManager: <info> Policy set 'Auto Belkin' (wlan0) as default for routing and DNS. May 17 00:57:51 saeed-laptop NetworkManager: <debug> [1274043471.002409] ensure_killed(): waiting for vpn service pid 11477 to exit May 17 00:57:51 saeed-laptop NetworkManager: <debug> [1274043471.002596] ensure_killed(): vpn service pid 11477 cleaned up
I removed IP addresses. I think its a recent update might have created this issue. I tried re-installing openvpn and network-manager-openvpn.
I'm trying to configure internet access using KDE network manager. Added new VPN connection, set gateway and other options but connection breaks. Here is /var/log/daemon.log
Code: Jul 1 17:35:22 dvinokurov-desktop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'... Jul 1 17:35:22 dvinokurov-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 1761 Jul 1 17:35:22 dvinokurov-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections ..... log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request' Jul 1 17:36:02 dvinokurov-desktop pptp[1773]: nm-pptp-service-1761 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
As I understand the main problem is in "(IP Config Get) timeout exceeded".
My spouse bought me a Seagate BlackArmor NAS 110 recently, and I finally had time to connect it to our home network. I have samba installed, and my linux box (opensuse 11.1) can see the NAS, but when I try to open the network connection I get a "timeout on server" message. I bumped up the network connections, but still no luck. The odd thing is that last night I was able to connect and see the public folders for awhile. And her Windows Vista computer seems to connect without a problem after using the seagate software.
I'm no network admin, and have exhausted my resources on this.
I installed linux 2010 mandriva on a (embeded) system,and i run several server programs on it that accept connections from clients. clients are connected to server(s) and every things is ok, but when i go to home and back to my work tomorrow, i see no data can be sent to server programs and this problem exists until i restart the server programs or reconnect tcp client programs. this problem occurs even when both client and server programs executed on the same (embeded) system.why this happens? i checked by netstat and see that server ports exists in the list(and not closed by kernel) but it seems kernel or an application above it prohibit data transmission.i changed the OS and installed ubuntu but the problem exists.
I am trying to set up an ssh server on my Debian squeeze box so that I can access it remotely when I'm not at home. I connect to the internet through an at&t 2wire modem/router. First off, I *can* ssh into the machine from inside the local network, e.g.
[Code]...
Nmap done: 1 IP address (1 host up) scanned in 2.12 seconds Playing around with Nmap, I also found that it only sees port 50001 as open.
I am facing issues on few machines but rest all are ok. They have the same config but I don't know what is wrong. I tried as much as I could but couldn't fix it. Here is the rpms installed on this client
[code]...
The same config is working for all clients but have problems with few machines. May be I am doing something wrong in config or testing at very basic level.
I have a user using Mac OSX and ssh-ing to a couple of Redhat servers, one running RHEL5 and the other RHEL6. The user's connection seems to be timing out after 60 minutes or so of inactivity. The user is on the same subnet as the servers. Both servers have the same sshd_config files with the following entries with regards to timeout:
In a nutshell, his office Mac keeps getting dropped off both machines. Other machines, including the Mac he logs in with from home doesn't get timed out and keep the connection open. The log files are unremarkable and the switch port shows no errors
I am using select to read the data from socket. on a load of 25 req per second, for some req i am getting the timeout in select (returning zero), but i am able to see the data on TCP using wireshark. kindly suggest what could be the possible reasons.
Samba doesn't seem to disconnect on shutdown except by timing out, causing a loooong Lucid shutdown. (I can disconnect manually before shutdown by unmounting the Samba shares, and shutdown is then very fast.) Apparently Network Manager is somehow involved. I've installed a NM shutdown Samba script which works for the first user account, but not for the second user account (which was created and then put into the admin group).
I am having a problem with 5.4 that I did not have with 4.5. The problem happens only sometimes but in specific instances. Basically a summary of the problem is that certain network transactions timeout. The specific instances are with wget, rpm, http. The problem usually, but not always, occurs with pptp stuff. (NOT running pptp but getting pptp stuff). For instance, the following command, which finishes in seconds on non-5.4 OS's: wget [URL] downloads about 20% then gets stuck. About 5 minutes later it downloads another 20% and then gets stuck, etc. The same thing with rpm: rpm -ivh [URL] waits about 3 minutes and then gives an error. I think it does the same thing as the wget but wget will keep trying, while rpm gives up. The error from rpm: Retrieving [URL] ..five minutes later:
I can wget the above as I mentioned before and install it that way. Before I do it, yum works fine. Afterwards, yum exhibits the same behavior of timing out (because it is using the pptp repository). Also visiting the pptp web site from Firefox times out on certain pages. I originally thought it was some problem with the pptp site, but I notice that log into hotmail.com. Does the same thin (fine on other operating systems). A view with Wireshark on the wget (pptp) shows the my machine receiving a reassembled TCPPDU from 216.34.181.96 (Sourceforge), sending an ack, receiving a reassembled PDU, sending an ack, receiving, sending followed by the 5 minutes or whatever of nothing. Then sourceforge sends an RST and a SYN and the process is repeated.
When I put the machine directly on an AT&T IP connection (12.147.X.Y) everything worked fine. Same with Comcast on a direct link. The times I am having problems is when our router is hooked up to a Comcast IP (70.88.X.Y) and assigns 192.168.5.X addresses to our machines. So when I was doing the above from 192.168.5.27 going through the router through Comcast is when I had the problem. So it is probably something with the router, but it is hard to figure out since CentOS 4.5 and Fedora do not exhibit this behavior, nor does 5.4 on most sites (mail.yahoo.com for instance). I did verify, at least from what I could, that ICMP type 3 and 4 are not being blocked. If they were, the same problem would happen on other op systems. And I was able to ping, albeit just locally, but we looked at the router settings and ping was not blocked.
I have got pptpd linux server and pptp linux client which connects successfully. Now I want setup idle time (inactive) in pptp linux client so that if the pptp tunnel is inactive say for example 5 minutes it will be automatically disconnected. how can do that, is there any built in feature on pptp client?
Im running several linux boxes, all redat enterprise linux. Versions vary between 4 and 5.
Since we have problems with our DNS servers, Im trying to lower the DNS resolve timeout to the minimum to avoid system hangs etc.
However, it seems that nothing I do have any effect. when Im running time nslookup whatever.com or time host whatever.com while my first DNS server is down, it always takes about 1.09sec as opposed to 0.09sec when the first server in the list is available. I tried playing with options timeout:X attemps:X but it simply doesnt seem to do anything, even if I set it to high values. Some internet posts suggested having timeout:0.5 or less, but that also doesnt seem to do anything.
when I use: options timeout:0.3 attempts:1 - doesn't do anything. options timeout:1 attempts:1 - doesn't do anything. options timeout:10 attempts:3 - doesn't do anything.
It doesn't work when I put it in the first line of the file. It doesn't work when I put it in the last line of the file.
It doesn't work if I put it in "export RES_OPTIONS=options timeout:X attempts:Y" I tried it on 2 different machines.
when i type the command ssh node2@ip the terminal hangs up a bit then an error message stating that connection timeout but here is a thing: i cant ping to node2 but i can terminate the ping manually using ctrl+c when i terminate the ping usual message appears stating 10 packets transmitted, 100% loss ps: when i go to node3 and ssh to node2 it works fine and also i can ping from node3 to node2 very fine. and the firewalls are down at all nodes