[Tfug] getting IP's from host names

Paul Scott tfug@tfug.org
Sun Sep 15 02:25:02 2002


I have a lot of stuff to read but am not finding the answer to a simple 
question:  How do I get the IP's of my local machines from their hostnames?

I have bind and dig installed.  Could there be something I haven't 
configured.  Each machine has its own name in its own /etc/hosts.


joy:/home/paul# dig janet

; <<>> DiG 9.2.1 <<>> janet
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33986
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;janet.                         IN      A

;; AUTHORITY SECTION:
.                       2220    IN      SOA     A.ROOT-SERVERS.NET. 
NSTLD.VERISIGN-GRS.COM. 2002091401 1800 900 604800 86400

;; Query time: 104 msec
;; SERVER: 209.203.92.100#53(209.203.92.100)
;; WHEN: Sun Sep 15 02:21:31 2002
;; MSG SIZE  rcvd: 98



TIA,

Paul Scott