On Wed, 2005-04-13 at 13:36 +0800, Penghui Wang wrote: > Hi lists: > > My computer uses dhcp-client to get IP and other useful information from > a dhcp server. During the period, my box would receive the IP address > and DNS server from the dhcp server. > > Here is my /etc/conf.d/net > > iface_eth0="dhcp" > dhcpcd_eth0="-h $HOSTNAME" > > and my /etc/resolv.conf would be setted to > > nameserver 192.168.0.138 > nameserver 192.168.0.138 > search example > > But i have built a DNS server on my own box. Then i > want /etc/resolv.conf to be set as the follow. > > nameserver 127.0.0.1 > search example > > What operations i need to do now? How is the correct /etc/conf.d/net? > > Thanks in advance. > > Wang Penghui
Change your dhcp server to not set dns. or run dhcpcd with the -R option (clearly referred to in the man page thus: "-R Prevents dhcpcd from replacing existing /etc/resolv.conf file." > > > -- > gentoo-user@gentoo.org mailing list > -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list