Networking :: Set The TTL To 2 Days For All Stuff Cached By Dnsmasq?
Mar 20, 2011
I have 2 questions:
1. How can I set the TTL to 2 days for all stuff cached by dnsmasq?
2. When I go to [URL] from my browser and then execute [URL] the query time returned is > 0 ms. When i execute it again it is 0 as it should be. So is dnsmasq not caching the domains looked up by my browser or what? in /etc/resolv.conf I have only 127.0.0.1 and for the upstream servers I have a different file that is only used by dnsmasq.
View 1 Replies
ADVERTISEMENT
Nov 12, 2010
I am experiencing severe DNS delays today, so I tried to install DNSMASQ by following the instructions given on several pages on the web to make it function as a local DNS cache.
The installation was successful, and after editing the configuration files as instructed, I now have a working DNS cache on my computer.
However, it seems that the addresses are not cached for a long time ; for a given domain, the speedup lasts for a few minutes. If I try to access a previously visited domain once more after several minutes, a new (slow) external lookup is made.
Since websites' IP addresses are not changed every five minutes, would there be a way to tell DNSMASQ to keep the IPs in the cache for a long time (several hours at least) ?
This is very important for me because the DNS lag that I am experiencing makes external lookups last 10 to 20 seconds.
View 1 Replies
View Related
Mar 31, 2011
I got this part from my script working that it will delete a folder is from 8 days agoEightDaysAgo=`(date --date="8 days ago" +%d-%m-%Y)`rm -rf $EightDaysAgoTarHowever I need to remove files that are older than 8days for example if the script is'nt run for a day it will remove both the 9th and 8th day one not just the 8th day one. If I'm making any sense lol
View 3 Replies
View Related
Dec 30, 2010
I am running dnsmasq in debian lenny, wvdial connecting but dnsmasq doesn't work, the /var/run/dnsmasq/resolv.conf file is empty this is /var/log/syslog:
The /etc/resolv.conf and /etc/resolvconf/run/resolv.conf is ok:
This is my /etc/dnsmasq.conf:
[url]
View 3 Replies
View Related
Dec 27, 2010
ubuntu: 10.04dnsmasq: 2.52-1ubuntu0.1I've installed dnsmasq and it is performing DNS duties correctly. I'd like to limit access to the dnsmasq service to a specific address or interface. I've tried adding variations and combinations of the following to /etc/dnsmasq.conf:
Code:
interface=eth0
and
[code]....
View 1 Replies
View Related
Feb 12, 2010
EDIT: The problem is more basic than dnsmasq. On testing to see if the nameservers are reachableCode:root@ps1:~# ping 218.248.255.146connect: Network is unreachablePost title pre-pended with [DO NOT REPLY] dnsmasq on a recent Slackware 13.0 install is not resolving. Usually dnsmasq "just works". I have tried all the problem analysis techniques I know and am stumped.
First the symptoms:
Code:
root@ps1:~# vi /etc/dnsmasq.conf
[code]...
View 1 Replies
View Related
Jun 11, 2009
I have configured a Fedora 10 server on a mixed Win / ix network but am unable to get DNS to resolve on my Fedora boxes.My DHCP is provided from a D-Link 108G Router - but this will not provide DNS.Therefore I have tried to configure dnsmask to provide just DNS and not DHCP. I can ping around my 192.168.1.x network by IP but not name
View 4 Replies
View Related
Mar 4, 2011
This is the scenario: gentoo box (distro shouldn't be relevant here) and win7 box. Gentoo box is dhcp and dns server, via dnsmasq. From win7, I can ping gentoo by both ip and name. No problem there. From Gentoo, I can ping win7 by ip, but not by name. The dnsmasq log seems to receive the name ok, it's "Tere-PC". I have been looking around for many hours now and I know there must be something simple I am not taking into account.
Code:
dnsmasq-dhcp: 55480937 available DHCP range: 192.168.0.50 -- 192.168.0.150
dnsmasq-dhcp: 55480937 client provides name: Tere-PC
dnsmasq-dhcp: 55480937 vendor class: MSFT 5.0 .....
Code:
# ping Tere-PC
ping: unknown host Tere-PC
Is there any way that dnsmasq, which is supposedly a dns server, will link this name to the given ip?
View 1 Replies
View Related
Nov 2, 2009
Since latest large update to CentOS 5.3, which also upgraded to 5.4, I have problem with dnsmasq. CentOS is real server on real hardware (not virtual). I use dnsmasq as dhcp server as usual. On hardware startup or reboot, these lines are included in /var/log/messages
Nov 2 19:06:16 server avahi-daemon[2965]: New relevant interface eth0.IPv4 for mDNS.
Nov 2 19:06:16 server avahi-daemon[2965]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.0.1.
[Code]....
View 14 Replies
View Related
Dec 20, 2010
I installed dnsmasq to speed up dns querry for my network. i didn't really change any thing in my dnsmasq.conf file. i only just put my upstream dns addresses in resolv.conf. i have dchp running and configured to issue the ip address of the system running dnsmasq as dns ip to the dhcp clients. But i have noticed that if i do ipconfig /all on my windows clients, instead of the dnsmasq server ip showing, i still see the dns ip of my upstream provider. by this, iam assuming that the client are not using the cache even though the service is running on the server.
View 6 Replies
View Related
Mar 17, 2010
I'm sharing the wireless signal (wlan0) on my fedora 12 machine.However, when the computer starts up I have to execute:> service dnsmasq stopOnly after this, will the computer share the internet signal (through eth0).Why is that? Should I uninstall dnsmasq?I've already removed it from chkconfig:> chkconfig --del dnsmasq
View 4 Replies
View Related
May 26, 2010
I did a yum update this morning that included a dnsmasq update. Subsequently, for an unrelated reason, I restarted dnsmasq, but it failed because /etc/dnsmasq.d didn't exist. It looks like my /etc/dnsmasq.conf file now includes "conf-dir=/etc/dnsmasq.d" at the end. Since dnsmasq was starting and I didn't remove dnsmasq.d, I assume this line was added by the update. Commenting the line resolves the issue.
An alternative hypothesis, given that I don't really know what the state of /etc/dnsmasq.conf and /etc/dnsmasq.d/ was before the update, might be that the directory did exist, but was removed by the update. I find this the least likely of my 2 stated hypotheses. (There are other hypotheses, but I think they are even less likely). Am I correct is concluding the conf-dir line was added by the update? If so, shouldn't the updated RPM create the directory during install?
View 6 Replies
View Related
Jan 9, 2011
I got a CentOS server setup as a dhcp server using dnsmasq. I followed this guide more or less: [URL] So, the problem seems to be concerning the DNS server on the clients. In windows I get the "limited connectivity" icon for the network, and when I select troubleshoot it says the DNS server does not respond. Issuing 'ipconfig /all' clearly shows the IP of the CentOS machine as the DNS server, which should be correct, yes?
ETH0 is working as WAN connection and that works great.. no problem with the WAN connection at all on the CentOS machine. ETH1 has the IP 192.168.0.1 and mask 255.255.255.0 When starting eth1, it sometimes says that it can't start eth1 because the IP 192.168.0.1 is already in use.. but that is most certainly not the case. Maybe there's some kind of issue here that messes with the DNS? What's mind boggling is that it works great on a linux machine (dhcp client) and on a windows xp machine. but it does not work on the windows 7 laptop and a vista laptop and a pda device.
View 1 Replies
View Related
Jan 1, 2010
how to change the IP range provided by default by Network Manager / dnsmasq from 10.42.43.-- to something else?
I have setup a working network using a Bell wireless modem (Canada) and Network Manager in 8.10, 9.04, and 9.10.to do Internet connection sharing. In 8.10 the only way I could get it to work was with WICD and KPPP, many hours spent on this one. I got it to work in 9.04 and 9.10 using network manager, but certainly not out-of-the-box. If someone would like some tips on how I did it, in each case, let me know.
My current challenge is trying to set the dhcp range of dnsmasq (which I am 99% sure is what is handing out addresses) from th 10.42.43.-- address range to a 192.168.0.-- range.
I HAVE edited /etc/dnsmasq.conf and can get the edits to this file to break the setup (dnsmasq will not start) but have not been able to get it to change the IP address range.
It seems that either this file is ignored, or overridden by some other process. I have looked at the very good post at [URL] about dnsmasq but this does not do the trick.
By the way, the way I can get this to work is to start NM, establish my cellular internet connection, then kill dnsmasq then establish my ICS network (on eth0). If I don't kill dnsmasq, then it does bring up the connection, but it then shuts down in a matter of seconds. It is all very manageable using a launcher (kdesudo pkill dnsmasq) on the task bar, but not all that elegant.
the IP range and where this is provided to Network Manager or the network itself is my real question now.
View 7 Replies
View Related
May 5, 2010
I'm trying to get the Windows machines on my network to access hostname.local addresses. I want to do this without setting up extra software or settings on the Windows computers.
I already have dnsmasq on my server handling all DHCP and DNS requests. How can I get dnsmasq to return an IP address for a .local address?
View 9 Replies
View Related
Jun 3, 2009
Can anybody tell me how I can synchronise files between two computers in a network that have been modified or created within the last 60 days?
View 3 Replies
View Related
Aug 5, 2011
I have configured opendns on my adsl router. So 192.168.1.1 was the first nameserver in Network Managerbut I often faced name resolution issues, so I configured 4.2.2.1 as the first nameserver, 4.2.2.2 as the second & 192.168.1.1 as the third.Problem is with the above configuration everything works well for a few days then again name resolution stalls. And again I change the sequence of the nameservers or insert a new one & again it works for a few days. I am tired of doing that again & again.
View 8 Replies
View Related
Apr 27, 2011
I have the following problem with sendmail on F14 (had the same on F13 already):
I have a network setup using bridging which is controlled through traditional ifup/ifdown (because NetworkManager can't handle bridging). My sendmail configuration differs from the Fedora default only by having a SMART_HOST relay. The queueing interval in /etc/sysconfig/sendmail is the default (1h).
When my network connection is up, sendmail normally sends email through the relay immediately. Sometimes I have to interrupt the connection for a few minutes. When my network connection is down, sendmail starts queueing email (OK this far). When the network connection comes back up, I'd expect sendmail to restart sending mail through the relay again. But sometimes, that doesn't happen. Instead, sendmail keeps queueing my mail infinitely (I have seen it happen for several days) until I finally notice that my email isn't received, and run sendmail -q by hand (by that time, my boss is already angry that I'm not responding to his email). In that state, even new mail is queued rather than forwarded by sendmail. It appears that the only way to stop that behavior is to restart the sendmail service.
View 1 Replies
View Related
Oct 25, 2010
When i try to login with AD credentials on Ubuntu 10.10 and the user has is password almost expire, the gdm hang and display the message "your password will expire in ... days"
If i login with any other user without that restriction, it works flawless. does anyone know what configuration file i need to change to bypass that problem.
View 2 Replies
View Related
Nov 4, 2010
i'm trying to set up samba so that i can connect to the printer in the den since we have wireless access. also, i can see my virtual box on the windows xp home ed desktop, but can't access it.so, how do i go about setting up samba so stuff is visible between my ubuntu machine and my families windows orientated network? i'm having a hard time finding anything on videos too. i'm taking a break from the remastersys stuff so i can get the more important things done, such as connecting my ubuntu machine to my families windows network. i don't know if the printer is wireless or not, but regardless, i can't find it.
View 9 Replies
View Related
Jun 19, 2010
I can browse smoothly without any speed problems at all but all update stuff like apt-get , software centre etc get stuck. As in they get 0kbps fr lk a long time n then move on n then agn 0kbps. Until the downlaod is done!
View 2 Replies
View Related
Feb 19, 2010
I just started setting up a linux box in the office...I have some experience with ssh commands but not setting up a linux system and stuff.The box is connected to our network but I have no clue how to make windows & osx talk with it. How can I go by doing that and also setting up an apache server to be able to connect through network. Right now I have apache/linux/mysql running it works when i go to localhost, but I would also like to let all the computers in office to access it. I would guess that will deal with virtual host which I know how to setup. I just need to setup an IP.
View 19 Replies
View Related
May 11, 2010
Would it cause any issues to delete the cached archives from the installed packages? I have almost a gig of space being taken up and would like to get the space back.
View 3 Replies
View Related
Apr 12, 2011
I have heavy swapping going top and free are indicating a lot free memory in cached form.Why does the kernel not use this memory instead of killing my desktop by swapping like crazy.
View 6 Replies
View Related
Jul 23, 2011
Apparently, Ubuntu (and Xubuntu) keep copies of all thumbnails ever loaded, cached in ~/.thumbnails. To me, this is creepy and can be bad from a security standpoint. Is there any way to have all thumbnails loaded on-the-fly, but not to have them ever cached on disk? I tried symlinking ~/.thumbnails to /dev/null, but this disabled thumbnails entirely.
View 3 Replies
View Related
Nov 18, 2010
I ask question about my iPhone 3GS here because it run in linux too.I think it's Debian.it if u happen to know the answer. I want to keep cache downloaded from Cydia for reinstalling later.
View 4 Replies
View Related
Feb 3, 2010
I've set cairo-dock to start but also kde somehow caches the desktop state while shutting down. Can I avoid cairo-dock to be cached at shutdown in kde?
View 6 Replies
View Related
Oct 23, 2010
I'm not sure if this is a problem with Ubuntu or with my router(s).
When I first installed Ubuntu about 6 months ago, I was able to connect to my wireless network without any problems. Becaue it's a laptop, I turn it off when I'm not using it.
But, starting about a month ago, if I don't use my Ubuntu computer for a few days at a time, it won't "see" my broadcast SSID when I turn it on. The SSID for my network just doesn't show up on the list of SSIDs that it detects in the area (but it still detects other people's SSIDs).
If I connect Ubuntu to my wireless network every day, it will automatically connect to my network without a problem, but if I don't use my computer for a few days, then it stops being able to "see" my SSID.
In order to connect, I have to connect to my router from my hardwired Win 7 desktop PC via 192.168.1.1 and re-save the wireless settings without changing them (the router is set to broadcast my SSID). Then my Linux machine is able to see my SSID again and connect wirelessly.
The problem is obviously with the router, right? So I bought a new router, and have the exact same problem!So now I'm not sure any more if the problem is with Linux or with both routers.
View 1 Replies
View Related
Mar 20, 2010
I'm using openSUSE 11.2/KDE 4.4 and Konqueror is behaving strangely lately. That is, when I click an entry in RSS Now widget, Konqueror opens, but instead of going to the web, it displays the cached version of the page (i.e. from /var/tmp/kdecache-[username]/krun/...).Initially I thought it is related to the widget (RSS Now), but the same thing happened when Konqueror was called by another program (Google Desktop > preferences): it opened the cached version of the page instead of what I've expected (localhost on some port).As I see these things, it seems there is a setting making Konqueror/KDE to preload some pages (I guess it's related to a KDE service). The problem is it subsequently displays the cache, not the online version.
View 8 Replies
View Related
Mar 17, 2011
I have an LDAP server holding user/pass/group for many users. Due to network issues, the server sometimes is unreachable and clients cannot login, current sessions usually freeze after a while. All client have ubuntu 10.04.2 x64.
I have went through the outdated howto to cache the LDAP credentials.
I setup the required packages
daily cron "nss_updatedb ldap"
and edited '/etc/nsswitch.conf' to have "files ldap [NOTFOUND=return] db" for both passwd and group.
[Code]....
View 2 Replies
View Related