Go Back   Hardware Forums > Computer Forums > Networking and Computer Security

Reply
 
LinkBack Thread Tools
Old 19-02-2008, 06:59 PM   #1 (permalink) Top
Geek Trainee
 
Join Date: Jan 2008
Posts: 6
Status: Offline
Default Giving IP's hostnames?

Does anyone know how to give a LAN IP a hostname?

  Reply With Quote
Whats this? Wireless Optical Black Desktop 1000
Wireless Optical Black Desktop 1000
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
euroffice £35.24 £4.64 £39.88 In Stock Rated: 4 out of 5 - Number of votes: 26
Tekheads.co.uk £24.99 £4.95 £29.94 In Stock Rated: 3 out of 5 - Number of votes: 310
Misco.co.uk £26.99 £5.86 £32.85 In Stock Rated: 4 out of 5 - Number of votes: 1354
Old 19-02-2008, 06:52 PM   #2 (permalink) Top
iDude

 
RHochstenbach's Avatar
 
Join Date: Nov 2006
Age: 20 Male
Posts: 1,583
Times Helpful: 124
My Mood: Fine
Status: Offline

My Computer

You can only assign host names to nodes, such as computers and routers. An IP address is only used to let a node join a network. Just like having a phone number. So you can't assign a host name to an IP address.
__________________
Quote:
Microsoft is like this intellectual roach motel: big brains go in and you don't see anything come out
Send a message via MSN to RHochstenbach Send a message via Skype™ to RHochstenbach   Reply With Quote
Old 19-02-2008, 06:55 PM   #3 (permalink) Top
Geek Trainee
 
Join Date: Jan 2008
Posts: 6
Status: Offline
Opps, thats kidna what I meant, So how can I give say my laptop and desktop hostname? or give my router a hostname?
  Reply With Quote
Old 19-02-2008, 07:24 PM   #4 (permalink) Top
The King

 
Addis's Avatar
 
Join Date: Jan 2004
Age: 18 Male
Posts: 5,255
Times Helpful: 403
My Mood: Drunk
Status: Offline

My Computer

You have a hosts file on windows machines, that stores ip addresses and hostnames, for example something like:
192.168.1.9 laptop1

I believe editing this file on each machine will do this.
__________________
Never trust a program you don't have the source code for.

My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers
Send a message via MSN to Addis   Reply With Quote
Old 19-02-2008, 07:49 PM   #5 (permalink) Top
iDude

 
RHochstenbach's Avatar
 
Join Date: Nov 2006
Age: 20 Male
Posts: 1,583
Times Helpful: 124
My Mood: Fine
Status: Offline

My Computer

Right-click on My Computer and go to Properties. At the tab Computer Name, you can change your hostname (computer name). Setting a hostname on a router depends on what brand and type. You could consult your user manual.

Do remember that each node on the same network needs a different hostname.

Quote:
Originally Posted by Addis View Post
You have a hosts file on windows machines, that stores ip addresses and hostnames, for example something like:
192.168.1.9 laptop1

I believe editing this file on each machine will do this.
No, the HOSTS file is used when a network doesn't have a DNS server. You can link a (domain) name to an ip address. For example, if you got a webserver inside your network with the address 192.168.1.50. You can add the line 192.168.1.50 webserver to the HOSTS file in each PC. So if you enter WEBSERVER in the browser, it gets resolved to the corresponding IP address. However, the HOSTS file is almost not used anymore because it's replaced by DNS servers and it's very decentralised because a change needs to be saved in the HOSTS file of all PCs.
__________________
Quote:
Microsoft is like this intellectual roach motel: big brains go in and you don't see anything come out

Last edited by RHochstenbach; 19-02-2008 at 07:54 PM.
Send a message via MSN to RHochstenbach Send a message via Skype™ to RHochstenbach   Reply With Quote
Old 19-02-2008, 10:01 PM   #6 (permalink) Top
Geek Trainee
 
Join Date: Jan 2008
Posts: 6
Status: Offline
Thanks for the replies, I just found the host name tool thing in Ubuntu =] Will look in windows later, thanks
  Reply With Quote
Old 20-02-2008, 09:28 AM   #7 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,880
Times Helpful: 537
Status: Offline

My Computer

Quote:
Originally Posted by RHochstenbach View Post
You can only assign host names to nodes, such as computers and routers. An IP address is only used to let a node join a network. Just like having a phone number. So you can't assign a host name to an IP address.
Yes, you can. It's called DNS. If a node happens to have an IP, and the IP has an A-record, then that node is resolvable via DNS, right? But if an IP has a host record, and there's no PC listening at the IP, DNS still works. It just won't take you anywhere. Domain name system - Wikipedia, the free encyclopedia
Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
Old 20-02-2008, 09:39 AM   #8 (permalink) Top
iDude

 
RHochstenbach's Avatar
 
Join Date: Nov 2006
Age: 20 Male
Posts: 1,583
Times Helpful: 124
My Mood: Fine
Status: Offline

My Computer

Quote:
Originally Posted by Anti-Trend View Post
Yes, you can. It's called DNS. If a node happens to have an IP, and the IP has an A-record, then that node is resolvable via DNS, right? But if an IP has a host record, and there's no PC listening at the IP, DNS still works. It just won't take you anywhere. Domain name system - Wikipedia, the free encyclopedia
Then it's called a domain name, instead of a host name
__________________
Quote:
Microsoft is like this intellectual roach motel: big brains go in and you don't see anything come out
Send a message via MSN to RHochstenbach Send a message via Skype™ to RHochstenbach   Reply With Quote
Old 20-02-2008, 09:43 AM   #9 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,880
Times Helpful: 537
Status: Offline

My Computer

Quote:
Originally Posted by RHochstenbach View Post
Then it's called a domain name, instead of a host name
Sorry, didn't mean to come off so strong. But no, host name is a synonym for a DNS A-record, so it's an acceptable substitution. "Host record" and "A-record" mean the same thing.
Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
The Following User Says Thank You to Anti-Trend For This Useful Post: Show me >>
Old 20-02-2008, 10:38 AM   #10 (permalink) Top
iDude

 
RHochstenbach's Avatar
 
Join Date: Nov 2006
Age: 20 Male
Posts: 1,583
Times Helpful: 124
My Mood: Fine
Status: Offline

My Computer

Quote:
Originally Posted by Anti-Trend View Post
But no, host name is a synonym for a DNS A-record, so it's an acceptable substitution. "Host record" and "A-record" mean the same thing.
I think I confused Hostname with Computer Name...
__________________
Quote:
Microsoft is like this intellectual roach motel: big brains go in and you don't see anything come out
Send a message via MSN to RHochstenbach Send a message via Skype™ to RHochstenbach   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set home network with permanent IP's with router GoldenAxe Networking and Computer Security 4 23-08-2007 09:41 PM
Giving this a go megamaced Distributed Computing 13 05-04-2007 01:11 PM
giving MS the boot donkey42 Linux and Other OSes 26 20-06-2006 09:33 PM
Banning IP's from sites... Waffle Web Development 5 10-01-2005 07:20 PM
Giving up on gaming... extreme4377 PC Gaming 15 09-10-2004 09:11 PM


All times are GMT +1. The time now is 09:51 PM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved