How to resolve hostnames on DHCP home network


 
Thread Tools Search this Thread
Special Forums IP Networking How to resolve hostnames on DHCP home network
# 1  
Old 06-28-2010
How to resolve hostnames on DHCP home network

Hi,

I have a PC running Solaris 10 (hostname MARKUNIX) and a laptop running WinXP (hostname MARK-LAPTOP).

Both are connected to broadband via a router. IP addresses for each are determined via DHCP (192.168.1.nn) and I do not leave either on, 24x7.

I am running Oracle on MARKUNIX and want to be able to refer to it by hostname when using Oracle tools on my laptop.

Each machine can ping each other ok by ip address and curiously the Solaris PC can ping MARK-LAPTOP (I'm not sure how it resolves that?) - importantly the laptop cannot ping MARKUNIX.

Now I could add MARKUNIX to my laptops hosts file but that would mean changing the file each time I boot up as the ip address for MARKUNIX will keep changing (DHCP).

Is there a way to refer to MARKUNIX without having to keep changing ip addresses and use DHCP? As I understand it the 192.168 address is private and is not really the 'real' ip address and as such can be manipulated(fixed?) even whilst using DHCP?

Am I right in thinking that a static ip from my broadband supplier is the ip of my connection (router) and I'll still have the same private network referencing issues?

Any help appreciated.

cheers
# 2  
Old 06-28-2010
Your home router should be able to assign a static address to your Unix box so it gets the same IP every time it boots. My home printer is network enabled and that's what I had to do in order that the PCs could find the printer address every time. I simply assigned 192.168.1.150 to my printer on the Linksys router then configured the PCs to see that address when I print.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

DHCP and DNS on a home network

Let's say I have a home network containing a server that acts as the resident gateway and serves dhcp and dns requests. Laptop A is frequently connected and disconnected from the network as it is used as a travel computer. Is there a secure way to make sure that whenever laptop A is connected to... (3 Replies)
Discussion started by: Zygomorph
3 Replies

2. Solaris

Configure network in unix with dynamic ip on my DHCP server?

can anyone tell me how can i configure network in unix with dynamic ip on my DHCP server?? (7 Replies)
Discussion started by: Reham.Donia
7 Replies

3. Shell Programming and Scripting

Scripting nslookup to resolve multiple hostnames

Hi Friends, I have a list of servers with their production names in a file. I want to know the best way eiter a command or a script that can do the following :- Append "-bkp" to each hostnames at the end And run nslookup and make sure I have valid backup IP add assigned to it. Any... (1 Reply)
Discussion started by: new2prog
1 Replies

4. IP Networking

Connecting to DHCP network with Realtek interface

I have a Realtek 8139 interface in one of my machines and it will not connect to the network. /etc/rc.conf contains ifconfig_rl0="DHCP" and "rl0" was obtained from a dmesg. A network interface restart yields the following: # /etc/rc.d/netif restart Stopping network: lo0 rl0 fwe0 plip0. rl0: no... (3 Replies)
Discussion started by: figaro
3 Replies

5. Linux

Need help w/home network

Hello world! I'm writing to you from Chile, Southamerica, and need a little help with my tiny home netwk. Hope you can give me a hand because this thing is breaking my balls. This is what i have: 1 windows box with XP pro (server) 1 linux box with DSL (box) 1 wrt54gl router with dd-wrt... (1 Reply)
Discussion started by: juanpedro
1 Replies

6. UNIX for Dummies Questions & Answers

Using Linux on/in a home network

I recently received an e-mail from "the faculty" at Unix-dot-Com and I was reminded of this notable resource for folks learning about Unix and its clone, Linux. I hadn't posted anything in two years and during that time, I have been working, in my spare time, on a home network combining two Linux... (2 Replies)
Discussion started by: Annatar
2 Replies

7. IP Networking

DHCP and Hostnames

I have a linksys DSL router. I run a mixed environment of Windows, Linux and Solaris. The routers dhcp tables show the windows machines hostnames and associated IP's ok but the unix bases mahines don't have associated hostnames in the DHCP tables. I can ping by IP but not my the machines... (5 Replies)
Discussion started by: mr16ga
5 Replies

8. UNIX for Advanced & Expert Users

How to fire a print job on a printer at DHCP network??

Hi All, I have an issue related to printing on a printer at DHCP network. We have n numbers of printers which can be attached to n numbers of telnet clients of a server. Telnet sessions can be obtained from any machine and any available printer will be attached to that machine. Our aim is to... (2 Replies)
Discussion started by: pankajgupta
2 Replies

9. IP Networking

home network not working!

i just linked 2 100MHz Linux kernel 2.4.2 boxes togeather using a direct cable connection, on two 3Com PCI network cards, using the EtherLink III chipset. Unfortuanately, when I boot both PCs, i get a loading interface: eth0 for five minutes, then a failed flag. No networking suppt. in windows,... (2 Replies)
Discussion started by: boris888
2 Replies
Login or Register to Ask a Question