Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-15-2008, 01:37 AM   #1
Registered: Apr 2005
Location: Rio de Janeiro, Brazil
Distribution: Ubuntu 9.04 (Jaunty), Arch Linux 2009.08
Posts: 83

Rep: Reputation: 17
Question Managed DNS server lists and dnsmasq DNS cache

Hi all,

I tried to be as descriptive as possible within my limitations (English is not my native language), so if the title doesn't describe my question well I apologize in advance. I've read the sticky on this forum section before posting, but even so I'm not 100% sure this post belongs here (although it relates to the handling of DHCP and DNS), so if it doesn't I apologize in advance as well.

My question is: I am using Xubuntu 8.10 "Intrepid Ibex" on a WiFi-enabled laptop, and I have it connect to different access points. IP configuration is usually done via DHCP. This means I can't have a static DNS server list (in /etc/resolv.conf).

I would like to use dnsmasq as a local DNS cache. For it to be effective, I would need a way to have it put in front of anything it receives via DHCP on the DNS server list. How do I do that? Editing /etc/resolv.conf won't work, NetworkManager overwrites it whenver I get new DNS server addresses, and... it sure makes my life easier when using the wireless network, I don't really know how to mess with iwconfig yet...

I'm thinking of putting a little script on /etc/network/if-pre-up.d (or maybe /etc/network/if-up.d) which would look for "nameserver" on /etc/resolv.conf and prepend that line to the file, would that work?

Thanks in advance.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS cache without dnsmasq linuxbird Linux - Networking 8 10-29-2008 09:50 PM
DNS Server Cache SBN Linux - Server 3 02-11-2008 05:55 AM
Set the DNS hostname for Squid cache server. shobhit Linux - Networking 10 10-03-2007 11:11 PM
Cache DNS server and zone file DanielTan Linux - Networking 7 09-26-2005 12:00 PM
How to setup DNS cache server Bind 9.2.1 subzero80 Linux - Networking 2 11-11-2003 09:07 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration