Sponsored Content
Full Discussion: looking up hostname
Special Forums IP Networking looking up hostname Post 42390 by dangral on Tuesday 28th of October 2003 03:56:45 PM
Old 10-28-2003
I didnt know the domain name at the time, and there was no entry for the apropriate dns server.
I ended up calling someone and finding out the domain name.

I guess there still is some reason for having a telephone...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Hostname

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

Solaris - unknown hostname - how can I change hostname?

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

Change hostname

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

hostname on 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

hostname cannot execute

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

Resolve IP to Hostname?

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

Hostname in Perl?

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

HP UX - ILO Console hostname different than Machine Hostname...

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

Hostname for each lpar

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

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies
NDB(8)							      System Manager's Manual							    NDB(8)

NAME
query, mkhash, mkdb, cs, csquery, dns, dnsquery - network database SYNOPSIS
ndb/query attr value [ rattr ] ndb/mkhash file attr ndb/cs [ -n ] [ -f dbfile ] ndb/csquery ndb/dns [ -s ] [ -f dbfile ] ndb/dnsquery ndb/mkdb DESCRIPTION
The network database holds administrative information used by network programs such as bootp(8), ipconfig(8), con(1), etc. Ndb/query searches the database for an attribute of type attr and value value. If rattr is not specified, all entries matched by the search are returned. If rattr is specified, the value of the first pair with attribute rattr of all the matched entries is returned. Ndb/mkhash creates a hash file for all entries with attribute attr in database file file. The hash files are used by ndb/query and by the ndb library routines. Ndb/cs is a server used by dial(2) to translate network names. Option -f supplies the name of the data base file to use, default /lib/ndb/local. It is started at boot time. It finds out what networks are configured by looking for /net/*/clone when it starts. It can also be told about networks by writing to /net/cs a message of the form: add net1 net2 ... Ndb/cs also sets the system name in /dev/sysname if it can figure it out. Option -n causes cs to do nothing but set the system name. Ndb/csquery can be used to query ndb/cs to see how it resolves addresses. Ndb/csquery prompts for addresses and prints out what ndb/cs returns. Ndb/dns is a server used by ndb/cs and by remote systems to translate Internet domain names. Ndb/dns is started at boot time. By default dns serves only requests written to /net/dns. Option -s causes the server to also answer domain requests sent to UDP port 53. Name reso- lution is performed by searching the local database and by querying remote servers. The server for a domain is indicated by a database entry containing both a dom and a ns attribute. For example, the entry for the Internet root is: dom= ns=ns.nic.ddn.mil ns=kava.nisc.sri.com ns=aos.brl.mil The root of a domain subtree served by the local database is indicated by an entry with an soa attribute. For example, the AT&T research domain is: dom=research.att.com soa mb=ches.research.att.com ns=inet.research.att.com ns=research.research.att.com Here, the mb entry is the mail address of the person responsible for the domain (default postmaster). Wild-carded domain names can also be used. For example, to specify a mail forwarder for all AT&T research systems: dom=*.research.att.com mx=research.att.com Ndb/dnsquery can be used to query ndb/dns to see how it resolves requests. Ndb/dnsquery prompts for commands of the form domain-name request-type where request-type can be ip, mx, ns, cname, ptr.... In the case of the inverse query type, ptr, dnsquery will reverse the ip address and tack on the .in-addr.arpa for you. Ndb/mkdb is used in concert with awk(1) scripts to convert uucp systems files, IP host files, and Datakit configuration files into database files. It is very specific to the situation at Murray Hill. When the database files change underfoot, ndb/cs and ndb/dns track them properly. Nonetheless, to keep the database searches efficient it is necessary to run ndb/mkhash whenever the files are modified. It may be profitable to control this by a frequent cron(8) job. EXAMPLES
% ndb/query sys helix sys=helix dom=helix.research.att.com bootf=/mips/9powerboot ip=135.104.117.31 ether=080069020427 dk=nj/astro/helix proto=il % ndb/query sys helix ip 135.104.117.31 % ndb/dnsquery > 9net.research.att.com ip 9net.research.att.com ip 192.20.225.252 > 192.20.225.252 ptr 252.225.20.192.in-addr.arpa ptr 9net.research.att.com > FILES
/lib/ndb/local first database file searched /lib/ndb/local.* hash files for /lib/ndb/local /srv/cs service file for ndb/cs /net/cs where /srv/cs gets mounted /srv/dns service file for ndb/dns /net/dns where /srv/dns gets mounted SOURCE
/sys/src/cmd/ndb SEE ALSO
ndb(2) ndb(6) NDB(8)
All times are GMT -4. The time now is 10:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy