Gnome using DHCP client and hostname resolver problem using RH 6.2

Gnome using DHCP client and hostname resolver problem using RH 6.2

Post by Sverre Torjusse » Sat, 24 Jun 2000 04:00:00



Hi

I have a problem with using a RH 6.2 client running Gnome environment,
and Enlightenment window manager and communicating with a Windows NT
DHCP server.  On every login I get a Gnome warning panel saying:        

  Could not lookup Internet address for <my host>. This will prevent
  gnome from operating correctly. It may be possible to correct the
  problem by adding <my host> to the file: </etc/hosts>

               [Try again]     [Continue]        

However, all network services seems to work as the NIC/eth0 retrieves correct IP.
(print, news, smtp, http etc).

How can I avoid this annoying message without changing the hosts file?

FYI, I have replaced the pump call in the ifup/ifdown network-scripts
for the network service by

1. </etc/sysconfig/network-scripts/ifup>:
   #    if /sbin/pump $PUMPARGS -i $DEVICE ; then
   #changed sverre above to below
    if /sbin/dhcpcd -D -H $DEVICE ; then

2. </etc/sysconfig/network-scripts/ifdown>:
#       pump -r -i ${DEVICE}
        /sbin/dhcpcd -k ${DEVICE}

Hence, the dynamically allocated IP address is stored in:
 </etc/dhcpc/dhcpcd-eth0.info>

I have tried to update the auth calls in the </usr/bin/X11/startx>
script without any success.

   IP_ADDR=`ifconfig eth0|grep "inet addr"|awk '{print $2}'|cut -d : -f 2`

   xauth add ${IP_ADDR}${display} . $mcookie
   # xauth add `hostname -f`$display . $mcookie
   #xauth add `hostname`$display . $mcookie

   xinit $clientargs -- $server $display $serverargs

No other documentation or news articles seem to address how to solve
this problem.
   %wmosl1wi0305:~ {120} $ hostname -f
   hostname: No address associated with name
   %wmosl1wi0305:~ {121} $ lpq
   Warning: unable to get official name for local machine wmosl1wi0305
   no entries

Finally, a couple of other gnome configuration issues:

  1) Can the default startup applications that respawns be turned off
  (gmc, gmc file manager)

  2) Is the verification/confirmation action of the "Log out" action
  on the Start menu configurable? (would like to change built-in
  action "Quit-Verify" to "QUIT").

Alternatively, can built-in actions be defined as either new main menu
entries or/and as an ICON on the menu bar?

Cheers Sverre
--------------------------------------
Sverre Torjussen, senior consultant

  Internet: www.wmdata.no

 
 
 

1. Gnome using DHCP client and hostname resolver problem using RH 6.2

Hi

I have a problem with using a RH 6.2 client running Gnome environment,
and Enlightenment window manager and communicating with a Windows NT
DHCP server.  On every login I get a Gnome warning panel saying:        

  Could not lookup Internet address for <my host>. This will prevent
  gnome from operating correctly. It may be possible to correct the
  problem by adding <my host> to the file: </etc/hosts>

               [Try again]     [Continue]        

However, all network services seems to work as the NIC/eth0 retrieves correct IP.
(print, news, smtp, http etc).

How can I avoid this annoying message without changing the hosts file?

FYI, I have replaced the pump call in the ifup/ifdown network-scripts
for the network service by

1. </etc/sysconfig/network-scripts/ifup>:
   #    if /sbin/pump $PUMPARGS -i $DEVICE ; then
   #changed sverre above to below
    if /sbin/dhcpcd -D -H $DEVICE ; then

2. </etc/sysconfig/network-scripts/ifdown>:
#       pump -r -i ${DEVICE}
        /sbin/dhcpcd -k ${DEVICE}

Hence, the dynamically allocated IP address is stored in:
 </etc/dhcpc/dhcpcd-eth0.info>

I have tried to update the auth calls in the </usr/bin/X11/startx>
script without any success.

   IP_ADDR=`ifconfig eth0|grep "inet addr"|awk '{print $2}'|cut -d : -f 2`

   xauth add ${IP_ADDR}${display} . $mcookie
   # xauth add `hostname -f`$display . $mcookie
   #xauth add `hostname`$display . $mcookie

   xinit $clientargs -- $server $display $serverargs

No other documentation or news articles seem to address how to solve
this problem.
   %wmosl1wi0305:~ {120} $ hostname -f
   hostname: No address associated with name
   %wmosl1wi0305:~ {121} $ lpq
   Warning: unable to get official name for local machine wmosl1wi0305
   no entries

Finally, a couple of other gnome configuration issues:

  1) Can the default startup applications that respawns be turned off
  (gmc, gmc file manager)

  2) Is the verification/confirmation action of the "Log out" action
  on the Start menu configurable? (would like to change built-in
  action "Quit-Verify" to "QUIT").

Alternatively, can built-in actions be defined as either new main menu
entries or/and as an ICON on the menu bar?

Cheers Sverre
--------------------------------------
Sverre Torjussen, senior consultant

  Internet: www.wmdata.no

2. Solaris 2.2 syslog problem

3. Strange problem with screen savers using Gnome on Redhat 6.2

4. [PATCH] new sysctl net/ipv4/ip_default_bind

5. Enabling client to request hostname using dhcp

6. Backup drive recommendations wanted...

7. Problems using kppp as a normal user with RH 6.2

8. RFS COTS Interface

9. RedHat 6.2: DHCP error FF when using Token ring

10. HELP - Using PCNet LAN module with RH 6.2

11. root access using rpc.statd under RH Linux 6.2

12. using Posix/SystemV semaphores under Linux RH 6.2

13. Anyone using RH 6.2 for Sun UltraSparc WS?