[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [saigonlug] Facebook Acces

You should not do this in rc.local. See my previous note about dhclient.conf...


If you insist on using rc.local, then it should be:

echo "nameserver" >> /etc/resolv.conf

and that line should come before the 'exit 0' line, not after.

Also, be aware that this *won't work* because you're adding the
nameserver to the end of the file, and the file is parsed beginning to
end. So if the dhcp server sends down two nameservers, they'll be
queried before the server.

So, really, use dhclient.conf. That's what it's for...


On Thu, Nov 18, 2010 at 10:12 PM, Duong Nguyen <[email protected]> wrote:
> On Thu, Nov 18, 2010 at 1:51 PM, Phu Le Tra Vinh <[email protected]> wrote:
>> /etc/rc.local
>> echo "nameserver" > /etc/resolv.conf
>> Thats it.
> Hi,
> Should be ``echo "nameserver" >> /etc/resolv.conf''
> --
> Yang Nguyen
> Web log: http://cmpitg.wordpress.com/
> Life is a hack
> --
> SaigonLUG - Saigon GNU/Linux User Group
> Website: http://saigonlug.org
> Email: [email protected]
> --------
> You received this message because you are subscribed to the mailing list "Saigon GNU/Linux User Group".
> To post to this list, send email to <[email protected]>
> To unsubscribe from this group, send email to <[email protected]>
> For more information, please visit: http://groups.google.com/group/saigonlug