Networking Forums

Networking Forums > Computer Networking > Linux Networking > get DNS settings for internal network

Reply
Thread Tools Display Modes

get DNS settings for internal network

 
 
nobody
Guest
Posts: n/a

 
      08-27-2003, 11:45 AM
Hello, I have the following situation

PC1 is connected to the internet and serves as firewall.
PC2 is connected to PC1 and should be used as user machine.
Both pc's run Linux.

PC1 gets assigned an IP through DHCP and also the DNS settings are
passed through DHCP. How do I configure PC2 and/or PC1 so that PC2 is
able to resolve host names (e.g. www.google.com)? Can this be done
automatically? If not, how do I find out which DNS server is assigned
to PC1?

TIA
 
Reply With Quote
 
 
 
 
Ari Grey
Guest
Posts: n/a

 
      08-27-2003, 01:37 PM
nobody <(E-Mail Removed)> wrote:
> Hello, I have the following situation


> PC1 is connected to the internet and serves as firewall.
> PC2 is connected to PC1 and should be used as user machine.
> Both pc's run Linux.


> PC1 gets assigned an IP through DHCP and also the DNS settings are
> passed through DHCP. How do I configure PC2 and/or PC1 so that PC2 is
> able to resolve host names (e.g. www.google.com)? Can this be done
> automatically? If not, how do I find out which DNS server is assigned
> to PC1?


Use dig or nslookup to get the DNS host or whois [your.domain] may tell
you. Then make a static entry in /etc/resolv.conf on PC2.

nameserver xxx.xxx.xxx.xxx

AG

 
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
Internal to External to Internal Routing. tc Windows Networking 3 10-27-2008 10:55 PM
NAT Settings for exposing an internal web server to the outside world? Keith Vinson Windows Networking 2 08-14-2006 09:29 PM
How best to route internal clients to internal web server? Captain Dondo Linux Networking 5 03-02-2005 08:13 AM
routing internal network IP to outside network (through adsl route =?Utf-8?B?bWFyayByZWc=?= Windows Networking 3 09-28-2004 01:27 AM
Using MN-700 for internal network Michael Broadband Hardware 3 06-15-2004 04:37 PM



1 2 3 4 5 6 7 8 9 10 11