https://bugzilla.novell.com/show_bug.cgi?id=389668
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=389668#c20
--- Comment #20 from Marius Tomaschewski 2008-05-23 07:46:24 MST ---
Created an attachment (id=217807)
--> (https://bugzilla.novell.com/attachment.cgi?id=217807)
proposed patch for dhclient-script
Works fine for me - in success "host" case the hostname is set:
++ DHCLIENT_SET_HOSTNAME=yes
+ '[' yes = yes ']'
++ hostname
+ current_hostname=xanthos
+ '[' xxanthos = x ']'
+ '[' xxanthos '!=' x ']'
+ '[' x '!=' x ']'
+ '[' -x /usr/bin/host ']'
++ host -W 2 192.168.110.1
+ out='1.110.168.192.in-addr.arpa domain name pointer xanthos.example.net.'
++ echo '1.110.168.192.in-addr.arpa domain name pointer xanthos.example.net.'
++ sed 's:^.* ::; s:\..*::'
+ hostname xanthos
in error cases (when I disable modifying of resolv.conf) not:
++ DHCLIENT_SET_HOSTNAME=yes
+ '[' yes = yes ']'
++ hostname
+ current_hostname=xanthos
+ '[' xxanthos = x ']'
+ '[' xxanthos '!=' x ']'
+ '[' x '!=' x ']'
+ '[' -x /usr/bin/host ']'
++ host -W 2 192.168.110.1
+ out=';; connection timed out; no servers could be reached'
+ exit_with_hooks 0
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.