1834391 Members
1974 Online
110066 Solutions
New Discussion

Setting domain name

 
SOLVED
Go to solution
Vogra
Regular Advisor

Setting domain name

Hi All!
I have a HP9000 server with HPUX11.0. I need to set his domain. I set their DNS and when I ping a server, I have to put point (".") and domain name. If not I don't find it. I want to ping (like ping vsurjgg) without a domain and get the answer.
Thanx in advance.
We are spirits in the material world
11 REPLIES 11
Edward Alfert_2
Respected Contributor

Re: Setting domain name

set_parms hostname

it will then prompt you for the hostname you want.
"Do what you love and you will never work a day in your life." - Confucius
John Poff
Honored Contributor

Re: Setting domain name

Hello,

I'm no wizard with this stuff, but I think you set that in your /etc/hosts file. That is where we have ours set, like this

10.100.1.2 hostname.domainname.com hostname

Where the second hostname is an alias for the fully qualified name.

JP


Vogra
Regular Advisor

Re: Setting domain name

Hi Edward!
... and I put the name plus ".domain" ?
We are spirits in the material world
Vogra
Regular Advisor

Re: Setting domain name

Hi Edward!
... and I put the name plus ".domain" ?
like: vsurjgg.ind
where vsurjgg is a server name
and ind is a domain
We are spirits in the material world
Joseph C. Denman
Honored Contributor

Re: Setting domain name

edit the /etc/resolv.conf

insert the following line:

domain my.domain.com

...jcd...
If I had only read the instructions first??
someone_4
Honored Contributor

Re: Setting domain name

Are you using dns and /etc/hosts?
If you are using both edit your etc/hosts,
/etc/hosts should contain a single line for each host with the
following information:



so if you have

192.168.XX.XX host.domain.net host joe

you will get to the ip with the names host.domain.net host or joe


Richard
someone_4
Honored Contributor

Re: Setting domain name

what about your nsswitch.conf ??

my line for hosts is
hosts: files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns

so i look at files then dns.

Richard
Edward Alfert_2
Respected Contributor
Solution

Re: Setting domain name

You can either use
system.domain.com
or
system
you choose.

set_parms hostname will then update the /etc/hosts file for you automatically
you can then test it out by
ping system
or
ping system.domain.com

You can set the default domain name using
set_parms addl_netwrk

including the default domain

so if you only setup the hostname (system) without using the fully qualified domain name (system.domain.com), then it will add it for you automatically also in etc/hosts

"Do what you love and you will never work a day in your life." - Confucius
DIPAK KUMAR ROY
Frequent Advisor

Re: Setting domain name

I think you need to edit the /etc/resolv.conf file and give these entries....

domain
search < your_server_domain all_other_domain_to_search>
nameserver

Hope this helps

Dipak
Sanjay_6
Honored Contributor

Re: Setting domain name

Hi,

Edit your /etc/resolv.conf file. The entries should look like this

search x.y.z
nameserver a.b.c.d
nameserver e.f.g.h

Here x.y.z is the domain where you are looking for the system. Also a.b.c.d is the IP address for name server in your domain. You can set upto three nameserver to be queried.

For more reference you can look thru HP manual : Installing and Administering Internet Services (HP Part No. B2355-90110). Look for Configuring and Administering the BIND Name Service ---> Configuring the Resolver to Query a Remote Name Server.

Hope this helps
Deshpande Prashant
Honored Contributor

Re: Setting domain name

HI
Add the aliases in /etc/hosts file.
198.132.1.2 host.domain.com. host

so command #ping host or will work.

/etc/resolve.conf file should have your domain name defined. So even command #nslookup host will return proper name.

Thanks.
Prashant.

Take it as it comes.