1837523 Members
3948 Online
110117 Solutions
New Discussion

Re: Add a domain name

 
Tonatiuh
Super Advisor

Add a domain name

HP-UX 11.11.

How can I add a domain name to my host name.

I have the following estructure:

MyHostName

I want the following estructure (for example):

MyHostName.MyDomainName.com

Any idea?
5 REPLIES 5
RAC_1
Honored Contributor

Re: Add a domain name

Check your hosts file. If you want FQDN, you can put it that way in hosts file.

xx.cc.vv.vv myhost.xx.com "alias"
Also you will have to update /etc/rc.config.d/netconf file. Better, you set it throug /etc/set_params

Anil
There is no substitute to HARDWORK
Tonatiuh
Super Advisor

Re: Add a domain name

Escuse me RAC. I am really newbie in HPUX.

I do not know what is FQDN and what should I put instead of 'xx.cc.vv.vv myhost.xx.com "alias"'; and what to put into '/etc/rc.config.d/netconf' and into '/etc/set_params'.

My hostname is: 'ora1' and I want to be named: 'ora.test.com'.

Could you mind being more specific about the syntax to use?
KapilRaj
Honored Contributor

Re: Add a domain name

1. Build a DNS who will host test.com and then define ora1 host in that nameserver.
2. Or fix it this way (nasty though) add an entry in your /etc/hosts file

192.168.1.7 ora1 ora1.test.com

Better is the first option and you will need to read the bind documentation for that

Regds,

Kaps
Nothing is impossible
RAC_1
Honored Contributor

Re: Add a domain name

FQDN - Fully Qualified Domain Name. In your /etc/hosts file you need as follows.

"ip_address" ora1.test.com ora1
first column is ip_adderess of machine
second is host name
thrid is alias name of host.

man hosts for details.
There is no substitute to HARDWORK
Wilfred Chau_1
Respected Contributor

Re: Add a domain name

you can add a domain to /etc/hosts

Make sure you setup /etc/nsswitch.conf to look for files first.

hosts: files