Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-05-2012, 01:44 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled

this my fist question (rather my fist questions) in this forum
I'm new with dnsmasq and i have to understand its source code for my internship.
So i have some questions:

1. Did Dnsmasq provide only mask of DNS requests, or it can also provide DNS services?
I found that Dnsmasq serves host from the "/etc/resolv.conf file, there isn't other alternative?

2. Where Dnsmasq save DHCP leases and Masq for DNS?

3. there isn't documentation which explain the source code of Dnsmasq.

4. Did Dnsmasq use any database?

Thanks a lot.
Old 04-05-2012, 02:52 PM   #2
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,261

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
There is no need of examining a source code to get this information.

1. I do not understand what means "mask of DNS requests" or "DNS services", but dnsmasq is simple tools, just forward query to upstream server defined in "/etc/resolv.conf" or answer on local network queries with help of "/etc/hosts" file. In particular it does not support recursive queries.

2. Leases are saved by default in "/var/lib/misc/dnsmasq.leases" It is configurable with "-l" option. What means "Masq for DNS"? DNS cache is stored in memory if you mean that.

3. I think that code is self explanatory by comments.

4. Not a SQL or that kind of database, but simple text files.

Last edited by eSelix; 04-05-2012 at 02:59 PM.
Old 04-13-2012, 07:12 AM   #3
LQ Newbie
Registered: Apr 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
thanks eSelix for your response,

Sorry to not be clear enough, I mean by "Masq for DNS" DNS cache.

What are DNS entries (@IP, domain name...) which is saved in cache? and what's the order in which the entries are stored?

what's the meaning and the utility of crec struct in cache.c file in the source code?


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
DNSMASQ anyone? Help! JeffC1 Linux - Software 3 03-31-2009 11:23 AM
Dnsmasq and MX records? arfon Linux - Server 1 10-03-2008 06:58 AM
dnsmasq: no dhcp ryerke Slackware 8 06-03-2007 07:29 PM
dnsmasq with Firestarter? sancho Linux - Networking 4 07-01-2006 04:45 PM
Dnsmasq dunkyb Linux - Software 0 03-16-2003 03:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:51 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