Problem with dhcp hook and dns resolv.conf

Hi,

I ran into a weird problem on 11.4 as following:

I customized /etc/sysconfig/network/scripts/dhcpcd-hook to append:
MODIFY_RESOLV_CONF_DYNAMICALLY=“yes”
NETCONFIG_DNS_STATIC_SEARCHLIST=“mydomain.com
NETCONFIG_DNS_STATIC_SERVERS=“my dns ip”
dynamically to /etc/sysconfig/network/config

Then run “rcnetwork restart”. The hook works and config file is corret, however /etc/resolv.conf is weird:
search .com # the search domain is truncated!
nameserver my.dns.ip.address

Then I disable the dhcp hook and redo the same thing. Whie /etc/sysconfig/network/config is statically speificied:
MODIFY_RESOLV_CONF_DYNAMICALLY=“yes”
NETCONFIG_DNS_STATIC_SEARCHLIST=“mydomain.com
NETCONFIG_DNS_STATIC_SERVERS=“my dns ip”

/etc/resolv.conf is correct:
search mydomain.com
nameserver my.dns.ip.address

I guess something is triggered after dhcp hook appends the parameters, right?

Gnep

Welcome here first poster!

Please next time improve youre post by putting trhe computer text parets of it between CODE tags. This to make the difference between waht you say and what the system show more clear and to prevent interpretation problems White psace and the like).
See: http://forums.opensuse.org/english/information-new-users/advanced-how-faq-read-only/451526-posting-code-tags-guide.html

I guess I’d start with “why?”

AFAIK, if you properly joined your machine to the Domain, your machine should be automatically configured to resolve other members in the Domain.

TS