LinuxQuestions.org
Help answer threads with 0 replies.
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 07-18-2003, 02:06 PM   #1
bardinjw
Member
 
Registered: Apr 2003
Location: boston
Distribution: ubuntu debian redhat fedora
Posts: 108

Rep: Reputation: 15
dnsmasq startup


i'm trying to use dnsmasq as a local caching dns server.
actually i'm using it right now. i just can't get it to start when i bootup.

i changed my dhclient-script to create a file /etc/resolve.dnsmasq, containing the dns servers that dhcp returns.

my resolve.conf just has
"nameserver 127.0.0.1"

i added
"/usr/sbin/dnsmaq -r /etc/resolv.dsnmasq"
to rc.local because i think this is the last startup script run and i want all the dhcp stuff taken care of.

when i first boot, i can't get any name resolution, but if i kill dnsmasq, and restart it with the same command line everything works fine.

any ideas?
 
Old 07-19-2003, 03:16 AM   #2
bardinjw
Member
 
Registered: Apr 2003
Location: boston
Distribution: ubuntu debian redhat fedora
Posts: 108

Original Poster
Rep: Reputation: 15
ok, so i had some time to check my logs.
dnsmasq starts fine from the rc.local script.
but i have the switch "-r /etc/resolv.dnsmasq" in the command line.
it ignores this and goes to the default resolv.conf, which it then ignores because this is localhost.

when i kill the process and run the command line manually, it reads the correct file and the world is good. or atleast my web surfing is.

can anyone tell me what's happening here?
 
Old 07-19-2003, 03:36 AM   #3
bardinjw
Member
 
Registered: Apr 2003
Location: boston
Distribution: ubuntu debian redhat fedora
Posts: 108

Original Poster
Rep: Reputation: 15
for anyone with a similar problem:

make sure that the process isn't started by a script at a lower level!!!

init.d started the program, and the script actually did nothing.

thank you me for the answer.
 
  


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 can't work ultrax Linux - Networking 1 08-05-2005 09:06 PM
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 dunkyb Linux - Software 0 03-16-2003 02:25 PM


All times are GMT -5. The time now is 03:30 PM.

Main Menu
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