Networking Forums

Networking Forums > Network Hardware > Home Networking > LAN DNS Problem?

Reply
Thread Tools Display Modes

LAN DNS Problem?

 
 
Andy Hoe
Guest
Posts: n/a

 
      06-08-2006, 01:31 PM
Hello, I have a machine on my home network which I want to use as a
small web server. Originally it was getting its IP from the router's
DHCP which was 192.168.2.12 and as I am now enabling port forwarding on
my router I wanted to give it a static IP which I did outside of my DHCP
range of 192.168.2.251.
This mostly works fine but now I cannot contact this machine by name
(server). When I ping server it resolves to 192.168.2.12. If I look at
my DHCP list in my router (Belkin F5D7632) it still shows server as
having the address of 192.168.2.12 even when I bring the DHCP lease time
down to half an hour it doesn't go away.
The only way I can contact the server by name now is to edit my hosts
file on each machine but there must be something else I can do?
Is it the machines still hanging onto an old ip for the server or is it
the router still thinking that it has given an IP address to the server
which is the problem? I hve tried flushing the dns on the other machines
but that doesn't work
Thanks,
Andy
 
Reply With Quote
 
 
 
 
Jon
Guest
Posts: n/a

 
      06-08-2006, 09:42 PM
(E-Mail Removed) declared for all the world to
hear...
> Hello, I have a machine on my home network which I want to use as a
> small web server. Originally it was getting its IP from the router's
> DHCP which was 192.168.2.12 and as I am now enabling port forwarding on
> my router I wanted to give it a static IP which I did outside of my DHCP
> range of 192.168.2.251.
> This mostly works fine but now I cannot contact this machine by name
> (server). When I ping server it resolves to 192.168.2.12. If I look at
> my DHCP list in my router (Belkin F5D7632) it still shows server as
> having the address of 192.168.2.12 even when I bring the DHCP lease time
> down to half an hour it doesn't go away.
> The only way I can contact the server by name now is to edit my hosts
> file on each machine but there must be something else I can do?
> Is it the machines still hanging onto an old ip for the server or is it
> the router still thinking that it has given an IP address to the server
> which is the problem? I hve tried flushing the dns on the other machines
> but that doesn't work
> Thanks,


Can you not keep it on DHCP but "fix" the IP in the router so it assigns
the same IP every time?
--
Regards
Jon
 
Reply With Quote
 
Guest
Posts: n/a

 
      06-09-2006, 06:22 AM

"Andy Hoe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello, I have a machine on my home network which I want to use as a small
> web server. Originally it was getting its IP from the router's DHCP which
> was 192.168.2.12 and as I am now enabling port forwarding on my router I
> wanted to give it a static IP which I did outside of my DHCP range of
> 192.168.2.251.
> This mostly works fine but now I cannot contact this machine by name
> (server). When I ping server it resolves to 192.168.2.12. If I look at my
> DHCP list in my router (Belkin F5D7632) it still shows server as having
> the address of 192.168.2.12 even when I bring the DHCP lease time down to
> half an hour it doesn't go away.
> The only way I can contact the server by name now is to edit my hosts file
> on each machine but there must be something else I can do?
> Is it the machines still hanging onto an old ip for the server or is it
> the router still thinking that it has given an IP address to the server
> which is the problem? I hve tried flushing the dns on the other machines
> but that doesn't work



It really depends how the router does it's DNS records - but you could
perhaps put the machine back onto DHCP, then at a command prompt try
"ipconfig /release". That should get rid of the lease, setting your IP
figures to 0.0.0.0. Then, configure it statically, with the router as the
gateway and dns, and again at a command prompt try "ipconfig /registerdns".
That should register your machine's IP in DNS.
But - the above may not work with a router as the DNS/DHCP offerings will be
much more simple than those of MS's server software which I'm more used to.

James.


 
Reply With Quote
 
Clint Sharp
Guest
Posts: n/a

 
      06-09-2006, 07:30 AM
In message <(E-Mail Removed)>, Andy Hoe
<(E-Mail Removed)> writes
>Hello, I have a machine on my home network which I want to use as a
>small web server. Originally it was getting its IP from the router's
>DHCP which was 192.168.2.12 and as I am now enabling port forwarding on
>my router I wanted to give it a static IP which I did outside of my
>DHCP range of 192.168.2.251.

Why not adjust the scope to suit? From a quick read of the Belkin manual
it would seem that the default lease time is 'forever' so you shouldn't
have problems using DHCP. How many machines do you have on your network
and how often do they change?
>This mostly works fine but now I cannot contact this machine by name
>(server). When I ping server it resolves to 192.168.2.12. If I look at
>my DHCP list in my router (Belkin F5D7632) it still shows server as
>having the address of 192.168.2.12 even when I bring the DHCP lease
>time down to half an hour it doesn't go away.

Tried upgrading the firmware (or at least reading the upgrade notes to
see if it's an issue they've resolved.)?
>The only way I can contact the server by name now is to edit my hosts
>file on each machine but there must be something else I can do?

Tried power cycling the router? If you type 'ping server' into a command
line on a machine with a clean hosts file (one you haven't modified),
what IP address does it resolve the name to?
>Is it the machines still hanging onto an old ip for the server or is it
>the router still thinking that it has given an IP address to the server
>which is the problem?

Unless you've got DNS running on something other than the router, it's
not likely to be anything other than the router. You say you've flushed
DNS cache on the machines so the only place that should be resolving the
name is the router.
> I hve tried flushing the dns on the other machines but that doesn't
>work
>Thanks,
>Andy


--
Clint Sharp
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem: no problem with Linux, when I boot windows 2K network is down... Santa Linux Networking 11 11-29-2004 06:46 AM



1 2 3 4 5 6 7 8 9 10 11