On Mon, Nov 01, 2004 at 11:54:43AM -0500, Nicholas DeClario wrote:
I have been having an issue on a customized SuSE setup where my '/etc/resolv.conf' wasn't getting populated when using dhcp. After investigating further with debugging mode I found that my dhcp server was returning two hosts. dhcpcd would pass the information on to a SuSE script '/sbin/modify_resolvconf'. That script would then use 'getopt' to parse the command line parameters. To pass a nameserver to the script the '-n' flag is used. So in our case we want '-n $NS1 $NS2' however, getopt was parsing it as '-n $NS1' '$NS2'. $NS2 being a standalone parameter which the script was interpreting as an 'action' by modify_resolvconf. This was resulting in the following error:
What kind of DHCP server are you using? What's customized in your setup? I'm asking because the very same works for so many other people. Peter