- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Full Domain
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
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
04-02-2003 08:03 AM
04-02-2003 08:03 AM
Thank you for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:06 AM
04-02-2003 08:06 AM
Re: Full Domain
grep domain /etc/resolv.conf
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:08 AM
04-02-2003 08:08 AM
Re: Full Domain
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/dig-2.0/
This will allow you do get really high quality information.
You can use nslookup and get more details with set commands.
nslookup
> set type=mx
> windflite.com
This might help as well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:09 AM
04-02-2003 08:09 AM
Re: Full Domain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:10 AM
04-02-2003 08:10 AM
Re: Full Domain
Thx,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:16 AM
04-02-2003 08:16 AM
Re: Full Domain
I always setup the system hostname in /etc/hosts as follows:
111.222.111.222 hostname hostname.company.com
i.e. the FQDN is an alias in the hosts file. If this is used then you could do the following
grep hostname /etc/hosts | awk '{print $3}'
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:23 AM
04-02-2003 08:23 AM
Re: Full Domain
The FQDN normally appears in your host file against the IP address you want that name associated with.
domainname only works with NIS (which is why I mentioned the name resolver).
So, nslookup or looking in the host file (assumiing you've added this as either the primary name or an alias) are your best bets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:25 AM
04-02-2003 08:25 AM
Re: Full Domain
It should be noted that the domainname command deals ONLY with the NIS domain name.
This is rarely if ever the same as the domain name used for host naming.
Outside of using nslookup or the commands listed above, there is no one command I know of that will give you the FQDN of a host.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 08:32 AM
04-02-2003 08:32 AM
Re: Full Domain
Regards,
Dario
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 10:29 AM
04-03-2003 10:29 AM
Re: Full Domain
ping `hostname` -n 1 | head -n 1 | awk '{print $2}' | tr -d ':'