LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-25-2006, 04:01 PM   #1
davepass
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
dnsmasq question


I ran

Code:
dnsmasq --log-queries
so that I can see the activity coming through when I tail syslog.

Any requests made to a public web site (eg. google.com) show up in the log as being forwarded to the correct IP. And the correct page is displayed in the browser.

Any requests that match the contents of /etc/hostname, in this case dev1.homeserver.com, show up as multiple entries of:

Quote:
Feb 25 14:35:35 dev1 dnsmasq[2359]: query[A] dev1.homeserver.com from 192.168.1.1

Feb 25 14:35:35 dev1 dnsmasq[2359]: /etc/hosts dev1.homeserver.com is 192.168.1.161
and the correct page displays in the browser.


But if I request another host added into my /etc/hosts file, like test.homeserver.com, the log shows:

Quote:
Feb 25 14:54:20 dev1 dnsmasq[2359]: query[A] test.homeserver.com from 192.168.1.1

Feb 25 14:54:20 dev1 dnsmasq[2359]: forwarded test.homeserver.com to 68.87.85.98

Feb 25 14:54:20 dev1 dnsmasq[2359]: reply test.homeserver.com is <NXDOMAIN>-IPv4

and a cannot find server or dns error is displayed.



Here is my /etc/hosts file:
Code:
127.0.0.1       localhost.localdomain   localhost       dev1
192.168.1.161   dev1.homeserver.com    dev1
192.168.1.161   test.homeserver.com       test

I don't understand why test.homeserver.com is not being redirected to the appropriate place. Is there anything else I have to configure for this tto work?
 
  


Reply



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.conf exvor Linux - Software 2 06-24-2005 05:28 PM
running rc.dnsmasq davidsrsb Slackware 2 09-23-2004 10:12 PM
dnsmasq users? TheRealDeal Linux - Networking 6 04-29-2004 01:24 AM
dnsmasq startup bardinjw Linux - Networking 2 07-19-2003 03:36 AM
Dnsmasq dunkyb Linux - Software 0 03-16-2003 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:36 PM.

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