10-28-2003
You would have to specify the domain that host is in - take a look at the searchlist (if any) in your resolv.conf. If it doesn't search through the domain where this host exist, then your nslookup will not find it.
Try:
nslookup hostname.myotherdomain.com.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am installing redhat linux 6.2 on an intel based system. Whether i want to know any naming conventions should i follow.
ie Any convention to follow to name a linux machine(To give hostname). Simillarly for domain name also. Please suggest in this regard (1 Reply)
Discussion started by: bache_gowda
1 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I am new to Solaris.
I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies
3. Red Hat
Hello,
I would like to change the hostname on a Linux server (RHEL4).
I try different methods in vain :
- by using hostname command
- by changing /etc/hosts and /etc/hostname
But after restarting server, the old hostname re-appears... :confused:
And the file ./proc/sys/kernel/hostname... (3 Replies)
Discussion started by: madmat
3 Replies
4. Solaris
Hi All,
I am wondering how does the hostname command decides what is the actual hostname. Where does the command take the information from? (7 Replies)
Discussion started by: lmishkind
7 Replies
5. UNIX for Dummies Questions & Answers
I'm receiving the following message when executing hostname:
/usr/bin/hostname: /bin/uname: cannot execute
This error is usuallly a permissions issue but both /usr/bin/hostname and /bin/uname are set with the correct permissions as shown:
-r-xr-xr-x 1 root bin 561 Jan 21 2005... (4 Replies)
Discussion started by: t_coop
4 Replies
6. UNIX for Dummies Questions & Answers
Good day,
I would like to resolve IP's to Hostnames using Putty.
I'm using Mandriva Linux 2008.0.
Is this possible?
Perhaps with nmap? (13 Replies)
Discussion started by: McGuywer
13 Replies
7. Shell Programming and Scripting
I have a few servers whose hostname is "app.prod.cbo.im.foobar.com"
prod is the environment I want to capture in a perl script. I want the script to run on qa and it should be environment independent.So if I am running the script on app.qa.cbo.im.foobar.com I want to capture qa out of that... (4 Replies)
Discussion started by: jacki
4 Replies
8. Emergency UNIX and Linux Support
Hi All,
So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says:
It should say:
What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies
9. AIX
Hi Gurus,
Can a AIX server with 4 LPARs, each having it's own hostname on the same physical host. Is this possible?
Thanks,
S (2 Replies)
Discussion started by: svajhala
2 Replies
10. UNIX for Advanced & Expert Users
deleted (0 Replies)
Discussion started by: hce
0 Replies
LEARN ABOUT DEBIAN
hostname
HOSTNAME(5) /etc/hostname HOSTNAME(5)
NAME
hostname - Local host name configuration file
SYNOPSIS
/etc/hostname
DESCRIPTION
The /etc/hostname file configures the name of the local system that is set during boot, with the sethostname(2) system call. It should
contain a single newline-terminated host name string. The host name may be a free-form string up to 64 characters in length, however it is
recommended that it consists only of 7bit ASCII lower-case characters and no spaces or dots, and limits itself to the format allowed for
DNS domain name labels, even though this is not a strict requirement.
Depending on the operating system other configuration files might be checked for configuration of the host name as well, however only as
fallback.
HISTORY
The simple configuration file format of /etc/hostname originates from Debian GNU/Linux.
SEE ALSO
systemd(1), sethostname(2), hostname(1), hostname(7), machine-id(5), machine-info(5)
AUTHOR
Lennart Poettering <lennart@poettering.net>
Developer
systemd 10/07/2013 HOSTNAME(5)