Networking Forums

Networking Forums > Computer Networking > Linux Networking > networking/dns all screwed up ?

Reply
Thread Tools Display Modes

networking/dns all screwed up ?

 
 
wex
Guest
Posts: n/a

 
      12-21-2003, 07:47 AM
I am running redhat 8.0, with a 2.4.20 kernel. I have apache running
and host several websites. I run a deny first policy iptables
firewall. I have two nics one goes to the world the other goes to a
masqueraded internal network. I am not running dns but it seems like
a dns problem. I am experiencing some wierd networking problems.
Lets say mydomain name is mydomain.com. If I go in my mozilla an go
to a domain name that doesn't exist like "www.znasdasd.com" instead of
taking me to the this domain name does not respond I get the homepage
of mydomain.com but it says "www.znasdasd.com/index.html" in the
location bar. At the same time if i ping "www.znasdasd.com" i get
this:
#ping www.znasdasd.com
PING www.znasdasd.com.mydomain.com (x.x.x.x) from x.x.x.x : 56(84)
bytes of data.
64 bytes from mydomain.com (x.x.x.x): icmp_seq=1 ttl=64 time=0.151 ms
64 bytes from mydomain.com (x.x.x.x): icmp_seq=2 ttl=64 time=0.118 ms

--- www.znasdasd.com.mydomain.com ping statistics ---
2 packets transmitted, 2 received, 0% loss, time 999ms
rtt min/avg/max/mdev = 0.118/0.134/0.151/0.020 ms

Same thing happens when i traceroute. Now if i shutdown apache and go
in the browser i get connection refused from host but i get the exact
same results as earlier with the ping. Also I get the same ping
experience from my internal net???


Thanks in advance
 
Reply With Quote
 
 
 
 
Tom H. Lautenbacher
Guest
Posts: n/a

 
      12-21-2003, 08:29 AM
<weird networking probs>

in the past i had many situations, in wich weird networking problems
occured. they were always cured by simply installing a DNS.
since i have realized that, from then on the first thing i always install in
my networks is a DNS and DHCP server. i can only suggest, that you do the
same. your problem looks very DNS- related to me.

i suggest bind9. it is not very difficult to set up, if you look at the
howtows and use a sample-conf as a basis.

HTH,
tom.
____________________

http://tom.lautenbacher.biz
____________________


 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      12-21-2003, 05:14 PM
On 21 Dec 2003 00:47:17 -0800, wex <(E-Mail Removed)> wrote:
> I am running redhat 8.0, with a 2.4.20 kernel. I have apache running
> and host several websites. I run a deny first policy iptables
> firewall. I have two nics one goes to the world the other goes to a
> masqueraded internal network. I am not running dns but it seems like
> a dns problem. I am experiencing some wierd networking problems.
> Lets say mydomain name is mydomain.com. If I go in my mozilla an go
> to a domain name that doesn't exist like "www.znasdasd.com" instead of
> taking me to the this domain name does not respond I get the homepage
> of mydomain.com but it says "www.znasdasd.com/index.html" in the
> location bar. At the same time if i ping "www.znasdasd.com" i get
> this:
> #ping www.znasdasd.com
> PING www.znasdasd.com.mydomain.com (x.x.x.x) from x.x.x.x : 56(84)
> bytes of data.
> 64 bytes from mydomain.com (x.x.x.x): icmp_seq=1 ttl=64 time=0.151 ms
> 64 bytes from mydomain.com (x.x.x.x): icmp_seq=2 ttl=64 time=0.118 ms
>
> --- www.znasdasd.com.mydomain.com ping statistics ---
> 2 packets transmitted, 2 received, 0% loss, time 999ms
> rtt min/avg/max/mdev = 0.118/0.134/0.151/0.020 ms
>
> Same thing happens when i traceroute. Now if i shutdown apache and go
> in the browser i get connection refused from host but i get the exact
> same results as earlier with the ping. Also I get the same ping
> experience from my internal net???


Sounds like you have a wildcard *.mydomain.com for your domain and 'domain
mydomain.com' or 'search mydomain.com' in /etc/resolv.conf. Therefore,
anything.at.all will resolve to anything.at.all.mydomain.com (you).

I have dynamic DNS with a wildcard like that, but I do NOT list that name
in /etc/resolv.conf, and therefore, do not have that problem.

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
wex
Guest
Posts: n/a

 
      12-22-2003, 06:09 AM
Well I do have both a *.mydomain.com and domain mydomain.com. In the
past I thought I had the same set up but maybe not. So could you
explain why this happens and more importantly the solution is to
remove one or the other? What are the advantages/disadvantages to the
removal options?
thanks

(E-Mail Removed) (David Efflandt) wrote in message news:<(E-Mail Removed)>...
> On 21 Dec 2003 00:47:17 -0800, wex <(E-Mail Removed)> wrote:
> > I am running redhat 8.0, with a 2.4.20 kernel. I have apache running
> > and host several websites. I run a deny first policy iptables
> > firewall. I have two nics one goes to the world the other goes to a
> > masqueraded internal network. I am not running dns but it seems like
> > a dns problem. I am experiencing some wierd networking problems.
> > Lets say mydomain name is mydomain.com. If I go in my mozilla an go
> > to a domain name that doesn't exist like "www.znasdasd.com" instead of
> > taking me to the this domain name does not respond I get the homepage
> > of mydomain.com but it says "www.znasdasd.com/index.html" in the
> > location bar. At the same time if i ping "www.znasdasd.com" i get
> > this:
> > #ping www.znasdasd.com
> > PING www.znasdasd.com.mydomain.com (x.x.x.x) from x.x.x.x : 56(84)
> > bytes of data.
> > 64 bytes from mydomain.com (x.x.x.x): icmp_seq=1 ttl=64 time=0.151 ms
> > 64 bytes from mydomain.com (x.x.x.x): icmp_seq=2 ttl=64 time=0.118 ms
> >
> > --- www.znasdasd.com.mydomain.com ping statistics ---
> > 2 packets transmitted, 2 received, 0% loss, time 999ms
> > rtt min/avg/max/mdev = 0.118/0.134/0.151/0.020 ms
> >
> > Same thing happens when i traceroute. Now if i shutdown apache and go
> > in the browser i get connection refused from host but i get the exact
> > same results as earlier with the ping. Also I get the same ping
> > experience from my internal net???

>
> Sounds like you have a wildcard *.mydomain.com for your domain and 'domain
> mydomain.com' or 'search mydomain.com' in /etc/resolv.conf. Therefore,
> anything.at.all will resolve to anything.at.all.mydomain.com (you).
>
> I have dynamic DNS with a wildcard like that, but I do NOT list that name
> in /etc/resolv.conf, and therefore, do not have that problem.

 
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
screwed by a Virgin thedarkman Broadband 16 06-05-2007 09:47 PM
is this line screwed? nick Broadband 3 11-01-2006 07:22 AM
Samba screwed up Doug Holtz NOSPAM in adress Linux Networking 1 01-08-2005 06:53 PM
Screwed up network John Windows Networking 16 02-07-2004 12:19 AM
Zen are screwed Draxen Broadband 80 07-22-2003 09:55 PM



1 2 3 4 5 6 7 8 9 10 11