- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: How to know server Full name FQDN
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
10-24-2010 09:39 PM
10-24-2010 09:39 PM
How to know server Full name FQDN
I want to check the server in Domain or not.
If server is in Domain, then want to check the full name.
if serer is not in domain, then how to add the server in domain.
current OS is HP-UX 11.31
Thanks
Jayesh
- Tags:
- FQDN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-24-2010 09:48 PM
10-24-2010 09:48 PM
Re: How to know server Full name FQDN
Do you have a configured domain in your network?
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-24-2010 09:50 PM
10-24-2010 09:50 PM
Re: How to know server Full name FQDN
example :-
cat /etc/resolv.conf
domain alahli.com
or
cat /etc/resolv.conf
search alahli.com corp.alahli.com
To get a FQDN.
nslookup hostname
- Tags:
- nslookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-25-2010 12:16 AM
10-25-2010 12:16 AM
Re: How to know server Full name FQDN
I check the file resolv.conf in /etc
but can't find.
nslookup hostname
[root@rajHRDQ]/etc # nslookup
Using /etc/hosts on: rajHRDQ
> RAJHRQD
Using /etc/hosts on: RAJHRQD
looking up FILES
Name: VWVIHRDQ
Address: 192.105.3.175
> exit
So please suggest mem My server is in Domain or not. If not, How to configure?
Thanks
Jayesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-25-2010 12:26 AM
10-25-2010 12:26 AM
Re: How to know server Full name FQDN
Hi ,
You server is not added with domain name information .
Are you looking for DNS host name resolution in your server ?
If yes then you may need to create /etc/resolv.conf with the below sample entries.
Resolv.conf ( You may need to create if exist)
==========
cat /etc/resolv.conf
domain yahoo.com
nameserver xx.xx.xx.xx ---- > Primary DNS Server
nameserver xx.xx.xx.xx ----- . Second DNS server
nameserver xx.xx.xx.xx -----> Third DNS Server
nsswitch.conf ( You may need to create if not exist)
=============
cat /etc/nsswitch.conf
hosts: dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] files [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
ipnodes: files
If you just want to local resolution only, then you can add you FQDN enrty in /etc/hosts
Example :-
10.xx.xx.xx server.yahoo.com serverA
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2012 01:46 AM
08-07-2012 01:46 AM
Re: How to know server Full name FQDN
hn=`hostname`
fqdn=`nslookup $hn 2>/dev/null | grep "^Name:" | cut -d ":" -f2`
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP