- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Domainname
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2000 02:27 AM
08-04-2000 02:27 AM
Domainname
Only domainname and value is not permanent.
My OS is HP-UX 11.00
Resolve.conf all has first line domainname
Second line nameserver
my hosts file allso has full name
for eg a.b.com
when i give hostname or uname -a it just diaplay the host name.
Regards,
Jaikishan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2000 02:37 AM
08-04-2000 02:37 AM
Re: Domainname
/etc/rc.config.d/netconf
Edit this file and look for the line
HOSTNAME="
You can change the current hostname until the next reboot from a root session by typing
hostname
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2000 02:53 AM
08-04-2000 02:53 AM
Re: Domainname
If I understand your post correctly, you are seeing the espected behavior of the hotname and/or uname commands. Try nslookup using your hostname.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2000 03:12 AM
08-04-2000 03:12 AM
Re: Domainname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2000 09:23 PM
08-04-2000 09:23 PM
Re: Domainname
But my Ques is
when i am seting my domainname with the command it gets sated say
domainname yyy.com
but after reboot this disappeared
how to make this permanent
give me in detail which files i have to update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2000 04:08 AM
08-05-2000 04:08 AM
Re: Domainname
I do not think however you are using NIS, so just avoid using the command "domainname". If you are writing a script or something based on your DNS domain name, parse the "/etc/resolv.conf" file for the domain name.
Best Regards!
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2000 05:30 AM
08-05-2000 05:30 AM
Re: Domainname
If you are referring to NIS, then the domain name is configured in /etc/rc.config.d/namesvrs using the variable NIS_DOMAIN.
If you are referring to BIND, then the domain name is configured in /etc/resolv.conf as an entry like "domain myplace.anywhere.com"
Be sure to specify the service order the various names services will query for host information. This is done in the /etc/nsswitch.conf file.
The default order for the nsswitch file is DNS (BIND), NIS, and then FILES (/etc/hosts).
Use the nslookup command to see how your nsswitch file is interpreting queries.
...JRF...