LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dnsmasq startup (https://www.linuxquestions.org/questions/linux-networking-3/dnsmasq-startup-73901/)

bardinjw 07-18-2003 02:06 PM

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?

bardinjw 07-19-2003 03:16 AM

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?

bardinjw 07-19-2003 03:36 AM

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.


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