08-26-2007
192.168.200.1 is ADSL modem/router, it provides DHCP on demmand and resolves external (Internet) DNS.
I checked out - routers domain name is ar7, so I changed domain name of my system to this one in /etc/resolv.conf and /etc/rc.config.d/netconf HOSTNAME=hp-j5000.ar7.
Also I registred this computer with hostname to my router, but still there is the same problem, because my router does not resolves internal DNS (it has no such option).
Interesting point, that Solaris 10 for example, resolves DNS from /etc/hosts.
Is there way to enfoce my HP-UX to resolve names from /etc/hosts too?
P.S. Now, CDE logs off automatically without error messages. I don't know if it's better or worse than situation with error message...
Last edited by netwalker; 08-26-2007 at 10:47 AM..
Reason: Additional information
10 More Discussions You Might Find Interesting
1. HP-UX
Hi Gurus,
Is there any module like FUSE to mount a ftp dir on HP-UX??
Please Help.
Vouchy (0 Replies)
Discussion started by: vouchy
0 Replies
2. Solaris
Hi All,
My current setup is:
1x Windows Server (Windows 2000 server)
1x Unix Server
2x Windows machine
3x Unix Terminals (Hostnames = A, B and C)
Problem
The problem iam having is Unix terminal C cannot be ping across by Unix terminal A or B or Unix server by using the hostname. Unix... (1 Reply)
Discussion started by: tlee
1 Replies
3. Solaris
I recently installed Solaris 10 on my Sun workstation. I cannot ping using hostname from another computer on the same network.
But I can ping using the IP address. Also I can ping other systems using their hostnames.
Can anyone give some information regarding how to resolve this issue. (4 Replies)
Discussion started by: alpha123
4 Replies
4. AIX
Hello everyone
I have a partition with a problem with ping.
If I do a ping by ip for example ping 1.1.1.1 I got no problem but If I ping by hostname for example ping partition1 take almost a minute to respond me.
I have Aix 5.3 and I have another 19 partitions with no problem. The only... (5 Replies)
Discussion started by: lo-lp-kl
5 Replies
5. HP-UX
hi everyone
i need to upgrade from 11iv2 to 11iv3 i have hp11iv2 "mission critical operating environment " june 2007
i need the steps or give me link to read and i will do but explain to me to make it easy for me (2 Replies)
Discussion started by: maxim42
2 Replies
6. UNIX for Dummies Questions & Answers
hi guys
I got something I haven't been able to fix
I configure a Linux Suse 10 box, added static IP, DNS (resolv), gateway (routes) but I am not able to ping other servers by name but nslookup works and the server can navigate on internet
check below
the problematic server is server-host20
... (4 Replies)
Discussion started by: kopper
4 Replies
7. UNIX for Advanced & Expert Users
anyone ever seen this problem:
I can ping the server by IP address but I can't by hostname.
nslookup is working and dns query is ok.
# nslookup mwxnsb24
Server: 10.11.49.206
Address: 10.11.49.206#53
Name: mwxnsb24
Address: 10.10.58.175
# ping... (8 Replies)
Discussion started by: linuxgeek
8 Replies
8. Solaris
hi....
i have sun solaris 10 server, fedora 10, and Windows Server.. i cant ping my sun solaris 10, fedora 10 and Windows Server using hostname (etc: ping winserver.bengkel2.com), but i can ping all using IPV4 and IPV6 address.. can u give some suggestion to solve my problem or some idea to... (3 Replies)
Discussion started by: izuan_7657
3 Replies
9. Shell Programming and Scripting
Hi
We have some 300 servers in the Data center and some of them are running with AIX and some of them are running with Solaris.
I need a script which can be run in one of the server and that script should ping the hostname of all the 300 servers.
Also the script should notify if any server is... (9 Replies)
Discussion started by: newtoaixos
9 Replies
10. IP Networking
I have vmware on my windows PC ( hostname : acer ).
vmware has RHEL 7 ( hostname : rhel7 ) installed recently.
RHEL IP configuration
IP : 192.168.5.128
Netmask : 255.255.255.0
ssh to rhel7 works from acer using putty
resolve.conf
cat /etc/resolv.conf
nameserver 192.168.5.1
host... (12 Replies)
Discussion started by: hiten.r.chauhan
12 Replies
LEARN ABOUT SUSE
domainname
HOSTNAME(1) Linux Programmer's Manual HOSTNAME(1)
NAME
hostname - show or set the system's host name
domainname - show or set the system's NIS/YP domain name
dnsdomainname - show the system's DNS domain name
nodename - show or set the system's DECnet node name
SYNOPSIS
hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-i] [--ip-address] [--long] [-s] [--short] [-y] [-n] [--node]
hostname [-v] [-F filename] [--file filename] [hostname]
domainname [-v] [-F filename] [--file filename] [name]
nodename [-v] [-F filename] [--file filename] [name]
hostname [-v] [-h] [--help] [-V] [--version]
dnsdomainname [-v]
DESCRIPTION
Hostname is the program that is used to either set or display the current host, domain or node name of the system. These names are used by
many of the networking programs to identify the machine. The domain name is also used by NIS/YP.
GET NAME
When called without any arguments, the program displays the current names:
hostname will print the name of the system as returned by the gethostname(2) function.
nodename will print the DECnet node name of the system as returned by the getnodename(2) function.
dnsdomainname will print the domain part of the FQDN (Fully Qualified Domain Name). The complete FQDN of the system is returned with host-
name --fqdn.
The function gethostname(2) is used to get the hostname. Only when the hostname -s is called will gethostbyname(3) be called. The differ-
ence in gethostname(2) and gethostbyname(3) is that gethostbyname(3) is network aware, so it consults /etc/nsswitch.conf and /etc/host.conf
to decide whether to read information in /etc/sysconfig/network or /etc/hosts the hostname is also set when the network interface is
brought up.
SET NAME
When called with one argument or with the --file option, the commands set the host name, the NIS/YP domain name or the node name.
Note, that only the super-user can change the names.
It is not possible to set the FQDN or the DNS domain name with the dnsdomainname command (see THE FQDN below).
The host name is usually set once at system startup in /etc/rc.d/rc.inet1 or /etc/init.d/boot (normally by reading the contents of a file
which contains the host name, e.g. /etc/hostname).
THE FQDN
You can't change the FQDN (as returned by hostname --fqdn) or the DNS domain name (as returned by dnsdomainname) with this command. The
FQDN of the system is the name that the resolver(3) returns for the host name.
Technically: The FQDN is the name gethostbyname(2) returns for the host name returned by gethostname(2). The DNS domain name is the part
after the first dot.
Therefore it depends on the configuration (usually in /etc/host.conf) how you can change it. Usually (if the hosts file is parsed before
DNS or NIS) you can change it in /etc/hosts.
OPTIONS
-a, --alias
Display the alias name of the host (if used).
-d, --domain
Display the name of the DNS domain. Don't use the command domainname to get the DNS domain name because it will show the NIS domain
name and not the DNS domain name. Use dnsdomainname instead.
-F, --file filename
Read the host name from the specified file. Comments (lines starting with a `#') are ignored.
-f, --fqdn, --long
Display the FQDN (Fully Qualified Domain Name). A FQDN consists of a short host name and the DNS domain name. Unless you are using
bind or NIS for host lookups you can change the FQDN and the DNS domain name (which is part of the FQDN) in the /etc/hosts file.
-h, --help
Print a usage message and exit.
-i, --ip-address
Display the IP address(es) of the host.
-n, --node
Display the DECnet node name. If a parameter is given (or --file name ) the root can also set a new node name.
-s, --short
Display the short host name. This is the host name cut at the first dot.
-V, --version
Print version information on standard output and exit successfully.
-v, --verbose
Be verbose and tell what's going on.
FILES
/etc/hosts
AUTHOR
Peter Tobias, <tobias@et-inf.fho-emden.de>
Bernd Eckenfels, <net-tools@lina.inka.de> (NIS and manpage).
Steve Whitehouse, <SteveW@ACM.org> (DECnet support and manpage).
net-tools 28 Jan 1996 HOSTNAME(1)