1752666 Members
5615 Online
108788 Solutions
New Discussion юеВ

Re: Domain name problem

 
Ski Ride
Advisor

Domain name problem

Hi
I want my domain name of the hp system to be
win2003.com

I set it using the domainname win2003.com.
After I set it , if I give the doaminname command I am able to get win2003.com as the reply.

But once i logout and log in back the domainname goes missing again.

From the man page I came to know that the domainname will be saved in the file /etc/rc.config.d/namesvrs

But even this file is missing

# cd /etc/rc.config.d/
# ls | grep namesvrs
#

What to do ? What is the problem ??? :-(

Any help...???
7 REPLIES 7
Peter Nikitka
Honored Contributor

Re: Domain name problem

Hi,

best you tell us then OS version of your HP box!

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Ski Ride
Advisor

Re: Domain name problem

my os version is hp - ux B.11.23...
Steven Schweda
Honored Contributor

Re: Domain name problem

> From the man page I came to know [...]

Did you also notice that the "domainname"
command sets the NIS domain name, not the
DNS domain name?

"man resolv.conf" and/or "man nsswitch.conf"
might be more helpful, unless you really are
trying to configure NIS.

Doesn't SAM help with DNS configuration?
Torsten.
Acclaimed Contributor

Re: Domain name problem

You may also try

set_parms addl_netwrk

see

http://docs.hp.com/en/B3921-60631/set_parms.1M.html

Be aware, default search order will be set to DNS first, if the DNS doesn't know how to resolve your own IP, you will have a problem.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: Domain name problem

hi,
if u set domain name by domainname command and reboot you will lose the domainname setting.
edit /etc/rc.config.d/namesvr and put your domain name there.
Also for dns
edit /etc/resolv.conf
domain "yourdomainname"
nameserver "yournameserver"

If you do not need NIS you can set domain name in: /etc/hosts and /etc/resolv.conf files (in resolv.conf you have to write: domain )

Also if u don't have NIS configured on the Box.

get the correct command for:
set_parms addl_netwrk

(
L1000: sbin>man set_parms
No manual entry for set_parms.
)

and try it.
Ski Ride
Advisor

Re: Domain name problem

K friends

I have set the hostname in /etc/hosts and domainname in /etc/resolv.conf.

I am yet to check if my orginal problem is solved.
Ski Ride
Advisor

Re: Domain name problem

Ya now working properly.Thnx