1834789 Members
2982 Online
110070 Solutions
New Discussion

Xconfig ( cde) & dns

 
anonymous_5
Occasional Advisor

Xconfig ( cde) & dns

howdy Alex... & guests. still having issues with cde.

I ran the dr_dt tool as suggested... but it is sort of useless. isn't it? Since I already know that the problem is network/name service related. & where does the dr output get stored anyway... most of the info scrolls by & incorrectly reports no errors... although before it finishes reporting 13 warnings & no errors... a few lines above

the error message is clearly marked:

couldnot contact host hpux:/var/adm/sw/swagentd.log


**CDE wont work because it cant talk to name resolution.*

when I set up nis server I wanted to choose it for the same box 172.21.10.10 & ns lookup reports

10.10.21.172 inaddr arpa
resolves the name & then
properly reports 172.21.10.10 as the resolver.

is this normal nis/ name format.. to reverse the ip address?

/etc/hosts has a listing for the fully qualified name

172.21.10.10 hpux.lab.xxxx

& /etc/resolv.conf has
domain lab.xxxx
nameserver 172.21.10.10

so then. I can ping my own ip & hostname, the gateway...

I rm-ed the HOME/.dt
after reboot .dtprofile is
created.

***************
--> still looking for the right response to fix X (cde)
****************

I believe the issue is with the startup process and NIS is doing something bad.

Also I rm the nsswitch.conf file as it wasn't there before I started monkeying with name resolution and everything was working fine.

Any suggestions.

Anyway..sort of diff. to run HPOV NNM without X. ; - <

where else can I look? or what am I missing?

thankyou
5 REPLIES 5
Alex Glennie
Honored Contributor

Re: Xconfig ( cde) & dns

Only in the wrong hands ... tips : either enable a scrollbar & a savelines value in your terminal emulator : see man dtterm eg "dtterm -sb -sl 4000" or by means of Xresources and an .Xdefaults file in say $HOME ....I'll let you do a quick search on this forum for further details "scrollbar" "Xdefaults" & "dtterm" are good key words. Alternatively try redirecting the output to a file dr_dt > /tmp/useless.txt ;-)

OK Last time we spoke I thought you were disabling nis by way of the command line ... did this not work and are you saying DNS is also hosed ?

My advice is perform an nslookup of the local hostname, is it being resolved by NIS or DNS ?

If NIS use info in last post to disable NIS master, if using DNS, edit /etc/nsswitch.conf
to use files ONLY.

edit /etc/hosts to :

172.21.10.10 hpux hpux.lab.xxxx

drop the run level to 2 then back to 3 (/sbin/init), attempt to login to CDE as normal,if it fails attempt a failsafe session and run dr_dt > and post as an attachment along with the nslookup info from earlier.
Jon Hansen_1
Advisor

Re: Xconfig ( cde) & dns

resolv.conf configuration looks good, but I believe domain should be search. I could be wrong.. Also nameserver locations DO matter. I find that they need to be within the same IP range. In other words, NIS slaves. Your machine will connect correctly. Just CDE will not work. It looks like this is the problem area not CDE itself.

Here we use:
search domain.name
nameserver XXX.XXX.XXX.XXX
nameserver XXX.XXX.XXX.XXX

CDE I agree that dr_dt sucks big time. We have a local CDE creation script which allows us to quickly create new CDEs. I am not certain if my company would consider it proprietary even though I made it. I can however, give you direct advise on howto modify files....

The customer configured files for CDE are located in ~/.dt/ the dr_dt files are in /etc/dt. /usr/dt are the vendor supplied configuration files. The files in ~/.dt are automatically re-created. Therefore removing those files will reset you to whatever the default configurations are.

Solaris has a great reference library for CDE. (HP should take some notes!).. Depending on your knoledge of CDE, the 'Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide' has the most detailed information.
http://docs.sun.com/?p=/doc/806-1361

If this is your first time setting up X, CDE is NOT the easiest to configure. However, it is industry standard. Freeware versions exist, and some are easier to setup out of the box. Suggestions are: fvwm, gnome, KDE..
Alex Glennie
Honored Contributor

Re: Xconfig ( cde) & dns

fao Jon Hansen .... looks like they did ;-)

http://docs.hp.com/hpux/os/11.0/index.html#CDE
anonymous_5
Occasional Advisor

Re: Xconfig ( cde) & dns

ok, your having fun eh???

the box that is having trouble has the ip of 172.21.10.10

I rm the nisswitch.conf file but nslookup is still using nis for resolution. I believe that there are startup files related to this that need to get manually changed.

where might those be?

& for the record.. I have no problem with dr_dt; however, since I already know the cause of the problem my comment was that it was not useful for this instance.

What I am looking for is a resolution for name resolution. < smile >

resolv.conf & etc/hosts are properly configured & nis is somehow interferring, although I have removed nisswitch.conf which apparently is not enough.

CDE was working fine before I attempted to create a NIS Server by way of SAM.

Anyway, the purpose of this box is to learn & I will definitely check out the docs page... but have other things to read than the CDE man for now.

How about a resolution for command line removal of nis.

If you provided the answer already I must have missed it.

thankyou

nslookup result
10.10.21.172 inaddr arpa
resolves the name & then
properly reports 172.21.10.10 as the resolver.

is this normal nis/ name format.. to reverse the ip address?

/etc/hosts has a listing for the fully qualified name
*******

Alex Glennie
Honored Contributor

Re: Xconfig ( cde) & dns

To disable NIS master from cmd line ->

/sbin/init.d/nis.server stop
/sbin/init.d/nis.client stop

vi /etc/rc.config.d/namesvrs accordingly
remove NIS entry from /etc/nsswitch.conf