Re: DNS Problem

"Pete Peterson" <[email protected]> Mon, 31 Mar 2003 09:40:40 -0500 (EST)
Newsgroups gmane.linux.redhat.release.guinness
Message-ID <[email protected]>
> From: [email protected]
> To: [email protected]
> Subject: DNS Problem
> 
> I have a RedHat 7.0 system acting as my Internet gateway for my LAN.  I
> connect using an ISDN line.  I own a domain www.davidsconsultants.com.  I
> recently changed hosting services.  I am now running into the following
> problem.
> 
> If I connect to my ISP using a Windows 2000 machine and ping the address
> www.davidsconsultants.com I get the correct IP address as registered in the
> DNS.  When I connect using the Linux box the ifup-post script was over
> writing my resolv.conf file with the wrong DNS servers.  I took out the
> part of the script that overwrites the resolv.conf file.  Now when I test
> the DNS resolution using host www.davidsconsultants.com I get the correct
> information.  However, I am still unable to connect to the new host using
> Netscape.  Nor can I retrieve my mail.

You need to explain your configuration better.  

You say the Red Hat machine is a gateway.  Is the connection from the win2k
machine passing through that gateway, or are you connecting one and
disconnecting the other for the two experiments you mention?

Does the win2k box connect to the outside through the gateway OK.

Do you have a firewall set up on the Red Hat machine or any other
firewall/router box?

What do you mean by "the wrong DNS server"?  If you're making a DHCP
connection to your ISP, the resolv.conf should be pointing to the ISP's
DNS servers.  

Are you maintaining the DNS for davidsconsultants.com?  I see the
nameservers are ns{1,2}.station192.com.  Note that the MX record
is referencing a CNAME.  That's not legal, the MX should point to an
A record.  You should either make the MX point to 'davidsconsultants.com'
or add an A-record for mail.davidsconsultants.com.  Note that violating
this constraint usually causes no problems, but you might as well do it
right.


What if anything do you have set up for firewalls?

> Can anyone explain to me why even though host is returning the correct 
> information Netscape is not going to the correct site?

I can make both POP and HTTP connections (but not imap3) to
davidsconsultants.com.  If you supply more details, somebody should be able
to help you figure out what's not working for you.. 

-- 
    pete peterson
    Teradyne, Inc.; 7 Technology Park Drive; Westford, MA 01886-0033
    +1-978-589-7478 (Office); +1-978-589-2088 (FAX);
    [email protected] or [email protected]