LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
Dnsmasq


Hello,
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, 01:52 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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 01:59 PM.
 
Old 04-13-2012, 06:12 AM   #3
imas
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello,
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?
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:33 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
Open Source Consulting | Domain Registration