- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know server Full name FQDN
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
Discussions
Discussions
Forums
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
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
тАО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
- 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
- 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
- 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
- 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
- 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`