Sponsored Content
Operating Systems AIX Command last displays wrong hostname Post 302485494 by methyl on Wednesday 5th of January 2011 10:31:26 AM
Old 01-05-2011
The server name recorded will normally be the same as "Name:" from "nslookup" when run on the server keeping the records (in this case your AIX server). This can be different from the actual name of the client.


Afterthought: Maybe you have a duplicate IP address.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Cisco Router command to get hostname

Hi All, I am connected to a cisco router and I want to know the hostname of this router. I connect as telnet <IPADDRESS> and the prompt shows vpnaccess-bristol> But I want to know the full hostname of the router how can i do that. When i type the hostname command the following... (3 Replies)
Discussion started by: rahulrathod
3 Replies

2. Solaris

How to display hostname in command prompt

Anyone know How to configure solaris 8 to display hostname in command prompt , everytime when you open a terminal screen . (3 Replies)
Discussion started by: civic2005
3 Replies

3. Linux

Hostname displays incorrectly

hiii, in many of the linux machines i have tried this but the result is the same everywhere. if there are double letters in a hostname then that is displayed as single letter. e.g. if hostname is set to nepttune then login into the shell will display : NEPTUNE(admin)@/ $ hostname... (15 Replies)
Discussion started by: shamik
15 Replies

4. UNIX for Dummies Questions & Answers

Creating a file that contains output from a command, and then displays itself

hey, I'm trying to create the command that will create a file named user.txt that contains the output of the command cut -d: -f1,5 /etc/passwd, and displays itself afterwards. I don't know how to bridge cat > user.txt with cut -d: -f1,5 /etc/passwd, or how display it afterwards. Any help would... (2 Replies)
Discussion started by: raidkridley
2 Replies

5. Solaris

Last command displays wrong information

Hi am having Solaris10 - Sun-Fire-V890 server, the information displayed by Last command is wrong how do i get this sorted without loosing any datas.. # uptime 12:32am up 20 day(s), 33 min(s), 1 user, load average: 1.54, 1.82, 1.93 # last reboot reboot system boot Sat... (9 Replies)
Discussion started by: Sojourner
9 Replies

6. Red Hat

Hostname command issue

Hi All, I am using redhat Linux 5.2.2 on vmware. I have created VM Machine using kickstart & rest 10 machines i created using vmware cloning. On the base machine which i installed from kickstart its showing FQDN using hostname --fqdn but cloned machines are showing hosts name i have chnaged... (1 Reply)
Discussion started by: ajaincv
1 Replies

7. UNIX Desktop Questions & Answers

hostname in command prompt

Hello, all. Running 11.04. Is there a way that, in an ssh or telnet session, that hostname will not appear in the command prompt? Not logged in yet, so not seeking a user shell environment. I just want to see something like 'login>', not 'ubuntu login>'. ---------- Post updated at 07:50 PM... (3 Replies)
Discussion started by: mfearer
3 Replies

8. Red Hat

hostname command prints nothing a null value

Hi , On my box everything works fine. But whenever I run command It returns nothing as you see @(none) too. Its very strange issue I have never noticed on any other system yet. Any one have any idea about this. Thank you (2 Replies)
Discussion started by: pratapsingh
2 Replies

9. Solaris

[SOLVED] Issue with hostname command

Hi, i'm having issues with one of my db servers, each time i run the hostname command i get "-a" as result this is the only zone on this server where i have this issue. could any one help me with this issue (5 Replies)
Discussion started by: EduardoDiaz
5 Replies

10. Shell Programming and Scripting

Bash $(...) DISPLAYS EVERY COMMAND

I use things like this a lot in ksh and bash, but lately bash has been printing the command for every loop: ... | while read f do if then echo Differ "$f" fi done How to prevent this? (5 Replies)
Discussion started by: DGPickett
5 Replies
host(1) 						      General Commands Manual							   host(1)

NAME
host - DNS lookup utility SYNOPSIS
class] ndots] number] type] wait] name [server] DESCRIPTION
is a simple utility for performing DNS lookups. It is normally used to convert names to IP addresses and vice versa. With no options or operands, prints an annotated usage summary. Options Use only the IPv4 query transport. Use only the IPv6 query transport. Equivalent to using Attempt to display the records for zone name from all the listed authoritative name servers for that zone. The list of name servers is defined by the records that are found for the zone. Make a DNS query of class class. This can be used to look up class resource records. The values for class are: The Internet class (default). The MIT Chaosnet class. The MIT Athena Hesiod class. The class values are case-insensitive. Generate verbose output. Now equivalent to the option. is provided for backwards compatibility. In previous versions, it switched on debugging traces. Use the IP6.INT domain, as defined in RFC 1886, to perform reverse lookups of IPv6 addresses. The default is to use IP6.ARPA. Select list mode. performs a zone transfer for zone name. Transfer the zone, printing out the and address records If is combined with all records will be printed. Set the number of dots that have to be in name for it to be considered absolute. The default value is defined using the statement in or is if no statement is present. Names with fewer dots are interpreted as relative names and will be searched for in the domains listed in the or directive in Set the number of UDP retries for a lookup. number indicates how many times will repeat a query that does not get answered. The default number of retries is 1. If number is negative or zero, the number of retries is set to 1. Make nonrecursive queries. Setting this option clears the RD (recursion desired) bit in the query which makes. This should mean that the name server receiving the query will not attempt to resolve the name operand. This option enables to mimic the behavior of a name server by making nonrecursive queries and expecting to receive answers to those queries that are usually referrals to other name servers. Use a TCP connection when querying the name server. TCP is automatically selected for queries that require it, such as zone transfer requests. By default uses UDP when making queries. Select the query type. type can be any recognized query type: and so on. For potential values, see the command in nslookup(1) and the discussion in named.conf(4). The type values are case-insensitive. When the option is omitted, automatically selects an appropriate query type. By default, it looks for records, but if the option is given, queries are made for records. If the operand is an IPv4 or IPv6 address, queries for records. For a query type of you can specify the starting serial number by appending an equals sign followed by the starting serial number (for example, Generate verbose output. Set the time to wait for a reply to wait seconds. If wait is less than 1, the wait interval is set to 1. Effectively wait forever for a reply. The time to wait for a response is set to the number of seconds given by the hardware's maximum value for an integer quantity. Operands name The domain name that is to be looked up. It can also be an IPv4 or IPv6 address, in which case will, by default, perform a reverse lookup for that address. server The name or IP address of the name server that should query. The default is the server or servers listed in EXAMPLES
Using a host name: Using an IP address: AUTHOR
was developed by the Internet Systems Consortium (ISC). FILES
SEE ALSO
dig(1), nslookup(1), named(1M), named.conf(4), resolver(4). Requests for Comments (RFC): 1886, available online at available online at available from the Internet Systems Consortium at BIND 9.3 host(1)
All times are GMT -4. The time now is 09:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy