Re: [gentoo-user] Static resolv.conf
Add -R to your DHCP_OPTS in /etc/conf.d/net and dhcp started using the init-system wont override your resolv.conf :) Oscar Tuesday 16 August 2005 23.48 skrev Gyuri: Hell Gentoo users, I have a little problem. I use DHCP with my DSL router, so my /etc/resolv.conf is updated every time I boot my system up (when my eth0 get its ip). The value in it works, but it is rather slow. (sometimes I have to wait 1 minute, but normally I wait 5-6 secs which I think is embarassing) I want to give the 2 IP addressess provided on the paper of my ISP (primary and secondary DNS'es). How can I make resolv.conf static? Thanks in advance -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static resolv.conf
Christoph Eckert wrote: I want to give the 2 IP addressess provided on the paper of my ISP (primary and secondary DNS'es). How can I make resolv.conf static? You can even set it to the user as read only; OTOH I don't know if your IP-up script will then deny to establish the connection. The second possibility in this case is to rewrite this file with the desired contents after the connection is done. Best regards ce Yes, but after a reboot (I daily boot and shut down my computer) the file's content is refreshed by the DHCP server. (nameserver 192.168.0.1) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static resolv.conf
Am Dienstag 16 August 2005 23:48 schrieb Gyuri: I want to give the 2 IP addressess provided on the paper of my ISP (primary and secondary DNS'es). How can I make resolv.conf static? Thanks in advance man dhcpcd: there is an option not to overwrite /etc/resolv.conf, add this option to /etc/conf.d/net DHCP_OPTS. note: i'm not on a gentoo box atm so the paths could not be 100% correct but the overall method is fine for this. hth martin pgp9JRRnkiic5.pgp Description: PGP signature
Re: [gentoo-user] Static resolv.conf
I want to give the 2 IP addressess provided on the paper of my ISP (primary and secondary DNS'es). How can I make resolv.conf static? You can even set it to the user as read only; OTOH I don't know if your IP-up script will then deny to establish the connection. The second possibility in this case is to rewrite this file with the desired contents after the connection is done. Best regards ce -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static resolv.conf
On Tue, 16 Aug 2005 21:59:44 +0200 Christoph Eckert wrote: I want to give the 2 IP addressess provided on the paper of my ISP (primary and secondary DNS'es). How can I make resolv.conf static? You can even set it to the user as read only; OTOH I don't know if your IP-up script will then deny to establish the connection. The second possibility in this case is to rewrite this file with the desired contents after the connection is done. Best regards or simply tell dhcp not to update it. why futz around with changing system file permissions, or writing unnecessary scripts, when dhcp has an option to fix this? ce -- gentoo-user@gentoo.org mailing list -- Nick Rout [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list