OpenSUSE Network :: No DNS Caching Until Manually Restart Dnsmasq?
May 29, 2010
My upstream DNS server is a bit slow, so I've installed the dnsmasq cacher locally. I have the service starting on runlevels 2, 3, and 5. But I can tell by Firefox's behavior that dnsmasq does not work upon boot. Firefox lets its own DNS cache expire after 60 seconds. When I do my second Google search five minutes after my first, the second DNS lookup for www.google.com is just as slow as the first.If I manually restart the dnsmasq service, I get the fast name resolutions I expect.
I've trying to get dnsmasq working as a combined dns and dhcp server. It's infuriating so far... In short, the DNS works fine for anything added to /etc/hosts, and the dhcp works fine, but the dhcp is not updating the dns with hostname information from clients.
The outcome of this is that i can only ping a node by hostname if i know it's address, which means setting a static dhcp allocation and putting the hostname into /etc/hosts manually, which is very annoying and kind of defeats the poit of dhcp. There must be a way to get dnsmasq to update the hosts file, surely The clients aren't using fqdn's if that matters, and i think i've tried every combinination of "expand-hosts" and "domain=" following is the dnsmasq config file contents:
I have a DNS server (dnsmasq v2.55) at the center of three subnets: x.y.1.0/24, x.y.2.0/24 & x.y.3.0/24. dnsmasq does a grand job of issuing a suitable DNS server address with the DHCP option 6. So, machines on subnet x.y.3.0/24 are told that the DNS server is x.y.3.2, machines on subnet x.y.2.0/24 are told that the DNS server is x.y.2.2 and machines on subnet x.y.1.0/24 are told that the DNS server is at x.y.1.2. Even though the DNS server is the same box (although with three nics).
Now the question is: How do I make dnsmasq respond similarly to name resolution requests? So that when: Machines from x.y.3.0/24, ping <name of DNS server> dnsmasq returns x.y.3.2, Machines from x.y.2.0/24, ping <name of DNS server> dnsmasq returns x.y.2.2, and Machines from x.y.1.0/24, ping <name of DNS server> dnsmasq returns x.y.1.2.
Currently, the DNS server returns the IP address that is assigned in /etc/host. Which, of course can be changed, but via that mechanism, will always be wrong two out of three cases.
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:
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:
I have installed 11.3. Now for DSL I use PPP over Ethernet. I have configured DSL via YAST and it works fine. The connection is set at boot.
Now I want DSL to connect manually not at boot time. I did changes in the YAST/DSL to start Manual and rebooted. Once rebooted how do I connect?? Like any button/applet ??
once upon a time i manually entered my ISP's DNS servers in /etc/resolv.conf Now i have changed ISP, my old DNS setting are still present even though i have edited my resolv.conf file to my new ISP's DNS servers. Internet still works fine, i just want to use my new ISP's DNS as my old ISP will be closing its doors very soon. Am i doing something wrong, or better put.forgot to edit another file..? I did do this a while ago, so i apologise in advance for my incompetence. I'm stilling running 11.1 / Router has DHCP configured. my resolv.conf file is below
Code: cat /etc/resolv.conf ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST
I'm building a wireless router based on OpenSuse 11.3 I have experience with Debian, but here I'm confused howto manually configure network interfaces. I need my wireless card to work in master mode, so I need to place
I'm using opensuse 11.3 32bit with LXDE. I have configured an apache tomcat server listening on port 8080. Yast was used to open udp 8080 and tcp 8080 in the firewall by manual entry under the advanced button of 'allowed services' menu.Another system was used to access the tomcat server via a firefox webbrowser. The attempt was unsuccessful. The url used was [URL]. firefox webbrowser keeps showing'connecting ...' until timeout. I'm assuming that inspite of the specified port openings in the firewall, it is somehow ignored. If I were to disable the firewall, then I can access the tomcat server with the firefox webbrowser.
I am trying to get more control of my small office network. It consists of several windows workstations, a debian box, and a ZyXEL P-660HW-D1 router, Right now, the only way to reach the debian box from other computers is to type in its ip address.
The goal is to be able to reach the box by just typing ://debianBox into my browser, though ideally I want to set it up to be something like ://debianBox.officenet, and to also reach other people's computers by typing ://mattBox.officenet and ://fredBox.officenet
The Zyxel router has a LAN page with a DHCP Setup tab with fields setup like so In the past I was able to mange this using an Orange router, but now I have to use the ZyXel.
So I installed dnsmasq on the debianBox, but I do not know how to configure it to get the results. I want and still get internet fromthe Zyxel router.
In the etc/hosts file of the debian box I added 192.168.69.15 debianBox, and for testing on my windows machine I set the primary dns entry of the Ip4 connection to 192.168.69.15 as well, but typing ://debianBox in my browser still gives me not found.
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.
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
I'm running into a little trouble trying to configure bind as a caching dns server on centos 5.6. for debugging purposes I've got iptables and selinux turned off, but I can't get see the dns service on my local network. on my server itself I can run nmap against it and see that port 53 is open, but if I try it from another computer on my network the port is closed.
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.
When I change something in network setings using yast (for example hostname) it failes to restart the network. I have to start knetworkmanager manually from the terminal. Does anyone get the same type of behaviour ? I'm attaching the relevant yast log.I'm using 11.3 KDE 4.5.4 2.6.34.7-0.5-desktop kernel.
I installed 11.04 via live install, and was connected to my home network/Internet. After the install finished and I restarted my pc, my network was not available nor internet connection. In the network manager I cannot access the "wired network" tab.
I've set up a caching nameserver on my laptop running Fedora 11. The problem with this is that NetworkManager always overwrites the entry that points to the local nameserver. NetworkManager no longer respects /etc/dhclient.conf or at least its scripts run after dhclient.conf. Also it doesn't respect /etc/sysconfig/ network-scripts/ifcfg-* setting of DNS{1.2}.The man page of NetworkManager describes scripts that run in /etc/NetworkManager/dispatcher.d which can be run when interfaces are brought up and down. I've written a script that will put the entry needed for the local nameserver.
I have a suspend problem in my laptop. Sometimes, when resuming from suspend, the network adapter is down (that is, the network does not work and the light of the network adapter is off). Restarting the network service doesn't work, because I think that the system forgot about the hardware, and probably the driver should be reloaded.Does anyone knows how to do that?(ps. /etc/init.d/networking restart does not work, because the hardware driver is not being recognized anymore).
I have a SMB share being mounted during boot using a /etc/fstab entry.All that seems to work fine, but on shutdown or reboot I found that the system hangs for a variable period trying to unmount the share. It appears from the log that the unmount is happening after the network connections are closed.Is there someway around this, or is there some other way I should be mounting the share so that it is closes successfully at restart or shutdown?
I installed openSUSE on my notebook with an usb drive using openSUSE 11.4 KDE LIVE iso. The installation process set the name to "linux-ygrl" which I don't really like. (I probably just missed the setting during the installation.). I tried to change it through YaST -> Network -> Hostnames and I set everything where needed to the new name and restarted but the changed weren't applied. I searched the web and found out about the /etc/HOSTNAME file which still contains "linux-ygrl". Now I could change it manually but I was wondering if there is a GUI for it? (I mean, openSUSE has for alsmost everything a GUI.
I use mt-daapd music server to stream music to a couple of network music players (which use UPnP protocols). Recently (last month or so) I have found that on restarting my ubuntu system I need to manually restart the avahi-daemon in order for the music players to be able to 'see' the music server. I think avahi-damon is running when ubuntu first starts up. The output of a ps aux shows:
[Code]...
I'd like to understand why I need to restart the avahi-daemon and either solve this or learn a way to automate restarting it on system boot up so I don't have to do it manually each time. My system is ubuntu 9.10 64 bit and the version of avahi-daemon is 0.6.25
I'm trying to join a wireles lab that I've setup with WEP encryption, but I'm unable to join. (I've tried on two different distros: ubuntu, and backtrack) same result.
Does anyone havea good tutorial on Fedora's network scripts, how to edit them, in what order they are called, etc. What I want to do seems simple, but something in the bootup keeps changing it. Right now, I have an image of Fedora Core 7 created in a server with 2 Ethernet cards. I need to specify static IP addresses for each card. Thats simple, and I did that. Now, heres the tricky part, I need to be able to clone this image and place it onto other exact duplicates of the hardware, and have all of the settings stay the same.
What happens here, is that eth0 and eth1 are stored somewhere as devices, and upon boot on a different machine, the Fedora will mount new network cards(different MAC addresses) as eth1 and eth2. It then mvoes my ifcfg-eth0/1 to a backup, and creates two brand new network setting's files, which initialize to DHCP. This creates an issue, becuase these machines do not have monitors nor keyboards attached, nor is their a DHCP server, so its a pain when I swap the machine out, to have to go in with a keyboard/mouse/monitor and reconfigure the network settings before I can connect to it over the LAN.
So does anyone have any advice on how to do this? No matter what i tried, booting the image in a new PC caused Fedora to create two new devices and create brand new network settigns for them, both initialized to DHCP. Hell, I wouldn't care if it created brand new devices, if it would initialize them to static IP addresses that I am expecting.
I have installed ubuntu server 10.04 amd64. The problem is every time I login, there is no internet connection and I have to manually run "sudo ifconfig eth3 up". (eth3 has the cable). What should I do to automate that?
I know this has been covered in many threads before, but I'm stuck not finding my exact situation or an answer. I'm a newbie using a Debian Linux machine as the client and Windows XP machine as the server. I have successfully mounted the XP Network drive on the Linux machine using commands from the root terminal:
mount -t smbfs -o username="Windows Username",password=windowspassword //XPcomputername/folder /mountpoint/
However when I put the command in the ect/fstab file as suggested in several posts, I don't get any result on boot up. I.e. I can't get the network drive to mount on start up, I always have to manually mount it from the root terminal.
I got a hold of openSUSE11.2 recently, burned it, and booted the disc up.Now i got a problem.I ain't too experienced in partitioning, so i choose everything as selected in the installation(i downloaded the full DVD, not a live CD)and i got to the partitioning part.I have this:
500GB WD Caviar Blue SATA2 80GB ATA
I installed Ubuntu on the 500gb with wubi and partitioned 30GB for it.Well that one is easier, i have absolutely no experience in installing from a CD/DVD.I saw instlux, but it wouldn't run from Win7 Any guide on how to manually partition 30GB for openSUSE too?
I need to change DNS server that I'm using from a provider to another.Let's just say I'm using a local DNS, and wanted to use Google's DNS.I'm using CentOS, so a friend of mine told me to directly change file:/etc/resolv.confand I already did it.My question is: Do I need to restart my network after changing this file?How do I know that I'm already using the new DNS instead of still connecting using my old DNS?