LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-15-2009, 09:34 AM   #1
sunils1973
Member
 
Registered: Jan 2007
Posts: 302

Rep: Reputation: 30
How to know DNS address


I am having two systems one installed Debian lenny and the other CentOs

Have broadband connection through ADSL and earlier I used squid to share internet to my CentOS machine (Debian lenny is acting as router).

Now I reinstalled Debian lenny as the harddisk crashed and tried to share internet to Cent OS by iptables.

CentOS machine - ipno 192.168.0.4
Lenny - ipno 192.168.0.3

issued the commands on Lenny

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT

Now my local network is ok
and I can ping to the dhcp address assigned to my internet router from the CentOS machine. I can also get the google home page by http://209.85.231.147/
But can't get http://www.google.com from my CentOS machine.

I think everything is OK except the DNS entry for CentOS
I have entered "nameserver 192.168.0.3" in my /etc/resolv.conf file of the CentOS machine.

I know this is not the proper way. But as the ADSL is assigning dhcp to the external interface, how can I identify their DNS. They have not supplied the same.


Can I connect to FTP sites from CentOS when internet is shared through proxy server?
 
Old 11-15-2009, 09:51 AM   #2
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
Copy /etc/resolv.conf from Debian to CentoOS.
I'm assuming your ADSL modem is not acting like a router
 
Old 11-15-2009, 11:07 AM   #3
sunils1973
Member
 
Registered: Jan 2007
Posts: 302

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ammorais View Post
Copy /etc/resolv.conf from Debian to CentoOS.
Yes It worked. Thank U very much ammorais!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Router gateway address being picked up as primary DNS address under SuSe Hubmasterflex Linux - Networking 13 10-18-2008 02:40 PM
Mandriva losing DNS address Earthling2 Mandriva 5 05-27-2007 06:28 PM
Cant load with DNS only IP address MoXplorer Linux - Wireless Networking 2 03-08-2007 04:39 PM
Change DNS Server IP Address s.dawood Linux - Networking 1 12-26-2006 03:26 AM
DNS IP address bkesting Linux - Networking 1 01-06-2006 10:28 AM


All times are GMT -5. The time now is 11:00 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration