LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 12-15-2008, 01:37 AM   #1
nitrousoxide82
Member
 
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 127.0.0.1 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 127.0.0.1" on /etc/resolv.conf and prepend that line to the file, would that work?

Thanks in advance.
 
  


Reply


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


All times are GMT -5. The time now is 03:05 AM.

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