LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2012, 11:16 PM   #1
Sudintha
LQ Newbie
 
Registered: May 2012
Posts: 5

Rep: Reputation: Disabled
DNS and Gateway Setting


Hi Guys,
I have a problem with setting DNS and Default Gateway settings on my Network,
----------------------
ADSL Router (LAN IP: 192.168.1.1)
Dynamic WAN IP and DNS for Internet
DHCP Enable
------------------
Win 2003 Server
IP : 192.168.1.254
Local DNS Install
Intranet (http://MyHome.abc) running on IIS
------------------
PC's on LAN
Get IPs from Router DHCP
With this setup, i cannot view my Intranet on others PC (can view only giving Ip address)

so my requirement is to view my intranet as well as the internet from all PC's without changing settings on individual PC on the network.

Pls help me
Thanks
 
Old 05-19-2012, 11:45 PM   #2
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
Basically there are two ways to achieve this.
One is to use "hosts" file on each machine. On each machine write the names and the IPs of all other machines (or just one entry for the server.)

The other one is to run a name server (aka bind server). It does not matter which machine is running the name server, but the router running the DHCP server has to distribute the name server entry to the clients when clients ask for configuration.
 
Old 05-20-2012, 12:11 AM   #3
Sudintha
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uhelp View Post
Basically there are two ways to achieve this.
One is to use "hosts" file on each machine. On each machine write the names and the IPs of all other machines (or just one entry for the server.)

The other one is to run a name server (aka bind server). It does not matter which machine is running the name server, but the router running the DHCP server has to distribute the name server entry to the clients when clients ask for configuration.
Hi thanks for u r help.
Definitely i dont want to go for the 1st option
Ok, in second option, i have implement DNS on Win2003 server, if i change DNS Setting on router, how can i go to Internet? there is no option to set Name Server on the Router (Netgear CD 3100)
 
Old 05-20-2012, 12:13 AM   #4
nixblog
Member
 
Registered: May 2012
Posts: 426

Rep: Reputation: 53
If you have DNS locally installed on that 2003 box then I would create a zone for the 192.168.1.x network and get your internal LAN PC's to look at 192.168.1.254 (Win 2003 box) and they should find your IIS server - you may have to add DNS entries on DNS server manually for your Linux machines. Also add a forwarder in your 2003 DNS server to send unresolved DNS requests out to your ISP's DNS servers to resolve Internet IP addresses.

It's been a while since I administered a Windows 2003 server but this should set you up, or thereabouts.
 
Old 05-20-2012, 12:44 AM   #5
Sudintha
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nixblog View Post
If you have DNS locally installed on that 2003 box then I would create a zone for the 192.168.1.x network and get your internal LAN PC's to look at 192.168.1.254 (Win 2003 box) and they should find your IIS server - you may have to add DNS entries on DNS server manually for your Linux machines. Also add a forwarder in your 2003 DNS server to send unresolved DNS requests out to your ISP's DNS servers to resolve Internet IP addresses.

It's been a while since I administered a Windows 2003 server but this should set you up, or thereabouts.
ok, thank you very much., i change DNS on PC to win2003 box add, looks like its working, i have to chek my linux box now
Thanks
 
Old 05-20-2012, 12:49 AM   #6
Sudintha
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Sudintha View Post
ok, thank you very much., i change DNS on PC to win2003 box add, looks like its working, i have to chek my linux box now
Thanks
oh!!. when i change that in resolv.conf and restart network service, again its been cchange by the networkmanager to original name server settings. how can i change that?
 
Old 05-20-2012, 01:34 AM   #7
Sudintha
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Sudintha View Post
oh!!. when i change that in resolv.conf and restart network service, again its been cchange by the networkmanager to original name server settings. how can i change that?
He everyone,
Thanks now its working
Thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp client .. not setting gateway and dns server scabrous1 Linux - Networking 1 05-09-2006 10:31 AM
setting ip/netmas/gateway/domain/dns to router true_atlantis Linux - Networking 1 04-10-2006 02:02 PM
Help in setting up Gateway, DHCP and DNS Server depam Linux - Software 1 10-06-2005 11:52 AM
How to see DNS ,GATEWAY etc.. tkmuthuvel Linux - Networking 1 09-12-2005 02:53 PM
Gateway and DNS jayakrishnan Linux - Networking 5 07-05-2003 02:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration