Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Looking up IP addresses
Browsers, mail clients, ftp and ssh and telnet clients and the rest are for ever converting fully qualified names such as www.sheepbingo.co.uk into IP addresses such as 212.227.118.78. How can you do such a lookup manually?

Firstly, there are numerous web sites out there that will help you - I'm nit supplying any links here because I'm sure you already have your own favourite. But did you know that there are ... not one ... not two ... but three utilities under Linux to do the job for you?

The host command does a quick and dirty lookup:

[trainee@saturday trainee]$ host www.sheepbingo.co.uk
www.sheepbingo.co.uk has address 212.227.118.78
[trainee@saturday trainee]$

The dig command tells you a lot more:

[trainee@saturday trainee]$ dig www.sheepbingo.co.uk

; <<>> DiG 9.2.1 <<>> www.sheepbingo.co.uk
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<<- opcode: QUERY, status: NOERROR, id: 31254
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.sheepbingo.co.uk. IN A

;; ANSWER SECTION:
www.sheepbingo.co.uk. 10476 IN A 212.227.118.78

;; Query time: 17 msec
;; SERVER: 158.152.1.43#53(158.152.1.43)
;; WHEN: Wed Jun 1 08:42:54 2005
;; MSG SIZE rcvd: 54

[trainee@saturday trainee]$

And the deprecated nslookup give interactive facilites too

[trainee@saturday trainee]$ nslookup www.sheepbingo.co.uk
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 158.152.1.43
Address: 158.152.1.43#53

Non-authoritative answer:
Name: www.sheepbingo.co.uk
Address: 212.227.118.78

[trainee@saturday trainee]$

(written 2005-06-01 08:44:40)

 
Associated topics are indexed under
A163 - Web Application Deployment - Network Configuration and Security
W501 - Introduction to Web Site Structure

Back to
08:45 is a difficult time
Previous and next
or
Horse's mouth home
Forward to
Do NOT follow links or read attachments in these emails

Some other Articles
Targetted Advertising
Sad priorities
Symbolic links and hard links
Do NOT follow links or read attachments in these emails
Looking up IP addresses
08:45 is a difficult time
An O level comes in handy
the Stately Homes of England
Making programs easy for any user to start
How far should our support go
1630 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).


WELL HOUSE CONSULTANTS LTD.: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 0800 043 8225 or 01225 708225 • FAX: 0845 8382 405 or 01225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho